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

urllib3 and OpenSSL #365

Open
keceli opened this issue Jun 17, 2023 · 0 comments
Open

urllib3 and OpenSSL #365

keceli opened this issue Jun 17, 2023 · 0 comments

Comments

@keceli
Copy link
Contributor

keceli commented Jun 17, 2023

Following the Balsam installation instructions:

$ /soft/datascience/create_env.sh my-env # Or DIY
$ source my-env/bin/activate
$ pip install --pre balsam

gives the following error on Theta:

Traceback (most recent call last):
  File "/lus/swift/home/keceli/balsam-env/bin/balsam", line 5, in <module>
    from balsam.cmdline import main
  File "/lus/swift/home/keceli/balsam-env/lib/python3.8/site-packages/balsam/cmdline/__init__.py", line 10, in <module>
    from balsam.cmdline import app, job, login, scheduler, site
  File "/lus/swift/home/keceli/balsam-env/lib/python3.8/site-packages/balsam/cmdline/app.py", line 4, in <module>
    from balsam.config import ClientSettings
  File "/lus/swift/home/keceli/balsam-env/lib/python3.8/site-packages/balsam/config/__init__.py", line 1, in <module>
    from .config import ClientSettings, InvalidSettings, Settings, SiteConfig, balsam_home
  File "/lus/swift/home/keceli/balsam-env/lib/python3.8/site-packages/balsam/config/config.py", line 14, in <module>
    from balsam.client import NotAuthenticatedError, RequestsClient
  File "/lus/swift/home/keceli/balsam-env/lib/python3.8/site-packages/balsam/client/__init__.py", line 4, in <module>
    from .requests_client import NotAuthenticatedError, RequestsClient
  File "/lus/swift/home/keceli/balsam-env/lib/python3.8/site-packages/balsam/client/requests_client.py", line 9, in <module>
    import requests
  File "/lus/swift/home/keceli/balsam-env/lib/python3.8/site-packages/requests/__init__.py", line 43, in <module>
    import urllib3
  File "/lus/swift/home/keceli/balsam-env/lib/python3.8/site-packages/urllib3/__init__.py", line 41, in <module>
    raise ImportError(
ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.1.0i-fips  14 Aug 2018'. See: https://github.com/urllib3/urllib3/issues/2168

As noted in the error, this is due to an external dependency (urllib3) dropping support for OpenSSL < 1.1.1. One can fix the issue by installing an earlier version of urllib3, i.e. pip install urllib3==1.26.7 worked for me.

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

1 participant