Closed AttilaGombosER closed 3 months ago
I've built and imported a statically linked version. Can you verify that fixes it?
Verified with a fresh install, the issue is gone now:
$ pip3 show cryptography
Name: cryptography
Version: 43.0.0
Summary: cryptography is a package which provides cryptographic recipes and primitives to Python developers.
Home-page: None
Author: The cryptography developers <cryptography-dev@python.org>
Author-email: The Python Cryptographic Authority and individual contributors <cryptography-dev@python.org>
License: Apache-2.0 OR BSD-3-Clause
Location: /home/admin/.local/lib/python3.9/site-packages
Requires: cffi
Required-by:
$ python3
Python 3.9.2 (default, Mar 12 2021, 04:06:34)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from cryptography.hazmat.primitives.asymmetric.ec import EllipticCurve
>>>
Thanks!
This does not work anymore for me on Python 3.11 bookworm with OpenSSL 3.0 :-D The piwheels JSON reports that the abi is 311 but the filename is somehow 37
"files": {
"cryptography-43.0.0-cp37-abi3-linux_armv6l.whl": {
"filehash": "753936c34638683658391e76bb2e61428cbaf0868667144eed942b826f6663cf",
"filesize": 1535029,
"builder_abi": "cp311",
"file_abi_tag": "abi3",
"platform": "linux_armv6l",
"requires_python": ">=3.7",
"apt_dependencies": []
},
"cryptography-43.0.0-cp37-abi3-linux_armv7l.whl": {
"filehash": "753936c34638683658391e76bb2e61428cbaf0868667144eed942b826f6663cf",
"filesize": 1535029,
"builder_abi": "cp311",
"file_abi_tag": "abi3",
"platform": "linux_armv7l",
"requires_python": ">=3.7",
"apt_dependencies": []
}
}
from cryptography.exceptions import InvalidSignature
File "cryptography/exceptions.py", line 9, in <module>
from cryptography.hazmat.bindings._rust import exceptions as rust_exceptions
ImportError: libssl.so.1.1: cannot open shared object file: No such file or directory
Sorry I've had to remove the wheel as it didn't in fact build with openssl statically linked.
I've temporarily moved the wheel to https://www.piwheels.org/cp39/cryptography-43.0.0-cp37-abi3-linux_armv7l.whl so you can download and install directly from there
Package name
cryptography
Package version
43.0.0
PyPI URL
https://pypi.org/project/cryptography/
piwheels URL
https://www.piwheels.org/project/cryptography/
Python version
I am aware this is the issue tracker for a Python package index specifically for Raspberry Pi
I have checked for duplicate issues
I am the maintainer
More information
Original issue opened at https://github.com/pyca/cryptography/issues/11370:
43.0.0 breaks cryptography on Debian 11 Bullseye (ImportError: libssl.so.3)
Description
In version 43.0.0
cryptography
is dependent on openssl 3.x instead of openssl 1.x on a Debian 11 system. As Debian 11 does not support openssl 3.x, relying onlibssl.so.3
instead oflibssl.so.1.1
results in an import error:ImportError: libssl.so.3: cannot open shared object file: No such file or directory
Reproduction
Workaround
Pinning down
cryptography
to a pre-43.0.0 version solves the issue.System details
Installation
Package versions