BerkeleyAutomation / python-fcl

Python binding of FCL library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python 3.10 support?

sarimmehdi opened this issue · comments

I was able to use the library just fine up till python 3.9. With python 3.10, when I run pip install python-fcl, I get the following error:

Collecting python-fcl
  Using cached python-fcl-0.0.12.tar.gz (17 kB)
Requirement already satisfied: numpy in /home/muhammadmehdi/anaconda3/envs/memex/lib/python3.10/site-packages (from python-fcl) (1.22.3)
Requirement already satisfied: cython in /home/muhammadmehdi/anaconda3/envs/memex/lib/python3.10/site-packages (from python-fcl) (0.29.28)
Building wheels for collected packages: python-fcl
  Building wheel for python-fcl (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/muhammadmehdi/anaconda3/envs/memex/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-9sm4enj6/python-fcl_05eeff91d7a8401fb2470b7f0faf0317/setup.py'"'"'; __file__='"'"'/tmp/pip-install-9sm4enj6/python-fcl_05eeff91d7a8401fb2470b7f0faf0317/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-fk87rphu
       cwd: /tmp/pip-install-9sm4enj6/python-fcl_05eeff91d7a8401fb2470b7f0faf0317/
  Complete output (27 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.10
  creating build/lib.linux-x86_64-3.10/fcl
  copying fcl/__init__.py -> build/lib.linux-x86_64-3.10/fcl
  copying fcl/collision_data.py -> build/lib.linux-x86_64-3.10/fcl
  copying fcl/version.py -> build/lib.linux-x86_64-3.10/fcl
  running build_ext
  cythoning fcl/fcl.pyx to fcl/fcl.cpp
  building 'fcl.fcl' extension
  creating build/temp.linux-x86_64-3.10
  creating build/temp.linux-x86_64-3.10/fcl
  gcc -pthread -B /home/muhammadmehdi/anaconda3/envs/memex/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/muhammadmehdi/anaconda3/envs/memex/include -fPIC -O2 -isystem /home/muhammadmehdi/anaconda3/envs/memex/include -fPIC -I/usr/include -I/usr/local/include -I/usr/include/eigen3 -I/home/muhammadmehdi/anaconda3/envs/memex/lib/python3.10/site-packages/numpy/core/include -I/home/muhammadmehdi/anaconda3/envs/memex/include/python3.10 -c fcl/fcl.cpp -o build/temp.linux-x86_64-3.10/fcl/fcl.o -std=c++11
  In file included from /home/muhammadmehdi/anaconda3/envs/memex/lib/python3.10/site-packages/numpy/core/include/numpy/ndarraytypes.h:1960,
                   from /home/muhammadmehdi/anaconda3/envs/memex/lib/python3.10/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
                   from /home/muhammadmehdi/anaconda3/envs/memex/lib/python3.10/site-packages/numpy/core/include/numpy/arrayobject.h:5,
                   from fcl/fcl.cpp:708:
  /home/muhammadmehdi/anaconda3/envs/memex/lib/python3.10/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
     17 | #warning "Using deprecated NumPy API, disable it with " \
        |  ^~~~~~~
  fcl/fcl.cpp:732:10: fatal error: octomap/OccupancyOcTreeBase.h: No such file or directory
    732 | #include "octomap/OccupancyOcTreeBase.h"
        |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  compilation terminated.
  error: command '/usr/bin/gcc' failed with exit code 1
  ----------------------------------------
  ERROR: Failed building wheel for python-fcl
  Running setup.py clean for python-fcl
Failed to build python-fcl
Installing collected packages: python-fcl
    Running setup.py install for python-fcl ... error
    ERROR: Command errored out with exit status 1:
     command: /home/muhammadmehdi/anaconda3/envs/memex/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-9sm4enj6/python-fcl_05eeff91d7a8401fb2470b7f0faf0317/setup.py'"'"'; __file__='"'"'/tmp/pip-install-9sm4enj6/python-fcl_05eeff91d7a8401fb2470b7f0faf0317/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-owwnkyzy/install-record.txt --single-version-externally-managed --compile --install-headers /home/muhammadmehdi/anaconda3/envs/memex/include/python3.10/python-fcl
         cwd: /tmp/pip-install-9sm4enj6/python-fcl_05eeff91d7a8401fb2470b7f0faf0317/
    Complete output (27 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.10
    creating build/lib.linux-x86_64-3.10/fcl
    copying fcl/__init__.py -> build/lib.linux-x86_64-3.10/fcl
    copying fcl/collision_data.py -> build/lib.linux-x86_64-3.10/fcl
    copying fcl/version.py -> build/lib.linux-x86_64-3.10/fcl
    running build_ext
    skipping 'fcl/fcl.cpp' Cython extension (up-to-date)
    building 'fcl.fcl' extension
    creating build/temp.linux-x86_64-3.10
    creating build/temp.linux-x86_64-3.10/fcl
    gcc -pthread -B /home/muhammadmehdi/anaconda3/envs/memex/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/muhammadmehdi/anaconda3/envs/memex/include -fPIC -O2 -isystem /home/muhammadmehdi/anaconda3/envs/memex/include -fPIC -I/usr/include -I/usr/local/include -I/usr/include/eigen3 -I/home/muhammadmehdi/anaconda3/envs/memex/lib/python3.10/site-packages/numpy/core/include -I/home/muhammadmehdi/anaconda3/envs/memex/include/python3.10 -c fcl/fcl.cpp -o build/temp.linux-x86_64-3.10/fcl/fcl.o -std=c++11
    In file included from /home/muhammadmehdi/anaconda3/envs/memex/lib/python3.10/site-packages/numpy/core/include/numpy/ndarraytypes.h:1960,
                     from /home/muhammadmehdi/anaconda3/envs/memex/lib/python3.10/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
                     from /home/muhammadmehdi/anaconda3/envs/memex/lib/python3.10/site-packages/numpy/core/include/numpy/arrayobject.h:5,
                     from fcl/fcl.cpp:708:
    /home/muhammadmehdi/anaconda3/envs/memex/lib/python3.10/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
       17 | #warning "Using deprecated NumPy API, disable it with " \
          |  ^~~~~~~
    fcl/fcl.cpp:732:10: fatal error: octomap/OccupancyOcTreeBase.h: No such file or directory
      732 | #include "octomap/OccupancyOcTreeBase.h"
          |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    error: command '/usr/bin/gcc' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/muhammadmehdi/anaconda3/envs/memex/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-9sm4enj6/python-fcl_05eeff91d7a8401fb2470b7f0faf0317/setup.py'"'"'; __file__='"'"'/tmp/pip-install-9sm4enj6/python-fcl_05eeff91d7a8401fb2470b7f0faf0317/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-owwnkyzy/install-record.txt --single-version-externally-managed --compile --install-headers /home/muhammadmehdi/anaconda3/envs/memex/include/python3.10/python-fcl Check the logs for full command output.

There are now python 3.10 wheels available on pypi! Closing this but feel free to reopen if they do not work for you.