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

Unable to install on Python 3.10 #6

Open
Federico-PizarroBejarano opened this issue Oct 7, 2024 · 1 comment
Open

Unable to install on Python 3.10 #6

Federico-PizarroBejarano opened this issue Oct 7, 2024 · 1 comment

Comments

@Federico-PizarroBejarano

Hello,

I have been using pytope for several years, but recently found that I can no longer install it. I am unsure why. Here are the steps to reproduce the issue:

conda create -n test python=3.10
conda activate test
python -m pip install pytope

I get the error:

Building wheels for collected packages: pycddlib
  Building wheel for pycddlib (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for pycddlib (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [29 lines of output]
      running bdist_wheel
      running build
      running build_py
      running egg_info
      writing src/pycddlib.egg-info/PKG-INFO
      writing dependency_links to src/pycddlib.egg-info/dependency_links.txt
      writing requirements to src/pycddlib.egg-info/requires.txt
      writing top-level names to src/pycddlib.egg-info/top_level.txt
      reading manifest file 'src/pycddlib.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      no previously-included directories found matching 'test'
      adding license file 'LICENSE.md'
      adding license file 'AUTHORS'
      writing manifest file 'src/pycddlib.egg-info/SOURCES.txt'
      creating build/lib.linux-x86_64-cpython-310/cdd
      copying src/cdd/__init__.pyi -> build/lib.linux-x86_64-cpython-310/cdd
      copying src/cdd/gmp.pyi -> build/lib.linux-x86_64-cpython-310/cdd
      copying src/cdd/py.typed -> build/lib.linux-x86_64-cpython-310/cdd
      running build_ext
      Compiling cython/_cdd.pyx because it changed.
      [1/1] Cythonizing cython/_cdd.pyx
      building 'cdd.__init__' extension
      creating build/temp.linux-x86_64-cpython-310/cython
      gcc -pthread -B /home/federico/miniconda3/envs/test/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/federico/miniconda3/envs/test/include -fPIC -O2 -isystem /home/federico/miniconda3/envs/test/include -fPIC -I/home/federico/miniconda3/envs/test/include/python3.10 -c cython/_cdd.c -o build/temp.linux-x86_64-cpython-310/cython/_cdd.o
      cython/_cdd.c:1248:10: fatal error: cddlib/setoper.h: No such file or directory
       1248 | #include "cddlib/setoper.h"
            |          ^~~~~~~~~~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/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 pycddlib
Failed to build pycddlib
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (pycddlib)

This does not happen for Python 3.8. I would really appreciate help with this as it is interfering with our open-source gym utiasDSL/safe-control-gym#167. Thank you!!

@Federico-PizarroBejarano
Copy link
Author

Hmm it seems to be an issue with a recent update of pycddlib. I think by setting an earlier version of this dependency this issue can by bypassed.

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

1 participant