-
Notifications
You must be signed in to change notification settings - Fork 70
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
Install kills pip install #611
Comments
see #610 for inability to get iotedgedev version |
see also: pyca/cryptography#7959 |
Note: attempting to correct underlaying issue
|
I started over: wiped the USB Drive and reinstall RaspiOS lite from Raspberypi.org. in short iotedgedev breaks pip |
Due to this issue I install CookieCutter prior to installing iotedgedev.
Almost certainly the iotedgedev is breaking its own dependency. |
The list of python modules before iotedgedev: Package Version attrs 23.1.0 |
After iotedgedev installation: Package Version adal 1.2.7 |
if you've gotten to this, you are like me and trying to recover. These steps recovered my pip enough to continue. Find the cryptography file
observe version
delete it
Download prior version from source extract observe version
copy to folder previously identified
verify repair |
It is not possible to avoid the incompatible version by installing pyOpenSSL After the iotedgedev install pyOpenSSL is back-rev'd from 23 to 22 and the incompatibility (the reason for this issue) reappears. |
Description
before installation pip works. after fails.
Error:
AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms'
Note: root cause is not iotedgedev. However, the install of iotedgedev forced an update that results in this error.
https://stackoverflow.com/questions/74981558/error-updating-python3-pip-attributeerror-module-lib-has-no-attribute-openss
Expected behavior
iotedgedev installs with unintended consequences
Actual behavior
After installation pip fails:
$ sudo pip3 install Click Traceback (most recent call last): File "/usr/bin/pip3", line 33, in <module> sys.exit(load_entry_point('pip==20.3.4', 'console_scripts', 'pip3')()) File "/usr/bin/pip3", line 25, in importlib_load_entry_point return next(matches).load() File "/usr/lib/python3.9/importlib/metadata.py", line 77, in load module = import_module(match.group('module')) File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1030, in _gcd_import File "<frozen importlib._bootstrap>", line 1007, in _find_and_load File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 680, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 790, in exec_module File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed File "/usr/lib/python3/dist-packages/pip/_internal/cli/main.py", line 10, in <module> from pip._internal.cli.autocompletion import autocomplete File "/usr/lib/python3/dist-packages/pip/_internal/cli/autocompletion.py", line 9, in <module> from pip._internal.cli.main_parser import create_main_parser File "/usr/lib/python3/dist-packages/pip/_internal/cli/main_parser.py", line 7, in <module> from pip._internal.cli import cmdoptions File "/usr/lib/python3/dist-packages/pip/_internal/cli/cmdoptions.py", line 23, in <module> from pip._vendor.packaging.utils import canonicalize_name File "/usr/lib/python3/dist-packages/pip/_vendor/__init__.py", line 94, in <module> vendored("requests.packages.urllib3.contrib.pyopenssl") 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 1007, in _find_and_load File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 664, in _load_unlocked File "<frozen importlib._bootstrap>", line 627, in _load_backward_compatible File "<frozen zipimport>", line 259, in load_module File "/usr/share/python-wheels/urllib3-1.26.5-py2.py3-none-any.whl/urllib3/contrib/pyopenssl.py", line 50, in <module> File "/usr/local/lib/python3.9/dist-packages/OpenSSL/__init__.py", line 8, in <module> from OpenSSL import crypto, SSL File "/usr/local/lib/python3.9/dist-packages/OpenSSL/crypto.py", line 3268, in <module> _lib.OpenSSL_add_all_algorithms() AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms'
Steps to Reproduce
use pip: sudo pip3 install Click
install: sudo pip3 install -U iotedgedev
try pip again
Environment
$ uname -a
Linux RPi4-Alpha 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
$ python --version
Python 3.9.2
$ pip --version
pip 23.2.1 from /home/inc/.local/lib/python3.9/site-packages/pip (python 3.9)
$ iotedgedev -- version
Traceback (most recent call last):
File "/usr/local/bin/iotedgedev", line 5, in
from iotedgedev.cli import main
File "/usr/local/lib/python3.9/dist-packages/iotedgedev/cli.py", line 5, in
import click
ModuleNotFoundError: No module named 'click'
The text was updated successfully, but these errors were encountered: