caelan / motion-planners

Python implementations of several robotic motion planners
MIT License
141 stars 39 forks source link

pip install pybullet_planning error with Ghalton #2

Open harrybennett96 opened 1 year ago

harrybennett96 commented 1 year ago

Hi, just trying to install pybullet_planning and get a feel for the toolkit as per the readocs but I keep running into the following when I execute pip install pybullet_planning.

I noticed that this is an open issue with Ghalton on their page (https://github.com/fmder/ghalton/issues/16) and was wondering if anyone else has run into this issue? I've attempted to follow the suggestions on this link but no luck so far :(.

ctory-gen-arm/pybullet-planning$ pip install pybullet_planning Collecting pybullet_planning Using cached pybullet_planning-0.6.0-py2.py3-none-any.whl (131 kB) Collecting imageio Using cached imageio-2.27.0-py3-none-any.whl (3.4 MB) Collecting termcolor Using cached termcolor-2.2.0-py3-none-any.whl (6.6 kB) Collecting ghalton Using cached ghalton-0.6.2.tar.gz (124 kB) Preparing metadata (setup.py) ... done Collecting psutil Using cached psutil-5.9.4-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (280 kB) Requirement already satisfied: scipy in /home/harry/software-projects/trajectory-generation/trajectory-gen-arm/lib/python3.10/site-packages (from pybullet_planning) (1.10.1) Collecting meshio>=4.3.11 Using cached meshio-5.3.4-py3-none-any.whl (167 kB) Requirement already satisfied: pybullet>=3.1.7 in /home/harry/software-projects/trajectory-generation/trajectory-gen-arm/lib/python3.10/site-packages (from pybullet_planning) (3.2.5) Requirement already satisfied: recordclass in /home/harry/software-projects/trajectory-generation/trajectory-gen-arm/lib/python3.10/site-packages (from pybullet_planning) (0.18.3) Requirement already satisfied: numpy in /home/harry/software-projects/trajectory-generation/trajectory-gen-arm/lib/python3.10/site-packages (from pybullet_planning) (1.24.2) Collecting rich Using cached rich-13.3.3-py3-none-any.whl (238 kB) Requirement already satisfied: pillow>=8.3.2 in /home/harry/software-projects/trajectory-generation/trajectory-gen-arm/lib/python3.10/site-packages (from imageio->pybullet_planning) (9.4.0) Collecting pygments<3.0.0,>=2.13.0 Using cached Pygments-2.14.0-py3-none-any.whl (1.1 MB) Collecting markdown-it-py<3.0.0,>=2.2.0 Using cached markdown_it_py-2.2.0-py3-none-any.whl (84 kB) Collecting mdurl~=0.1 Using cached mdurl-0.1.2-py3-none-any.whl (10.0 kB) Building wheels for collected packages: ghalton Building wheel for ghalton (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [16 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-cpython-310 creating build/lib.linux-x86_64-cpython-310/ghalton copying ghalton/constants.py -> build/lib.linux-x86_64-cpython-310/ghalton copying ghalton/init.py -> build/lib.linux-x86_64-cpython-310/ghalton copying ghalton/ghalton_wrapper.py -> build/lib.linux-x86_64-cpython-310/ghalton running build_ext building 'ghalton._ghalton_wrapper' extension creating build/temp.linux-x86_64-cpython-310 creating build/temp.linux-x86_64-cpython-310/src x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/harry/software-projects/trajectory-generation/trajectory-gen-arm/include -I/usr/include/python3.10 -c src/Halton.cpp -o build/temp.linux-x86_64-cpython-310/src/Halton.o -stdlib=libc++ x86_64-linux-gnu-gcc: error: unrecognized command-line option ‘-stdlib=libc++’ error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1 [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for ghalton Running setup.py clean for ghalton Failed to build ghalton Installing collected packages: ghalton, termcolor, pygments, psutil, mdurl, imageio, markdown-it-py, rich, meshio, pybullet_planning Running setup.py install for ghalton ... error error: subprocess-exited-with-error

× Running setup.py install for ghalton did not run successfully. │ exit code: 1 ╰─> [18 lines of output] running install /home/harry/software-projects/trajectory-generation/trajectory-gen-arm/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running build running build_py creating build creating build/lib.linux-x86_64-cpython-310 creating build/lib.linux-x86_64-cpython-310/ghalton copying ghalton/constants.py -> build/lib.linux-x86_64-cpython-310/ghalton copying ghalton/init.py -> build/lib.linux-x86_64-cpython-310/ghalton copying ghalton/ghalton_wrapper.py -> build/lib.linux-x86_64-cpython-310/ghalton running build_ext building 'ghalton._ghalton_wrapper' extension creating build/temp.linux-x86_64-cpython-310 creating build/temp.linux-x86_64-cpython-310/src x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/harry/software-projects/trajectory-generation/trajectory-gen-arm/include -I/usr/include/python3.10 -c src/Halton.cpp -o build/temp.linux-x86_64-cpython-310/src/Halton.o -stdlib=libc++ x86_64-linux-gnu-gcc: error: unrecognized command-line option ‘-stdlib=libc++’ error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1 [end of output]

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. ╰─> ghalton

note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.

yijiangh commented 1 year ago

@harrybennett96 I experienced the same issue for python 3.10. Please try python 3.8.