wkentaro / octomap-python

Python binding of the OctoMap library.
81 stars 28 forks source link

Error with PIP install #14

Open Nico-oe opened 2 years ago

Nico-oe commented 2 years ago

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 commented 2 years ago

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

aprath1 commented 2 years ago

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 commented 2 years ago

@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 commented 2 years ago

@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 commented 2 years ago

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 commented 1 year ago

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