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

Error when installing: AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms' #559

Open
cgc opened this issue Mar 23, 2023 · 3 comments

Comments

@cgc
Copy link

cgc commented Mar 23, 2023

I get the following error when executing my psiTurk server after upgrading to psiTurk 3.3.1 and installing into a new virtualenv (Python 3.10):

...
  File "/Users/carlos/proj/exp/env/lib/python3.10/site-packages/psiturk/experiment.py", line 10, in <module>
    import requests
  File "/Users/carlos/proj/exp/env/lib/python3.10/site-packages/requests/__init__.py", line 95, in <module>
    from urllib3.contrib import pyopenssl
  File "/Users/carlos/proj/exp/env/lib/python3.10/site-packages/urllib3/contrib/pyopenssl.py", line 46, in <module>
    import OpenSSL.SSL
  File "/Users/carlos/proj/exp/env/lib/python3.10/site-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import crypto, SSL
  File "/Users/carlos/proj/exp/env/lib/python3.10/site-packages/OpenSSL/crypto.py", line 3268, in <module>
    _lib.OpenSSL_add_all_algorithms()
AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms'

Following this Stack Overflow post, I was able to resolve the issue by pinning cryptography to 38.0.4 in my requirements.txt. For a more general fix in psiTurk, the answer notes the issue can be fixed by upgrading openssl.

@jacob-lee
Copy link
Collaborator

jacob-lee commented Mar 23, 2023 via email

@gureckis
Copy link
Member

gureckis commented Mar 24, 2023

I'm not super active on this these days but happy to delegate PR merging to someone with experience and desire to see a few things merged in!

@jacob-lee
Copy link
Collaborator

I'm a full time developer, and maintain an internal independent fork of psiturk; I'm willing to do it, at least for a while.

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

3 participants