package installed by pip expects libssl.so.3 which is not present on raspbian bullseye ?

The Raspberry Pi is a series of credit card-sized single-board computers developed in the United Kingdom by the Raspberry Pi Foundation to promote the teaching of basic computer science in schools and developing countries.

Post Reply
User avatar
/RaspberryPi
Corporate
Posts: 2449
Joined: Wed Jun 05, 2019 1:29 am

package installed by pip expects libssl.so.3 which is not present on raspbian bullseye ?

Post by /RaspberryPi »


Hi,

I am using pyenv to build setup a virtualenv like this.

PYTHON_CONFIGURE_OPTS="--enable-loadable-sqlite-extensions" pyenv install -v 3.11.5 pyenv virtualenv 3.11.5 demo pyenv activate demo Next I install one package through pip.

pip install cryptography==41.0.3 Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting cryptography==41.0.3 Using cached https://www.piwheels.org/simple/cryptog ... armv7l.whl (2.2 MB) Collecting cffi>=1.12 (from cryptography==41.0.3) Using cached https://www.piwheels.org/simple/cffi/cf ... armv7l.whl (379 kB) Collecting pycparser (from cffi>=1.12->cryptography==41.0.3) Using cached https://www.piwheels.org/simple/pycpars ... ne-any.whl (119 kB) Installing collected packages: pycparser, cffi, cryptography Successfully installed cffi-1.15.1 cryptography-41.0.3 pycparser-2.21 Then a quick python call tell me that the package expects libssl.so.3 which is not installed on the system. openssl-dev is installed.

$ python -c "from cryptography.hazmat.primitives.asymmetric.ec import EllipticCurve" Traceback (most recent call last): File "", line 1, in File "/home/ha/.pyenv/versions/demo/lib/python3.11/site-packages/cryptography/hazmat/primitives/asymmetric/ec.py", line 11, in from cryptography.hazmat._oid import ObjectIdentifier File "/home/ha/.pyenv/versions/demo/lib/python3.11/site-packages/cryptography/hazmat/_oid.py", line 9, in from cryptography.hazmat.bindings._rust import ( ImportError: libssl.so.3: cannot open shared object file: No such file or directory Is the wrong wheel package installed? Do you have any idea what I am missing?



$ uname -a Linux node21 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux $ cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)" NAME="Raspbian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs" $ python -V Python 3.11.5 $ sudo find /usr -name libssl* /usr/lib/arm-linux-gnueabihf/libssl3.so /usr/lib/arm-linux-gnueabihf/libssl.a /usr/lib/arm-linux-gnueabihf/libssl.so /usr/lib/arm-linux-gnueabihf/libssl.so.1.1 /usr/lib/arm-linux-gnueabihf/pkgconfig/libssl.pc /usr/share/doc/libssl1.1 /usr/share/doc/libssl-dev $ dpkg-query -l *ssl* Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-====================================-=====================-============-==================================================== un libengine-pkcs11-openssl (no description available) ii libssl-dev:armhf 1.1.1n-0+deb11u5+rpt1 armhf Secure Sockets Layer toolkit - development files un libssl-doc (no description available) un libssl1.0-dev (no description available) ii libssl1.1:armhf 1.1.1n-0+deb11u5+rpt1 armhf Secure Sockets Layer toolkit - shared libraries un musescore-general-soundfont-lossless (no description available) ii openssl 1.1.1n-0+deb11u5+rpt1 armhf Secure Sockets Layer toolkit - cryptographic utility un python-openssl-doc (no description available) ii python3-openssl 20.0.1-1 all Python 3 wrapper around the OpenSSL library un python3-openssl-dbg (no description available) un rsyslog-openssl (no description available) ii ssl-cert 1.1.0+nmu1 all simple debconf wrapper for OpenSSL un wget-ssl (no description available) ​

Thanks


submitted by /u/c1-c2
[link] [comments]

Source: https://www.reddit.com/r/raspberry_pi/c ... so3_which/
/RaspberryPi
Post Reply

Return to “Raspberry Pi Forum”