You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to install curl_cffi in Termux, via the pip install curl_cffi command, I get the error:
Collecting curl_cffi Using cached curl_cffi-0.5.7.tar.gz (27 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: cffi>=1.12.0 in /data/data/com.termux/files/usr/lib/python3.11/site-packages (from curl_cffi) (1.15.1)
Requirement already satisfied: pycparser in /data/data/com.termux/files/usr/lib/python3.11/site-packages (from cffi>=1.12.0->curl_cffi) (2.21)
Building wheels for collected packages: curl_cffi
Building wheel for curl_cffi (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for curl_cffi (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [91 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-aarch64-cpython-311
creating build/lib.linux-aarch64-cpython-311/curl_cffi
copying curl_cffi/[const.py](https://const.py/) -> build/lib.linux-aarch64-cpython-311/curl_cffi
copying curl_cffi/[build.py](https://build.py/) -> build/lib.linux-aarch64-cpython-311/curl_cffi
copying curl_cffi/[curl.py](https://curl.py/) -> build/lib.linux-aarch64-cpython-311/curl_cffi
copying curl_cffi/[aio.py](https://aio.py/) -> build/lib.linux-aarch64-cpython-311/curl_cffi
copying curl_cffi/[init.py](https://init.py/) -> build/lib.linux-aarch64-cpython-311/curl_cffi
creating build/lib.linux-aarch64-cpython-311/curl_cffi/requests
copying curl_cffi/requests/[cookies.py](https://cookies.py/) -> build/lib.linux-aarch64-cpython-311/curl_cffi/requests
copying curl_cffi/requests/[errors.py](https://errors.py/) -> build/lib.linux-aarch64-cpython-311/curl_cffi/requests
copying curl_cffi/requests/[headers.py](https://headers.py/) -> build/lib.linux-aarch64-cpython-311/curl_cffi/requests
copying curl_cffi/requests/[init.py](https://init.py/) -> build/lib.linux-aarch64-cpython-311/curl_cffi/requests
copying curl_cffi/requests/[session.py](https://session.py/) -> build/lib.linux-aarch64-cpython-311/curl_cffi/requests
running egg_info
writing curl_cffi.egg-info/PKG-INFO
writing dependency_links to curl_cffi.egg-info/dependency_links.txt
writing requirements to curl_cffi.egg-info/requires.txt
writing top-level names to curl_cffi.egg-info/top_level.txt
reading manifest file 'curl_cffi.egg-info/SOURCES.txt'
reading manifest template '[MANIFEST.in](https://manifest.in/)'
warning: no files found matching 'curl_cffi/cacert.pem'
warning: no files found matching 'curl_cffi/_wrapper.*'
warning: no files found matching 'curl_cffi/include/curl/*'
adding license file 'LICENSE'
writing manifest file 'curl_cffi.egg-info/SOURCES.txt'
/data/data/com.termux/files/usr/tmp/pip-build-env-wydui0is/overlay/lib/python3.11/site-packages/setuptools/command/build_py.py:204: _Warning: Package 'curl_cffi.ffi' is absent from the packages configuration.
!!
****************
############################
# Package would be ignored #
############################
Python recognizes 'curl_cffi.ffi' as an importable package[^1],
but it is absent from setuptools' packages configuration.
This leads to an ambiguous overall configuration. If you want to distribute this
package, please make sure that 'curl_cffi.ffi' is explicitly added
to the packages configuration field.
Alternatively, you can also rely on setuptools' discovery methods
(for example by using find_namespace_packages(...)/find_namespace:
instead of find_packages(...)/find:).
You can read more about "package discovery" on setuptools documentation page:
- https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
If you don't want 'curl_cffi.ffi' to be distributed and are
already explicitly excluding 'curl_cffi.ffi' via
find_namespace_packages(...)/find_namespace or find_packages(...)/find,
you can try to use exclude_package_data, or include-package-data=False in
combination with a more fine grained package-data configuration.
You can read more about "package data files" on setuptools documentation page:
- https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[^1]: For Python, any directory (with suitable naming) can be imported,
even if it does not contain any .py files.
On the other hand, currently there is no concept of package data
directory, all directories are treated like packages.
****************
!!
check.warn(importable)
creating build/lib.linux-aarch64-cpython-311/curl_cffi/ffi
copying curl_cffi/ffi/cdef.c -> build/lib.linux-aarch64-cpython-311/curl_cffi/ffi
copying curl_cffi/ffi/shim.c -> build/lib.linux-aarch64-cpython-311/curl_cffi/ffi
copying curl_cffi/ffi/shim.h -> build/lib.linux-aarch64-cpython-311/curl_cffi/ffi
running build_ext
generating cffi module 'build/temp.linux-aarch64-cpython-311/curl_cffi._wrapper.c'
creating build/temp.linux-aarch64-cpython-311
building 'curl_cffi._wrapper' extension
creating build/temp.linux-aarch64-cpython-311/build
creating build/temp.linux-aarch64-cpython-311/build/temp.linux-aarch64-cpython-311
creating build/temp.linux-aarch64-cpython-311/curl_cffi
creating build/temp.linux-aarch64-cpython-311/curl_cffi/ffi
aarch64-linux-android-clang -DNDEBUG -g -fwrapv -O3 -Wall -fstack-protector-strong -O3 -fstack-protector-strong -O3 -fPIC -Icurl_cffi/include -Icurl_cffi/ffi -I/data/data/com.termux/files/usr/include/python3.11 -c build/temp.linux-aarch64-cpython-311/curl_cffi._wrapper.c -o build/temp.linux-aarch64-cpython-311/build/temp.linux-aarch64-cpython-311/curl_cffi._wrapper.o
build/temp.linux-aarch64-cpython-311/curl_cffi._wrapper.c:884:10: error: call to undeclared function 'curl_easy_impersonate'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
return curl_easy_impersonate(x0, x1, x2);
^
build/temp.linux-aarch64-cpython-311/curl_cffi._wrapper.c:928:14: error: call to undeclared function 'curl_easy_impersonate'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
{ result = curl_easy_impersonate(x0, x1, x2); }
^
2 errors generated.
error: command '/data/data/com.termux/files/usr/bin/aarch64-linux-android-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 curl_cffi
Failed to build curl_cffi
ERROR: Could not build wheels for curl_cffi, which is required to install pyproject.toml-based projects
The text was updated successfully, but these errors were encountered:
When trying to install curl_cffi in Termux, via the
pip install curl_cffi
command, I get the error:The text was updated successfully, but these errors were encountered: