-
Notifications
You must be signed in to change notification settings - Fork 604
Open
Description
When I trying to install requirements42.txt dependencies cffi module is throwing following error.
I am using python 3.13.0_1
pip install -r requirements42.txt
Collecting Django==4.2.7 (from -r requirements42.txt (line 8))
Using cached Django-4.2.7-py3-none-any.whl.metadata (4.1 kB)
Collecting asgiref==3.7.2 (from -r requirements42.txt (line 18))
Using cached asgiref-3.7.2-py3-none-any.whl.metadata (9.2 kB)
....
....
....
_Building wheels for collected packages: cffi
Building wheel for cffi (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for cffi (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [46 lines of output]
running bdist_wheel
running build
running build_py
creating build/lib.macosx-14.0-x86_64-cpython-313/cffi
copying cffi/backend_ctypes.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
copying cffi/error.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
copying cffi/setuptools_ext.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
copying cffi/__init__.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
copying cffi/cffi_opcode.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
copying cffi/vengine_gen.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
copying cffi/pkgconfig.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
copying cffi/model.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
copying cffi/ffiplatform.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
copying cffi/api.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
copying cffi/vengine_cpy.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
copying cffi/commontypes.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
copying cffi/lock.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
copying cffi/recompiler.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
copying cffi/cparser.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
copying cffi/verifier.py -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
copying cffi/_cffi_include.h -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
copying cffi/parse_c_type.h -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
copying cffi/_embedding.h -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
copying cffi/_cffi_errors.h -> build/lib.macosx-14.0-x86_64-cpython-313/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.macosx-14.0-x86_64-cpython-313/c
clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -DFFI_BUILDING=1 -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/Users/erensoylu/Documents/dj4e/dj4e-samples/.venv/include -I/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.13/include/python3.13 -c c/_cffi_backend.c -o build/temp.macosx-14.0-x86_64-cpython-313/c/_cffi_backend.o -iwithsysroot/usr/include/ffi
c/_cffi_backend.c:4523:22: warning: 'Py_FileSystemDefaultEncoding' is deprecated [-Wdeprecated-declarations]
4523 | Py_FileSystemDefaultEncoding, &filename_or_null, &flags))
| ^
/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.13/include/python3.13/fileobject.h:22:1: note: 'Py_FileSystemDefaultEncoding' has been explicitly marked deprecated here
22 | Py_DEPRECATED(3.12) PyAPI_DATA(const char *) Py_FileSystemDefaultEncoding;
| ^
/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.13/include/python3.13/pyport.h:251:54: note: expanded from macro 'Py_DEPRECATED'
251 | #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
| ^
c/_cffi_backend.c:6112:9: error: call to undeclared function '_PyErr_WriteUnraisableMsg'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
6112 | _PyErr_WriteUnraisableMsg(PyText_AS_UTF8(s), NULL);
| ^
c/_cffi_backend.c:6112:9: note: did you mean 'PyErr_WriteUnraisable'?
/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.13/include/python3.13/pyerrors.h:233:18: note: 'PyErr_WriteUnraisable' declared here
233 | PyAPI_FUNC(void) PyErr_WriteUnraisable(PyObject *);
| ^
1 warning and 1 error generated.
error: command '/usr/bin/clang' 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 cffi
Failed to build cffi
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (cffi)_
I solved this issue by manipulating requirements for cffi module version to 1.17.1
Metadata
Metadata
Assignees
Labels
No labels