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

libssl problem Raspberry python bookworm #1492

Open
maurofilippo opened this issue Mar 2, 2025 · 4 comments
Open

libssl problem Raspberry python bookworm #1492

maurofilippo opened this issue Mar 2, 2025 · 4 comments

Comments

@maurofilippo
Copy link

Hi everyone, I've been banging my head about this problem for more than a month, I've read many forums but I can't go anywhere...

I'm using a Raspberry and if I launch the demonstration program on the github page with the bookworm version everything works, but if I use the bullseyes version it always gives me the error you see below...
I also tried to virtualize python but still the same thing, it seems that the libssl.so.1.1. library is not present (in fact it is but I don't know how to fix it)... can you help me by explaining what I should do please?

Good day
Mauro

(dacia) pi@raspberrypi:~ $ python dacia.py
Traceback (most recent call last):
File "/home/pi/dacia.py", line 8, in
from renault_api.renault_client import RenaultClient
File "/home/pi/dacia/lib/python3.11/site-packages/renault_api/renault_client.p
y", line 10, in
from .credential_store import CredentialStore
File "/home/pi/dacia/lib/python3.11/site-packages/renault_api/credential_store
.py", line 9, in
import jwt
File "/home/pi/dacia/lib/python3.11/site-packages/jwt/init.py", line 1, in

from .api_jwk import PyJWK, PyJWKSet
File "/home/pi/dacia/lib/python3.11/site-packages/jwt/api_jwk.py", line 7, in

from .algorithms import get_default_algorithms, has_crypto, requires_cryptog
raphy
File "/home/pi/dacia/lib/python3.11/site-packages/jwt/algorithms.py", line 11,
in
from .utils import (
File "/home/pi/dacia/lib/python3.11/site-packages/jwt/utils.py", line 7, in
from cryptography.hazmat.primitives.asymmetric.ec import EllipticCurve
File "/home/pi/dacia/lib/python3.11/site-packages/cryptography/hazmat/primitiv
es/asymmetric/ec.py", line 11, in
from cryptography.exceptions import UnsupportedAlgorithm, _Reasons
File "/home/pi/dacia/lib/python3.11/site-packages/cryptography/exceptions.py",
line 9, in
from cryptography.hazmat.bindings._rust import exceptions as rust_exceptions
ImportError: libssl.so.1.1: cannot open shared object file: No such file or dire
ctory

@epenet
Copy link
Collaborator

epenet commented Mar 3, 2025

The issue is not directly linked to renault-api, but linked to dependencies (pyjwt which in turn relies on cryptography)
You should share the details of the versions of pyjwt and cryptography:

# Warning: as of 2023-07-19, pyjwt is pinned to 2.8.0 on HA-core
PyJWT = ">=2.8.0"
#ensure cryptography (for pyjwt) is greater than 42.0.5 to account for PVE-2024-65647
cryptography = ">=42.0.5"

You can try to reinstall ssl (in the system), and then reinstall cryptography (in python) to see if that helps
Other than that I think you'll get more help on cryptography/debian/libssl repositories than here.

@maurofilippo
Copy link
Author

thanks for answering me.
yes I also imagine that renault-api has nothing to do with it also because it works on the "bullseyes" version.

Please if you can tell me how to deal with the problem because looking in many forums I tried to do what they say but it doesn't work or I don't understand the commands I have to give... I bought the Raspberry to read the parameters of the Dacia so as not to leave a larger computer on but I didn't think it was so difficult to "program" it to make it work... I thought that the problems were programming the program made by you to request the data that I need... anyway these are the data you requested, this is the version of the S.O.

PRETTY_NAME="Raspbian GNU/Linux 12 (bookworm)"
NAME="Raspbian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
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"

and these are all the libraries I have in python (the ones you pointed out to me have a slightly higher version)

iohappyeyeballs==2.4.6
aiohttp==3.11.13
aiosignal==1.3.2
asgiref==3.6.0
astroid==2.14.2
asttokens==2.2.1
attrs==22.2.0
av==12.3.0
Babel==2.10.3
beautifulsoup4==4.11.2
blinker==1.5
certifi==2022.9.24
cffi==1.17.1
chardet==5.1.0
charset-normalizer==3.0.1
click==8.1.3
colorama==0.4.6
colorzero==2.0
cryptography==44.0.2
cupshelpers==1.0
dbus-python==1.3.2
dill==0.3.6
distro==1.8.0
docutils==0.19
Flask==2.2.2
frozenlist==1.5.0
gpiozero==2.0.1
html5lib==1.1
idna==3.3
importlib-metadata==4.12.0
isort==5.6.4
itsdangerous==2.1.2
jedi==0.18.2
Jinja2==3.1.2
jsonpointer==2.3
jsonschema==4.10.3
lazy-object-proxy==1.9.0
lgpio==0.2.2.0
libarchive-c==2.9
libevdev==0.5
logilab-common==1.9.8
lxml==4.9.2
MarkupSafe==2.1.2
marshmallow==3.26.1
marshmallow_dataclass==8.7.1
mccabe==0.7.0
meson==1.0.1
more-itertools==8.10.0
multidict==6.1.0
mypy==1.0.1
mypy-extensions==0.4.3
numpy==1.24.2
oauthlib==3.2.2
olefile==0.46
packaging==24.2
parso==0.8.3
pexpect==4.8.0
pgzero==1.2
picamera2==0.3.25
pidng==4.0.9
piexif==1.1.3
pigpio==1.78
Pillow==9.4.0
platformdirs==2.6.0
propcache==0.3.0
psutil==5.9.4
ptyprocess==0.7.0
pycairo==1.20.1
pycparser==2.22
pycryptodomex==3.11.0
pycups==2.0.1
pygame==2.1.2
Pygments==2.14.0
PyGObject==3.42.2
pyinotify==0.9.6
PyJWT==2.10.1
pylint==2.16.2
PyOpenGL==3.1.6
pyOpenSSL==23.0.0
PyQt5==5.15.9
PyQt5-sip==12.11.1
pyrsistent==0.18.1
pyserial==3.5
pysmbc==1.0.23
python-apt==2.6.0
python-dotenv==0.21.0
python-prctl==1.8.1
pytz==2022.7.1
pyudev==0.24.0
renault-api==0.2.9
reportlab==3.6.12
requests==2.28.1
requests-oauthlib==1.3.0
responses==0.18.0
rfc3987==1.3.8
roman==3.3
rpi-lgpio==0.6
RTIMULib==7.2.1
Send2Trash==1.8.1b0
sense-hat==2.6.0
simplejpeg==1.8.1
simplejson==3.18.3
six==1.16.0
smbus2==0.4.2
soupsieve==2.3.2
spidev==3.5
ssh-import-id==5.10
thonny==4.1.4
toml==0.10.2
tomlkit==0.11.7
tqdm==4.64.1
twython==3.8.2
typeguard==4.4.2
types-aiofiles==22.1
types-annoy==1.17
types-appdirs==1.4
types-aws-xray-sdk==2.10
types-babel==2.11
types-backports.ssl-match-hostname==3.7
types-beautifulsoup4==4.11
types-bleach==5.0
types-boto==2.49
types-braintree==4.17
types-cachetools==5.2
types-caldav==0.10
types-certifi==2021.10.8
types-cffi==1.15
types-chardet==5.0
types-chevron==0.14
types-click-spinner==0.1
types-colorama==0.4
types-commonmark==0.9
types-console-menu==0.7
types-contextvars==2.4
types-croniter==1.3
types-cryptography==3.3
types-D3DShot==0.1
types-dateparser==1.1
types-DateTimeRange==1.2
types-decorator==5.1
types-Deprecated==1.2
types-dj-database-url==1.0
types-docopt==0.6
types-docutils==0.19
types-editdistance==0.6
types-emoji==2.1
types-entrypoints==0.4
types-first==2.0
types-flake8-2020==1.7
types-flake8-bugbear==22.10.27
types-flake8-builtins==2.0
types-flake8-docstrings==1.6
types-flake8-plugin-utils==1.3
types-flake8-rst-docstrings==0.2
types-flake8-simplify==0.19
types-flake8-typing-imports==1.14
types-Flask-Cors==3.0
types-Flask-SQLAlchemy==2.5
types-fpdf2==2.5
types-gdb==12.1
GNU nano 7.2 requirements.txt
types-google-cloud-ndb==1.11
types-hdbcli==2.14
types-html5lib==1.1
types-httplib2==0.21
types-humanfriendly==10.0
types-invoke==1.7
types-JACK-Client==0.5
types-jmespath==1.0
types-jsonschema==4.17
types-keyboard==0.13
types-ldap3==2.9
types-Markdown==3.4
types-mock==4.0
types-mypy-extensions==0.4
types-mysqlclient==2.1
types-oauthlib==3.2
types-openpyxl==3.0
types-opentracing==2.4
types-paho-mqtt==1.6
types-paramiko==2.11
types-parsimonious==0.10
types-passlib==1.7
types-passpy==1.0
types-peewee==3.15
types-pep8-naming==0.13
types-Pillow==9.3
types-playsound==1.3
types-polib==1.1
types-prettytable==3.4
types-protobuf==3.20
types-psutil==5.9
types-psycopg2==2.9
types-pyaudio==0.2
types-PyAutoGUI==0.9
types-pycurl==7.45
types-pyfarmhash==0.3
types-pyflakes==2.5
types-Pygments==2.13
types-pyinstaller==5.6
types-PyMySQL==1.0
types-pynput==1.7
types-pyOpenSSL==22.1
types-pyRFC3339==1.1
types-PyScreeze==0.1
types-pysftp==0.2
types-pytest-lazy-fixture==0.6
types-python-crontab==2.6
types-python-dateutil==2.8
types-python-gflags==3.1
types-python-jose==3.3
types-python-nmap==0.7
types-python-slugify==6.1
types-pytz==2022.6
types-pyvmomi==7.0
types-pywin32==304
types-PyYAML==6.0
types-redis==4.3
types-regex==2022.10.31
types-requests==2.28
types-retry==0.9
types-Send2Trash==1.8
types-setuptools==65.5
types-simplejson==3.17
types-singledispatch==3.7
types-six==1.16
types-slumber==0.7
types-SQLAlchemy==1.4.43
types-stdlib-list==0.8
types-stripe==3.5
types-tabulate==0.9
types-termcolor==1.1
types-toml==0.10
types-toposort==1.7
types-tqdm==4.64
types-tree-sitter==0.20
types-tree-sitter-languages==1.5
types-ttkthemes==3.2
types-typed-ast==1.5
types-tzlocal==4.2
types-ujson==5.5
types-urllib3==1.26
types-vobject==0.9
types-waitress==2.1
types-whatthepatch==1.0
types-xmltodict==0.13
types-xxhash==3.0
types-zxcvbn==4.4
typing-inspect==0.9.0
typing_extensions==4.12.2
uritemplate==4.1.1
urllib3==1.26.12
v4l2-python3==0.3.5
webcolors==1.11.1
webencodings==0.5.1
Werkzeug==2.2.2
wrapt==1.14.1
yarl==1.18.3
zipp==1.0.0

@epenet
Copy link
Collaborator

epenet commented Mar 3, 2025

This is confusing...
You say that Bullseye (debian 11) doesn't work, but you are sending version information from Bookworm (debian 12)

@maurofilippo
Copy link
Author

oh sorry,
I wrote it right in the title of the discussion but I made a mistake in the first message.

So to remove any doubt, on the BOOKWORM version I have the problem (which is the version of the attached s.o.) while with "bullseyes" it works.

sorry again

@epenet epenet changed the title Problem Raspberry python bookworm libssl problem Raspberry python bookworm Mar 3, 2025
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

2 participants