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

Can't import signify after upgrading to Ubuntu Jammy #29

Closed
archee565 opened this issue Mar 9, 2022 · 1 comment
Closed

Can't import signify after upgrading to Ubuntu Jammy #29

archee565 opened this issue Mar 9, 2022 · 1 comment

Comments

@archee565
Copy link

archee565 commented Mar 9, 2022

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/oscrypto/_openssl/_libcrypto_ctypes.py", line 304, in <module>
    libcrypto.EVP_PKEY_size.argtypes = [
  File "/usr/lib/python3.10/ctypes/__init__.py", line 387, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib/python3.10/ctypes/__init__.py", line 392, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /lib/x86_64-linux-gnu/libcrypto.so.3: undefined symbol: EVP_PKEY_size. Did you mean: 'EVP_PKEY_free'?

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "test.py", line 3, in <module>
    import signify.fingerprinter
  File "/usr/local/lib/python3.10/dist-packages/signify/fingerprinter.py", line 30, in <module>
    from signify.authenticode.signed_pe import SignedPEFile
  File "/usr/local/lib/python3.10/dist-packages/signify/authenticode/__init__.py", line 1, in <module>
    from .structures import *
  File "/usr/local/lib/python3.10/dist-packages/signify/authenticode/structures.py", line 34, in <module>
    from signify.authenticode.authroot import CertificateTrustList
  File "/usr/local/lib/python3.10/dist-packages/signify/authenticode/authroot.py", line 13, in <module>
    from signify.pkcs7.signeddata import SignedData
  File "/usr/local/lib/python3.10/dist-packages/signify/pkcs7/__init__.py", line 1, in <module>
    from .signerinfo import *
  File "/usr/local/lib/python3.10/dist-packages/signify/pkcs7/signerinfo.py", line 12, in <module>
    from signify.x509.certificates import CertificateName
  File "/usr/local/lib/python3.10/dist-packages/signify/x509/__init__.py", line 1, in <module>
    from .certificates import *
  File "/usr/local/lib/python3.10/dist-packages/signify/x509/certificates.py", line 7, in <module>
    from oscrypto import asymmetric
  File "/usr/local/lib/python3.10/dist-packages/oscrypto/asymmetric.py", line 19, in <module>
    from ._asymmetric import _unwrap_private_key_info
  File "/usr/local/lib/python3.10/dist-packages/oscrypto/_asymmetric.py", line 27, in <module>
    from .kdf import pbkdf1, pbkdf2, pkcs12_kdf
  File "/usr/local/lib/python3.10/dist-packages/oscrypto/kdf.py", line 9, in <module>
    from .util import rand_bytes
  File "/usr/local/lib/python3.10/dist-packages/oscrypto/util.py", line 14, in <module>
    from ._openssl.util import rand_bytes
  File "/usr/local/lib/python3.10/dist-packages/oscrypto/_openssl/util.py", line 6, in <module>
    from ._libcrypto import libcrypto, libcrypto_version_info, handle_openssl_error
  File "/usr/local/lib/python3.10/dist-packages/oscrypto/_openssl/_libcrypto.py", line 15, in <module>
    from ._libcrypto_ctypes import (
  File "/usr/local/lib/python3.10/dist-packages/oscrypto/_openssl/_libcrypto_ctypes.py", line 688, in <module>
    raise FFIEngineError('Error initializing ctypes')
oscrypto._ffi.FFIEngineError: Error initializing ctypes
@ralphje
Copy link
Owner

ralphje commented Jul 11, 2022

This seems to be an issue with oscrypto. It should be fixed with oscrypto 1.3.0:

wbond/oscrypto@e074131

@ralphje ralphje closed this as completed Jul 11, 2022
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