Open uecasm opened 1 year ago
Fun, uninstalling is even worse (although maybe OpenSSL's fault?):
$ pip3 uninstall iotedgedev
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/_vendor/__init__.py", line 33, in vendored
__import__(vendored_name, globals(), locals(), level=0)
ModuleNotFoundError: No module named 'pip._vendor.cachecontrol'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/pip3", line 9, in <module>
from pip._internal import main
File "/usr/lib/python3/dist-packages/pip/_internal/__init__.py", line 19, in <module>
from pip._vendor.urllib3.exceptions import DependencyWarning
File "/usr/lib/python3/dist-packages/pip/_vendor/__init__.py", line 64, in <module>
vendored("cachecontrol")
File "/usr/lib/python3/dist-packages/pip/_vendor/__init__.py", line 36, in vendored
__import__(modulename, globals(), locals(), level=0)
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 668, in _load_unlocked
File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
File "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/__init__.py", line 9, in <module>
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 668, in _load_unlocked
File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
File "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/wrapper.py", line 1, in <module>
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 668, in _load_unlocked
File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
File "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/adapter.py", line 4, in <module>
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 668, in _load_unlocked
File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
File "/usr/share/python-wheels/requests-2.21.0-py2.py3-none-any.whl/requests/__init__.py", line 95, in <module>
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 668, in _load_unlocked
File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
File "/usr/share/python-wheels/urllib3-1.24.1-py2.py3-none-any.whl/urllib3/contrib/pyopenssl.py", line 46, in <module>
File "/home/developer/.local/lib/python3.7/site-packages/OpenSSL/__init__.py", line 8, in <module>
from OpenSSL import SSL, crypto
File "/home/developer/.local/lib/python3.7/site-packages/OpenSSL/SSL.py", line 19, in <module>
from OpenSSL.crypto import (
File "/home/developer/.local/lib/python3.7/site-packages/OpenSSL/crypto.py", line 3261, in <module>
name="load_pkcs7_data",
TypeError: deprecated() got an unexpected keyword argument 'name'
After much wailing, gnashing of teeth, rm -rf
ing, upgrading from Debian 10 to 11, reinstalling, and more gnashing of teeth, I have finally managed to get this to install without breaking pip itself. (I have yet to test if it actually works.)
The magic commands were:
sudo apt install libffi-dev libssl-dev rustc
rm -rf ~/.local/lib/python3.9/site-packages/OpenSSL/
pip3 install -U iotedgedev
rm -rf ~/.local/lib/python3.9/site-packages/OpenSSL/
pip3 install --force-reinstall cryptography==38.0.4 pyopenssl==22.0.0
So on basis of "do I need further support" this can probably be closed, but I'll leave it open in case this gives someone an idea of how something could be improved.
Possibly of note: iotedgehubdev 0.14.18 requires pyOpenSSL==22.0.0
and someone said that >=22.1.0 might fix this?
Thanks for reporting and glad to see the workaround worked. Can you please let us know what specific python version causing the installation issue?
That was in the description 😁
Description
Trying to install as per instructions fails on Debian 10.
Expected behavior
Successful installation.
And for it not to try to downgrade my already-installed docker-compose.
Actual behavior
Steps to Reproduce
As above.
Environment
Running Debian 10 from a Windows 10 WSL2 environment.