-
Notifications
You must be signed in to change notification settings - Fork 13
Any way to make this work for Python 3.11? #2
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
Comments
I cannot reproduce this. The library works fine for me on Python 3.11.4. Console output
|
Here's the output. Pip outputCollecting vercel-llm-api
Downloading vercel_llm_api-0.2.1-py3-none-any.whl (18 kB)
Collecting quickjs
Using cached quickjs-1.19.2.tar.gz (455 kB)
Preparing metadata (setup.py) ... done
Collecting curl-cffi
Using cached curl_cffi-0.5.6-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.2 MB)
Collecting cffi>=1.12.0
Using cached cffi-1.15.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (462 kB)
Collecting pycparser
Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Installing collected packages: quickjs, pycparser, cffi, curl-cffi, vercel-llm-api
DEPRECATION: quickjs is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
Running setup.py install for quickjs ... error
error: subprocess-exited-with-error
× Running setup.py install for quickjs did not run successfully.
│ exit code: 1
╰─> [19 lines of output]
running install
/home/mak448a/venv/lib64/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/quickjs
copying quickjs/__init__.py -> build/lib.linux-x86_64-cpython-311/quickjs
running build_ext
building '_quickjs' extension
creating build/temp.linux-x86_64-cpython-311
creating build/temp.linux-x86_64-cpython-311/upstream-quickjs
gcc -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DCONFIG_VERSION=\"2021-03-27\" -DCONFIG_BIGNUM -I/home/mak448a/venv/include -I/usr/include/python3.11 -c module.c -o build/temp.linux-x86_64-cpython-311/module.o -Werror=incompatible-pointer-types
module.c:1:10: fatal error: Python.h: No such file or directory
1 | #include <Python.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.
╰─> quickjs
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
[notice] A new release of pip available: 22.3.1 -> 23.1.2
[notice] To update, run: pip install --upgrade pip |
Maybe this could help you? |
Oh ok thanks, I didn't know I had to install a package. It works now :) |
@ading2210, the problem is still here for me.
I'm on Windows, and I hadn't found python-dev for it yet. Using usual venv. |
Apparently it's already included with the main Python installation. See https://stackoverflow.com/questions/16448710/how-to-get-python-dev-for-windows |
The installation fails on Python 3.11 because of quickjs.
The text was updated successfully, but these errors were encountered: