Загрузка данных
(venv) user@raspberry:~ $ pip install cryptography==39.0.1
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting cryptography==39.0.1
Downloading cryptography-39.0.1.tar.gz (603 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 603.6/603.6 kB 4.7 MB/s 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting cffi>=1.12 (from cryptography==39.0.1)
Using cached cffi-2.0.0-cp39-cp39-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl.metadata (2.6 kB)
Collecting pycparser (from cffi>=1.12->cryptography==39.0.1)
Using cached https://www.piwheels.org/simple/pycparser/pycparser-2.23-py3-none-any.whl (118 kB)
Using cached cffi-2.0.0-cp39-cp39-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl (208 kB)
Building wheels for collected packages: cryptography
Building wheel for cryptography (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for cryptography (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [398 lines of output]
/tmp/pip-build-env-l85rexpr/overlay/lib/python3.9/site-packages/setuptools/dist.py:765: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
********************************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:
License :: OSI Approved :: Apache Software License
License :: OSI Approved :: BSD License
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
self._finalize_license_expression()
running bdist_wheel
running build
running build_py
creating build/lib.linux-x86_64-cpython-39/cryptography
copying src/cryptography/__init__.py -> build/lib.linux-x86_64-cpython-39/cryptography
copying src/cryptography/fernet.py -> build/lib.linux-x86_64-cpython-39/cryptography
copying src/cryptography/__about__.py -> build/lib.linux-x86_64-cpython-39/cryptography
copying src/cryptography/exceptions.py -> build/lib.linux-x86_64-cpython-39/cryptography
copying src/cryptography/utils.py -> build/lib.linux-x86_64-cpython-39/cryptography
creating build/lib.linux-x86_64-cpython-39/cryptography/hazmat
copying src/cryptography/hazmat/__init__.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat
copying src/cryptography/hazmat/_oid.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat
creating build/lib.linux-x86_64-cpython-39/cryptography/x509
copying src/cryptography/x509/__init__.py -> build/lib.linux-x86_64-cpython-39/cryptography/x509
copying src/cryptography/x509/ocsp.py -> build/lib.linux-x86_64-cpython-39/cryptography/x509
copying src/cryptography/x509/extensions.py -> build/lib.linux-x86_64-cpython-39/cryptography/x509
copying src/cryptography/x509/base.py -> build/lib.linux-x86_64-cpython-39/cryptography/x509
copying src/cryptography/x509/name.py -> build/lib.linux-x86_64-cpython-39/cryptography/x509
copying src/cryptography/x509/certificate_transparency.py -> build/lib.linux-x86_64-cpython-39/cryptography/x509
copying src/cryptography/x509/general_name.py -> build/lib.linux-x86_64-cpython-39/cryptography/x509
copying src/cryptography/x509/oid.py -> build/lib.linux-x86_64-cpython-39/cryptography/x509
creating build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/_asymmetric.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/_serialization.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/poly1305.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/_cipheralgorithm.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives
creating build/lib.linux-x86_64-cpython-39/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/__init__.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/backends
creating build/lib.linux-x86_64-cpython-39/cryptography/hazmat/bindings
copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/bindings
creating build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives/twofactor
creating build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/aead.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives/ciphers
creating build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/types.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/x25519.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ed448.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ed25519.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/x448.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives/asymmetric
creating build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/__init__.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/pkcs12.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/ssh.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/base.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/pkcs7.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives/serialization
creating build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/primitives/kdf
creating build/lib.linux-x86_64-cpython-39/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/poly1305.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x25519.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ed448.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/aead.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ed25519.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x448.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/backends/openssl
creating build/lib.linux-x86_64-cpython-39/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/bindings/openssl
running egg_info
writing src/cryptography.egg-info/PKG-INFO
writing dependency_links to src/cryptography.egg-info/dependency_links.txt
writing requirements to src/cryptography.egg-info/requires.txt
writing top-level names to src/cryptography.egg-info/top_level.txt
reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs/_build'
warning: no previously-included files found matching 'vectors'
warning: no previously-included files matching '*' found under directory 'vectors'
warning: no previously-included files matching '*' found under directory '.github'
warning: no previously-included files found matching 'release.py'
warning: no previously-included files found matching '.readthedocs.yml'
warning: no previously-included files found matching 'ci-constraints-requirements.txt'
warning: no previously-included files found matching 'tox.ini'
warning: no previously-included files found matching 'mypy.ini'
adding license file 'LICENSE'
adding license file 'LICENSE.APACHE'
adding license file 'LICENSE.BSD'
adding license file 'LICENSE.PSF'
writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
/tmp/pip-build-env-l85rexpr/overlay/lib/python3.9/site-packages/setuptools/command/build_py.py:215: _Warning: Package 'cryptography.hazmat.bindings._rust' is absent from the `packages` configuration.
!!
********************************************************************************
############################
# Package would be ignored #
############################
Python recognizes 'cryptography.hazmat.bindings._rust' 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 'cryptography.hazmat.bindings._rust' 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 'cryptography.hazmat.bindings._rust' to be distributed and are
already explicitly excluding 'cryptography.hazmat.bindings._rust' 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)
copying src/cryptography/py.typed -> build/lib.linux-x86_64-cpython-39/cryptography
copying src/cryptography/hazmat/bindings/_openssl.pyi -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/bindings
creating build/lib.linux-x86_64-cpython-39/cryptography/hazmat/bindings/_rust
copying src/cryptography/hazmat/bindings/_rust/__init__.pyi -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/bindings/_rust
copying src/cryptography/hazmat/bindings/_rust/asn1.pyi -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/bindings/_rust
copying src/cryptography/hazmat/bindings/_rust/ocsp.pyi -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/bindings/_rust
copying src/cryptography/hazmat/bindings/_rust/pkcs7.pyi -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/bindings/_rust
copying src/cryptography/hazmat/bindings/_rust/x509.pyi -> build/lib.linux-x86_64-cpython-39/cryptography/hazmat/bindings/_rust
running build_ext
generating cffi module 'build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c'
creating build/temp.linux-x86_64-cpython-39
building 'cryptography.hazmat.bindings._openssl' extension
creating build/temp.linux-x86_64-cpython-39/build/temp.linux-x86_64-cpython-39
i686-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-hfHQKB/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/user/venv/include -I/usr/include/python3.9 -c build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c -o build/temp.linux-x86_64-cpython-39/build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.o -Wconversion -Wno-error=sign-conversion
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c: In function ‘Cryptography_pem_password_cb’:
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c:2178:37: warning: conversion to ‘size_t’ {aka ‘unsigned int’} from ‘int’ may change the sign of the result [-Wsign-conversion]
2178 | memcpy(buf, st->password, st->length);
| ~~^~~~~~~~
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c: In function ‘_cffi_d_SSL_CTX_add_extra_chain_cert’:
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c:26235:10: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
26235 | return SSL_CTX_add_extra_chain_cert(x0, x1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c: In function ‘_cffi_f_SSL_CTX_add_extra_chain_cert’:
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c:26273:14: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
26273 | { result = SSL_CTX_add_extra_chain_cert(x0, x1); }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c: In function ‘_cffi_d_SSL_CTX_clear_mode’:
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c:26414:10: warning: conversion to ‘long int’ from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
26414 | return SSL_CTX_clear_mode(x0, x1);
| ^~~~~~~~~~~~~~~~~~
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c:26414:10: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c: In function ‘_cffi_f_SSL_CTX_clear_mode’:
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c:26447:14: warning: conversion to ‘long int’ from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
26447 | { result = SSL_CTX_clear_mode(x0, x1); }
| ^~~~~~~~~~~~~~~~~~
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c:26447:14: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c: In function ‘_cffi_d_SSL_CTX_get_mode’:
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c:26822:10: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
26822 | return SSL_CTX_get_mode(x0);
| ^~~~~~~~~~~~~~~~
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c: In function ‘_cffi_f_SSL_CTX_get_mode’:
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c:26845:14: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
26845 | { result = SSL_CTX_get_mode(x0); }
| ^~~~~~~~~~~~~~~~
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c: In function ‘_cffi_d_SSL_CTX_get_session_cache_mode’:
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c:26936:10: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
26936 | return SSL_CTX_get_session_cache_mode(x0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c: In function ‘_cffi_f_SSL_CTX_get_session_cache_mode’:
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c:26959:14: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
26959 | { result = SSL_CTX_get_session_cache_mode(x0); }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c: In function ‘_cffi_d_SSL_CTX_set_mode’:
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c:28653:10: warning: conversion to ‘long int’ from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
28653 | return SSL_CTX_set_mode(x0, x1);
| ^~~~~~~~~~~~~~~~
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c:28653:10: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c: In function ‘_cffi_f_SSL_CTX_set_mode’:
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c:28686:14: warning: conversion to ‘long int’ from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
28686 | { result = SSL_CTX_set_mode(x0, x1); }
| ^~~~~~~~~~~~~~~~
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c:28686:14: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
In file included from build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c:826:
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c: In function ‘_cffi_d_SSL_CTX_set_session_cache_mode’:
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c:29124:45: warning: conversion to ‘long int’ from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
29124 | return SSL_CTX_set_session_cache_mode(x0, x1);
| ^~
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c:29124:10: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
29124 | return SSL_CTX_set_session_cache_mode(x0, x1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c:826:
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c: In function ‘_cffi_f_SSL_CTX_set_session_cache_mode’:
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c:29157:49: warning: conversion to ‘long int’ from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
29157 | { result = SSL_CTX_set_session_cache_mode(x0, x1); }
| ^~
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c:29157:14: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
29157 | { result = SSL_CTX_set_session_cache_mode(x0, x1); }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c: In function ‘_cffi_d_SSL_CTX_set_tmp_dh’:
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c:29530:10: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
29530 | return SSL_CTX_set_tmp_dh(x0, x1);
| ^~~~~~~~~~~~~~~~~~
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c: In function ‘_cffi_f_SSL_CTX_set_tmp_dh’:
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c:29568:14: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
29568 | { result = SSL_CTX_set_tmp_dh(x0, x1); }
| ^~~~~~~~~~~~~~~~~~
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c: In function ‘_cffi_d_SSL_CTX_set_tmp_ecdh’:
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c:29583:10: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
29583 | return SSL_CTX_set_tmp_ecdh(x0, x1);
| ^~~~~~~~~~~~~~~~~~~~
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c: In function ‘_cffi_f_SSL_CTX_set_tmp_ecdh’:
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c:29621:14: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
29621 | { result = SSL_CTX_set_tmp_ecdh(x0, x1); }
| ^~~~~~~~~~~~~~~~~~~~
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c: In function ‘_cffi_d_SSL_SESSION_get_ticket_lifetime_hint’:
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c:30250:10: warning: conversion to ‘long int’ from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
30250 | return SSL_SESSION_get_ticket_lifetime_hint(x0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c: In function ‘_cffi_f_SSL_SESSION_get_ticket_lifetime_hint’:
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c:30273:14: warning: conversion to ‘long int’ from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
30273 | { result = SSL_SESSION_get_ticket_lifetime_hint(x0); }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c: In function ‘_cffi_d_SSL_clear_mode’:
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c:30621:10: warning: conversion to ‘long int’ from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
30621 | return SSL_clear_mode(x0, x1);
| ^~~~~~~~~~~~~~
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c:30621:10: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c: In function ‘_cffi_f_SSL_clear_mode’:
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c:30654:14: warning: conversion to ‘long int’ from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
30654 | { result = SSL_clear_mode(x0, x1); }
| ^~~~~~~~~~~~~~
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c:30654:14: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c: In function ‘_cffi_d_SSL_get_mode’:
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c:31564:10: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
31564 | return SSL_get_mode(x0);
| ^~~~~~~~~~~~
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c: In function ‘_cffi_f_SSL_get_mode’:
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c:31587:14: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
31587 | { result = SSL_get_mode(x0); }
| ^~~~~~~~~~~~
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c: In function ‘_cffi_d_SSL_set_mode’:
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c:33204:10: warning: conversion to ‘long int’ from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
33204 | return SSL_set_mode(x0, x1);
| ^~~~~~~~~~~~
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c:33204:10: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c: In function ‘_cffi_f_SSL_set_mode’:
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c:33237:14: warning: conversion to ‘long int’ from ‘long unsigned int’ may change the sign of the result [-Wsign-conversion]
33237 | { result = SSL_set_mode(x0, x1); }
| ^~~~~~~~~~~~
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c:33237:14: warning: conversion to ‘long unsigned int’ from ‘long int’ may change the sign of the result [-Wsign-conversion]
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c: At top level:
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c:788:13: warning: ‘ERR_load_Cryptography_OSRandom_strings’ declared ‘static’ but never defined [-Wunused-function]
788 | static void ERR_load_Cryptography_OSRandom_strings(void);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.c:789:13: warning: ‘ERR_Cryptography_OSRandom_error’ declared ‘static’ but never defined [-Wunused-function]
789 | static void ERR_Cryptography_OSRandom_error(int function, int reason,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
i686-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 build/temp.linux-x86_64-cpython-39/build/temp.linux-x86_64-cpython-39/cryptography.hazmat.bindings._openssl.o -L/usr/lib -lssl -lcrypto -lpthread -o build/lib.linux-x86_64-cpython-39/cryptography/hazmat/bindings/_openssl.abi3.so
running build_rust
Traceback (most recent call last):
File "/tmp/pip-build-env-l85rexpr/overlay/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 202, in run_commands
dist.run_commands()
File "/tmp/pip-build-env-l85rexpr/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 1000, in run_commands
self.run_command(cmd)
File "/tmp/pip-build-env-l85rexpr/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 1107, in run_command
super().run_command(command)
File "/tmp/pip-build-env-l85rexpr/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 1019, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-l85rexpr/overlay/lib/python3.9/site-packages/setuptools/command/bdist_wheel.py", line 370, in run
self.run_command("build")
File "/tmp/pip-build-env-l85rexpr/overlay/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 341, in run_command
self.distribution.run_command(command)
File "/tmp/pip-build-env-l85rexpr/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 1107, in run_command
super().run_command(command)
File "/tmp/pip-build-env-l85rexpr/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 1019, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-l85rexpr/overlay/lib/python3.9/site-packages/setuptools/_distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/tmp/pip-build-env-l85rexpr/overlay/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 341, in run_command
self.distribution.run_command(command)
File "/tmp/pip-build-env-l85rexpr/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 1107, in run_command
super().run_command(command)
File "/tmp/pip-build-env-l85rexpr/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 1019, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-l85rexpr/overlay/lib/python3.9/site-packages/setuptools_rust/setuptools_ext.py", line 185, in run
build_rust.run()
File "/tmp/pip-build-env-l85rexpr/overlay/lib/python3.9/site-packages/setuptools_rust/command.py", line 73, in run
raise PlatformError(
distutils.errors.DistutilsPlatformError: can't find Rust compiler
If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.
To update pip, run:
pip install --upgrade pip
and then retry package installation.
If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
This package requires Rust >=1.48.0.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 48, in <module>
File "/tmp/pip-build-env-l85rexpr/overlay/lib/python3.9/site-packages/setuptools/__init__.py", line 117, in setup
return distutils.core.setup(**attrs) # type: ignore[return-value]
File "/tmp/pip-build-env-l85rexpr/overlay/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 186, in setup
return run_commands(dist)
File "/tmp/pip-build-env-l85rexpr/overlay/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 216, in run_commands
raise SystemExit("error: " + str(msg))
SystemExit: error: can't find Rust compiler
If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.
To update pip, run:
pip install --upgrade pip
and then retry package installation.
If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
This package requires Rust >=1.48.0.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/user/venv/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
main()
File "/home/user/venv/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
File "/home/user/venv/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 280, in build_wheel
return _build_backend().build_wheel(
File "/tmp/pip-build-env-l85rexpr/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 441, in build_wheel
return _build(['bdist_wheel', '--dist-info-dir', str(metadata_directory)])
File "/tmp/pip-build-env-l85rexpr/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 429, in _build
return self._build_with_temp_dir(
File "/tmp/pip-build-env-l85rexpr/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 410, in _build_with_temp_dir
self.run_setup()
File "/tmp/pip-build-env-l85rexpr/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 317, in run_setup
exec(code, locals())
File "<string>", line 76, in <module>
ModuleNotFoundError: No module named 'pkg_resources'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cryptography
Failed to build cryptography
error: failed-wheel-build-for-install
× Failed to build installable wheels for some pyproject.toml based projects
╰─> cryptography
(venv) user@raspberry:~ $