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

ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+ #6

Closed
nk9 opened this issue May 22, 2023 · 1 comment
Closed

ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+ #6

nk9 opened this issue May 22, 2023 · 1 comment

Comments

@nk9
Copy link
Owner

nk9 commented May 22, 2023

When I try to run the Python script on macOS 12.6.6 with Xcode 14.2 (Python 3.9), I get this error:

Traceback (most recent call last):
  File "/Users/nick/Projects/OSS/get_dropbox_link/get_dropbox_link.py", line 37, in <module>
    import dropbox
  File "/Users/nick/Library/Python/3.9/lib/python/site-packages/dropbox/__init__.py", line 3, in <module>
    from dropbox.dropbox_client import (  # noqa: F401 # pylint: disable=unused-import
  File "/Users/nick/Library/Python/3.9/lib/python/site-packages/dropbox/dropbox_client.py", line 18, in <module>
    import requests
  File "/Users/nick/Library/Python/3.9/lib/python/site-packages/requests/__init__.py", line 43, in <module>
    import urllib3
  File "/Users/nick/Library/Python/3.9/lib/python/site-packages/urllib3/__init__.py", line 38, in <module>
    raise ImportError(
ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with LibreSSL 2.8.3. See: https://github.com/urllib3/urllib3/issues/2168
@nk9
Copy link
Owner Author

nk9 commented May 22, 2023

Looks like this is a conflict between the version os OpenSSL shipped with macOS 12 and urllib3. There's some diagnosis at this StackOverflow question, but the solution that worked for me was:

/usr/bin/python3 -m pip install urllib3==1.26.6

@nk9 nk9 closed this as completed May 25, 2023
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