Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with PIP install #14

Open
Nico-oe opened this issue May 25, 2022 · 6 comments
Open

Error with PIP install #14

Nico-oe opened this issue May 25, 2022 · 6 comments

Comments

@Nico-oe
Copy link

Nico-oe commented May 25, 2022

Hey everyone,

I get the following error trying to install the octomap-python library using pip. Can anyone help?

cmake_error

Thanks in advance.

Kind regards,

Nico

@jllv
Copy link

jllv commented Jul 6, 2022

any updates on this issue? I'm running into the same error message (python3.9 on win11), did you find a solution?

@aprath1
Copy link

aprath1 commented Jul 27, 2022

did any one manage to resolve this issue?

I am getting the following Error:

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> octomap-python

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
--- Logging error ---
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/pip/_internal/utils/logging.py", line 177, in emit
    self.console.print(renderable, overflow="ignore", crop=False, style=style)
  File "/usr/local/lib/python3.8/dist-packages/pip/_vendor/rich/console.py", line 1752, in print
    extend(render(renderable, render_options))
  File "/usr/local/lib/python3.8/dist-packages/pip/_vendor/rich/console.py", line 1390, in render
    for render_output in iter_render:
  File "/usr/local/lib/python3.8/dist-packages/pip/_internal/utils/logging.py", line 134, in __rich_console__
    for line in lines:
  File "/usr/local/lib/python3.8/dist-packages/pip/_vendor/rich/segment.py", line 245, in split_lines
    for segment in segments:
  File "/usr/local/lib/python3.8/dist-packages/pip/_vendor/rich/console.py", line 1368, in render
    renderable = rich_cast(renderable)
  File "/usr/local/lib/python3.8/dist-packages/pip/_vendor/rich/protocol.py", line 36, in rich_cast
    renderable = cast_method()
  File "/usr/local/lib/python3.8/dist-packages/pip/_internal/self_outdated_check.py", line 130, in __rich__
    pip_cmd = get_best_invocation_for_this_pip()
  File "/usr/local/lib/python3.8/dist-packages/pip/_internal/utils/entrypoints.py", line 58, in get_best_invocation_for_this_pip
    if found_executable and os.path.samefile(
  File "/usr/lib/python3.8/genericpath.py", line 101, in samefile
    s2 = os.stat(f2)
FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/pip3.8'

@jllv
Copy link

jllv commented Jul 27, 2022

@aprath1 I switched to Ubuntu, couldn't get my error resolved on Windows. I had to tweak some bits but its working for me now

@dragancevs
Copy link

@aprath1 I switched to Ubuntu, couldn't get my error resolved on Windows. I had to tweak some bits but its working for me now

Hello, how have you installed it on Ubuntu? I'm trying to install it, but it show me only errors.

@jllv
Copy link

jllv commented Aug 13, 2022

I installed some dependencies (not sure if that was even necessary, but shouldn't hurt either) with:
apt-get install libqt5opengl5-dev libqt5svg5-dev cmake, pip install cmake

Now, pip install octomap-python should work as far as I remember. I think I had an issue where pip installed the files to /home/username/.local/lib, so I copied the relevant files from this directory into /usr/local/lib. I hope I didn't miss a step, but that should do the trick.

@BobbyCephy
Copy link

Hey, I am getting the following error:
src/octomap/octomap/src/binvox2bt.cpp:230:9: error: reference to ‘byte’ is ambiguous

This can be solved by setting the C++ standard to 11:
CXXFLAGS="-std=c++11" pip install octomap-python

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants