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

undefined symbol: EVP_aes_256_ctr error when running attic #197

Open
dahjelle opened this issue Feb 10, 2015 · 5 comments
Open

undefined symbol: EVP_aes_256_ctr error when running attic #197

dahjelle opened this issue Feb 10, 2015 · 5 comments

Comments

@dahjelle
Copy link

Here's the full trace:

# attic
Traceback (most recent call last):
  File "/usr/bin/attic", line 2, in <module>
    from attic.archiver import main
  File "/usr/lib64/python3.2/site-packages/attic/archiver.py", line 13, in <module>
    from attic.archive import Archive, ArchiveChecker
  File "/usr/lib64/python3.2/site-packages/attic/archive.py", line 7, in <module>
    from attic.key import key_factory
  File "/usr/lib64/python3.2/site-packages/attic/key.py", line 10, in <module>
    from attic.crypto import pbkdf2_sha256, get_random_bytes, AES, bytes_to_long, long_to_bytes, bytes_to_int, num_aes_blocks
ImportError: /usr/lib64/python3.2/site-packages/attic/crypto.cpython-32mu.so: undefined symbol: EVP_aes_256_ctr

Granted, this is on a pretty ancient version of Fedora (16), but in case it is something easy/obvious…it seems to satisfy the listed installation requirements.

@dahjelle
Copy link
Author

FWIW, I just installed a fresh Python 3.4.2 on that box, and got the same (except for python version numbers) error, so I'm guessing it has something to do with the OpenSSL version?

# openssl version
OpenSSL 1.0.0j-fips 10 May 2012

@ThomasWaldmann
Copy link
Contributor

I researched a bit on the web and found this:
http://ubuntuforums.org/archive/index.php/t-985136.html

In setup.py there is:

Extension('attic.crypto', [crypto_source], libraries=['crypto'], include_dirs=include_dirs, library_dirs=library_dirs),

Strange, there is no libraries=['ssl', 'crypto'].

I tried that on ubuntu, it works as good as without the 'ssl', so although not needed there, it at least does no harm (AFAICS).

@dahjelle
Copy link
Author

dahjelle commented Mar 9, 2015

Thanks for the suggestion & research! I gave it a shot, but still got the same error. Probably should just upgrade that box to CentOS anyway. ;-)

Feel free to close this; just wanted to report it in case it was a more widespread issue. ;-)

@ThomasWaldmann
Copy link
Contributor

Did you recompile / reinstall it after changing setup.py?

@dahjelle
Copy link
Author

Yup—python3.4 setup.py install. The paths changed, but the error message stayed the same.

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