InvokeAI: [bug]: 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
Is there an existing issue for this?
- I have searched the existing issues
OS
macOS
GPU
cuda
VRAM
No response
What version did you experience this issue on?
latest
What happened?
attempted install, failed:
Installing collected packages: urllib3, numpy, requests
Attempting uninstall: urllib3
Found existing installation: urllib3 2.0.2
Uninstalling urllib3-2.0.2:
Successfully uninstalled urllib3-2.0.2
Attempting uninstall: numpy
Found existing installation: numpy 1.24.3
Uninstalling numpy-1.24.3:
Successfully uninstalled numpy-1.24.3
Attempting uninstall: requests
Found existing installation: requests 2.30.0
Uninstalling requests-2.30.0:
Successfully uninstalled requests-2.30.0
Successfully installed numpy-1.23.5 requests-2.28.2 urllib3-1.26.15
Traceback (most recent call last):
File "/Users/dominicbarker/Downloads/InvokeAI-Installer/./lib/main.py", line 50, in <module>
inst.install(**args.__dict__)
File "/Users/dominicbarker/Downloads/InvokeAI-Installer/lib/installer.py", line 189, in install
self.instance.configure()
File "/Users/dominicbarker/Downloads/InvokeAI-Installer/lib/installer.py", line 344, in configure
import requests # to catch download exceptions
File "/private/var/folders/6r/dstg2nwd4_zdl6xldn4k4k0r0000gn/T/invokeai-installer-tmp0qvmyfks/lib/python3.9/site-packages/requests/__init__.py", line 43, in <module>
import urllib3
File "/private/var/folders/6r/dstg2nwd4_zdl6xldn4k4k0r0000gn/T/invokeai-installer-tmp0qvmyfks/lib/python3.9/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```
### Screenshots
_No response_
### Additional context
_No response_
### Contact Details
_No response_
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 20
Not sure if this would work for you.
I resolved it using this method in the interim by lowering the urllib3 requirement:
pip install urllib3==1.26.6
pip uninstall urllib3 pip install ‘urllib3<2.0’ the above worked for me
I get this error after downgrading urllib3==1.26.6
cannot import name 'get_host' from 'urllib3.util.url'
at first, the error I get is
cannot import name 'get_host' from 'urllib3.util.url'
Then once I downgrade urllib3
pip install urllib3==1.26.6
I get this error
ImportError: cannot import name 'get_host' from 'urllib3.util.url'
I tested the code in a Ubuntu system and it works perfectly. The problem is in the Macbook.
Same error 13.3.1 (a) (22E772610a) I will try lowering urllib3
pip install urllib3==1.26.6 Requirement already satisfied: urllib3==1.26.6 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (1.26.6) It did not work for me. ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the ‘ssl’\n module is compiled with LibreSSL 2.8.3.
Same problem OS version: 13.3.1
Thanks mr0303. This worked!
Thanks @Akanta21 . This worked for me: pip install urllib3==1.26.6
I fixed this by upgrading OSX from 13.0 -> 13.1