Closed mak448a closed 1 year ago
I cannot reproduce this. The library works fine for me on Python 3.11.4.
Here's the output. I'm on Fedora if that helps.
Oh ok thanks, I didn't know I had to install a package. It works now :)
@ading2210, the problem is still here for me.
Collecting vercel-llm-api
Obtaining dependency information for vercel-llm-api from https://files.pythonhosted.org/packages/b5/15/e4f6bcc4b75d11a34c529c860a9599325528e616a7ce63688c14b893e5e4/vercel_llm_api-0.2.1-py3-none-any.whl.metadata
Using cached vercel_llm_api-0.2.1-py3-none-any.whl.metadata (7.6 kB)
Collecting quickjs (from vercel-llm-api)
Using cached quickjs-1.19.2.tar.gz (455 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: curl-cffi in d:\python\fanaticexploreruserbot\.venv\lib\site-packages (from vercel-llm-api) (0.5.7)
Requirement already satisfied: cffi>=1.12.0 in d:\python\fanaticexploreruserbot\.venv\lib\site-packages (from curl-cffi->vercel-llm-api) (1.15.1)
Requirement already satisfied: pycparser in d:\python\fanaticexploreruserbot\.venv\lib\site-packages (from cffi>=1.12.0->curl-cffi->vercel-llm-api) (2.21)
Using cached vercel_llm_api-0.2.1-py3-none-any.whl (18 kB)
Building wheels for collected packages: quickjs
Building wheel for quickjs (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for quickjs (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [15 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-311
creating build\lib.win-amd64-cpython-311\quickjs
copying quickjs\__init__.py -> build\lib.win-amd64-cpython-311\quickjs
running build_ext
building '_quickjs' extension
creating build\temp.win-amd64-cpython-311
creating build\temp.win-amd64-cpython-311\Release
creating build\temp.win-amd64-cpython-311\Release\upstream-quickjs
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DCONFIG_VERSION=\"2021-03-27\" -DCONFIG_BIGNUM -ID:\Python\FanaticExplorerUserboDCONFIG_BIGNUM -ID:\Python\FanaticExplorerUserbot\.venv\include -IC:\Users\andre\AppData\Local\Programs\Python\Python311\include -IC:\Users\andre\AppDatarogram Files (x86)\Microsoft Visual Studio 14.0\\Local\Programs\Python\Python311\Include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Microsoft Visual St" /Tcmodule.c /Fobuild\temp.win-amd64-cpython-31udio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" /Tcmodule.c /Fobuild\temp.win-amd64-cpython-311\Release\module.obj -Werror=incompatible-pointer-types
cl: Є®¬ ¤ п бва®Є error D8021: Ґ¤®ЇгбвЁ¬л© зЁб«®ў®© аЈг¬Ґв "/Werror=incompatible-pointer-types"
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit code 2
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for quickjs
Failed to build quickjs
ERROR: Could not build wheels for quickjs, which is required to install pyproject.toml-based projects
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.