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
I am getting the following error, when I try to compile my custom VEN.py code.
Traceback (most recent call last):
File "/root/openleadr-python/./pma/VEN.py", line 3, in <module>
from openleadr import OpenADRClient, enable_default_logging
File "/usr/local/lib/python3.12/dist-packages/openleadr/__init__.py", line 20, in <module>
from .client import OpenADRClient
File "/usr/local/lib/python3.12/dist-packages/openleadr/client.py", line 27, in <module>
from signxml.exceptions import InvalidSignature
File "/usr/local/lib/python3.12/dist-packages/signxml/__init__.py", line 7, in <module>
from .verifier import XMLVerifier, VerifyResult, SignatureConfiguration
File "/usr/local/lib/python3.12/dist-packages/signxml/verifier.py", line 13, in <module>
from OpenSSL.crypto import verify as openssl_verify
ImportError: cannot import name 'verify' from 'OpenSSL.crypto' (unknown location)
However, if I comment out the following from OpenSSL.crypto import verify as openssl_verify
line from verifier.py, the code goes through
How do I properly source the OpenSSL.crypto library, so that the verify function can be added?
The first three lines are getting picked up. Even though they are from the same library.
What am I missing? I am just getting started with this repo.
The text was updated successfully, but these errors were encountered:
I have the same issue (tested on python 3.9, 3.10 and 3.11). I did some searching around and it seems the pyOpenSSL package version is the issue. When installing openleadr it installs version pyOpenSSL==23.0.0 (which is already quite old).
I found this thread that suggests updating to pyOpenSSL==24.2.1 and this seems to have resolved the issue for now.
I am getting the following error, when I try to compile my custom VEN.py code.
However, if I comment out the following
from OpenSSL.crypto import verify as openssl_verify
line from verifier.py, the code goes through
How do I properly source the OpenSSL.crypto library, so that the verify function can be added?
The first three lines are getting picked up. Even though they are from the same library.
What am I missing? I am just getting started with this repo.
The text was updated successfully, but these errors were encountered: