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

cffi does not compile #3

Open
ogermer opened this issue Nov 18, 2024 · 1 comment
Open

cffi does not compile #3

ogermer opened this issue Nov 18, 2024 · 1 comment

Comments

@ogermer
Copy link

ogermer commented Nov 18, 2024

While installing the requirements I run into an error: cffi does not compile.

See error message below:

`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
╰─> [48 lines of output]
running bdist_wheel
running build
running build_py
creating build/lib.macosx-14.0-arm64-cpython-313/cffi
copying src/cffi/_imp_emulation.py -> build/lib.macosx-14.0-arm64-cpython-313/cffi
copying src/cffi/backend_ctypes.py -> build/lib.macosx-14.0-arm64-cpython-313/cffi
copying src/cffi/error.py -> build/lib.macosx-14.0-arm64-cpython-313/cffi
copying src/cffi/setuptools_ext.py -> build/lib.macosx-14.0-arm64-cpython-313/cffi
copying src/cffi/_shimmed_dist_utils.py -> build/lib.macosx-14.0-arm64-cpython-313/cffi
copying src/cffi/init.py -> build/lib.macosx-14.0-arm64-cpython-313/cffi
copying src/cffi/cffi_opcode.py -> build/lib.macosx-14.0-arm64-cpython-313/cffi
copying src/cffi/vengine_gen.py -> build/lib.macosx-14.0-arm64-cpython-313/cffi
copying src/cffi/pkgconfig.py -> build/lib.macosx-14.0-arm64-cpython-313/cffi
copying src/cffi/model.py -> build/lib.macosx-14.0-arm64-cpython-313/cffi
copying src/cffi/ffiplatform.py -> build/lib.macosx-14.0-arm64-cpython-313/cffi
copying src/cffi/api.py -> build/lib.macosx-14.0-arm64-cpython-313/cffi
copying src/cffi/vengine_cpy.py -> build/lib.macosx-14.0-arm64-cpython-313/cffi
copying src/cffi/commontypes.py -> build/lib.macosx-14.0-arm64-cpython-313/cffi
copying src/cffi/lock.py -> build/lib.macosx-14.0-arm64-cpython-313/cffi
copying src/cffi/recompiler.py -> build/lib.macosx-14.0-arm64-cpython-313/cffi
copying src/cffi/cparser.py -> build/lib.macosx-14.0-arm64-cpython-313/cffi
copying src/cffi/verifier.py -> build/lib.macosx-14.0-arm64-cpython-313/cffi
copying src/cffi/_cffi_include.h -> build/lib.macosx-14.0-arm64-cpython-313/cffi
copying src/cffi/parse_c_type.h -> build/lib.macosx-14.0-arm64-cpython-313/cffi
copying src/cffi/_embedding.h -> build/lib.macosx-14.0-arm64-cpython-313/cffi
copying src/cffi/_cffi_errors.h -> build/lib.macosx-14.0-arm64-cpython-313/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.macosx-14.0-arm64-cpython-313/src/c
clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -DFFI_BUILDING=1 -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/ffi "-I/Users/<...>/bnetza-emf-scraper/venv/include" -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.13/include/python3.13 -c src/c/_cffi_backend.c -o build/temp.macosx-14.0-arm64-cpython-313/src/c/_cffi_backend.o -iwithsysroot/usr/include/ffi
src/c/_cffi_backend.c:4532:22: warning: 'Py_FileSystemDefaultEncoding' is deprecated [-Wdeprecated-declarations]
4532 | Py_FileSystemDefaultEncoding, &filename_or_null, &flags))
| ^
/opt/homebrew/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;
| ^
/opt/homebrew/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))
| ^
src/c/_cffi_backend.c:6121:9: error: call to undeclared function '_PyErr_WriteUnraisableMsg'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
6121 | _PyErr_WriteUnraisableMsg(PyText_AS_UTF8(s), NULL);
| ^
src/c/_cffi_backend.c:6121:9: note: did you mean 'PyErr_WriteUnraisable'?
/opt/homebrew/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`

@ogermer
Copy link
Author

ogermer commented Nov 18, 2024

bouncing cffi to 1.17.1 in requirements.txt solved the problem

https://cffi.readthedocs.io/en/stable/

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