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

Python 3.11 wheels #228

Closed
vyrjana opened this issue Nov 1, 2022 · 4 comments · Fixed by #238
Closed

Python 3.11 wheels #228

vyrjana opened this issue Nov 1, 2022 · 4 comments · Fixed by #238

Comments

@vyrjana
Copy link

vyrjana commented Nov 1, 2022

Is there a timeline for when wheels for Python 3.11 will be made available now that 3.11 has been released?

I did a trial run to see if one of my packages, which depends on cvxopt, would install and pip unsuccessfully tries to compile cvxopt since there are currently no wheels available for Python 3.11.

  × Running setup.py install for cvxopt did not run successfully.
  │ exit code: 1
  ╰─> [42 lines of output]
      running install
      /opt/hostedtoolcache/Python/3.11.0/x64/lib/python3.11/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-311
      creating build/lib.linux-x86_64-cpython-311/cvxopt
      copying src/python/info.py -> build/lib.linux-x86_64-cpython-311/cvxopt
      copying src/python/cvxprog.py -> build/lib.linux-x86_64-cpython-311/cvxopt
      copying src/python/msk.py -> build/lib.linux-x86_64-cpython-311/cvxopt
      copying src/python/_version.py -> build/lib.linux-x86_64-cpython-311/cvxopt
      copying src/python/printing.py -> build/lib.linux-x86_64-cpython-311/cvxopt
      copying src/python/solvers.py -> build/lib.linux-x86_64-cpython-311/cvxopt
      copying src/python/coneprog.py -> build/lib.linux-x86_64-cpython-311/cvxopt
      copying src/python/misc.py -> build/lib.linux-x86_64-cpython-311/cvxopt
      copying src/python/modeling.py -> build/lib.linux-x86_64-cpython-311/cvxopt
      copying src/python/__init__.py -> build/lib.linux-x86_64-cpython-311/cvxopt
      UPDATING build/lib.linux-x86_64-cpython-311/cvxopt/_version.py
      set build/lib.linux-x86_64-cpython-311/cvxopt/_version.py to '1.3.0'
      running build_ext
      building 'base' extension
      creating build/temp.linux-x86_64-cpython-311
      creating build/temp.linux-x86_64-cpython-311/src
      creating build/temp.linux-x86_64-cpython-311/src/C
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11 -c src/C/base.c -o build/temp.linux-x86_64-cpython-311/src/C/base.o
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11 -c src/C/dense.c -o build/temp.linux-x86_64-cpython-311/src/C/dense.o
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11 -c src/C/sparse.c -o build/temp.linux-x86_64-cpython-311/src/C/sparse.o
      gcc -pthread -shared -Wl,--rpath=/opt/hostedtoolcache/Python/3.11.0/x64/lib -Wl,--rpath=/opt/hostedtoolcache/Python/3.11.0/x64/lib build/temp.linux-x86_64-cpython-311/src/C/base.o build/temp.linux-x86_64-cpython-311/src/C/dense.o build/temp.linux-x86_64-cpython-311/src/C/sparse.o -L/usr/lib -L/opt/hostedtoolcache/Python/3.11.0/x64/lib -lm -llapack -lblas -o build/lib.linux-x86_64-cpython-311/cvxopt/base.cpython-311-x86_64-linux-gnu.so
      building 'blas' extension
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11 -c src/C/blas.c -o build/temp.linux-x86_64-cpython-311/src/C/blas.o
      gcc -pthread -shared -Wl,--rpath=/opt/hostedtoolcache/Python/3.11.0/x64/lib -Wl,--rpath=/opt/hostedtoolcache/Python/3.11.0/x64/lib build/temp.linux-x86_64-cpython-311/src/C/blas.o -L/usr/lib -L/opt/hostedtoolcache/Python/3.11.0/x64/lib -lblas -o build/lib.linux-x86_64-cpython-311/cvxopt/blas.cpython-311-x86_64-linux-gnu.so
      building 'lapack' extension
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11 -c src/C/lapack.c -o build/temp.linux-x86_64-cpython-311/src/C/lapack.o
      gcc -pthread -shared -Wl,--rpath=/opt/hostedtoolcache/Python/3.11.0/x64/lib -Wl,--rpath=/opt/hostedtoolcache/Python/3.11.0/x64/lib build/temp.linux-x86_64-cpython-311/src/C/lapack.o -L/usr/lib -L/opt/hostedtoolcache/Python/3.11.0/x64/lib -llapack -lblas -o build/lib.linux-x86_64-cpython-311/cvxopt/lapack.cpython-311-x86_64-linux-gnu.so
      building 'umfpack' extension
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include -I/opt/hostedtoolcache/Python/3.11.0/x64/include/python3.11 -c src/C/umfpack.c -o build/temp.linux-x86_64-cpython-311/src/C/umfpack.o
      src/C/umfpack.c:23:10: fatal error: umfpack.h: No such file or directory
         23 | #include "umfpack.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: legacy-install-failure

× Encountered error while trying to install package.
╰─> cvxopt
@martinandersen
Copy link
Contributor

We will provide wheels for Python 3.11. It will most likely be a few weeks.

@vyrjana
Copy link
Author

vyrjana commented Nov 5, 2022

Great! That is good to know.

@harshil21
Copy link

Hi, is there any update on this? My python 3.11 still runs setup.py install and fails

@tlh-incom
Copy link

@vyrjana I was able to build and install cvxopt from source on Ubuntu with Python 3.11. I had to install libsuitesparse-dev to get umfpack.h.

Any updates on official wheels for 3.11? Cvxopt is the last package that's blocking us from updating :)

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

Successfully merging a pull request may close this issue.

4 participants