peted-davis / WeatherFlow_PiConsole

Raspberry Pi Python console for WeatherFlow Tempest and Smart Home Weather Stations
GNU General Public License v3.0
156 stars 20 forks source link

Update issue #105

Closed maxime-granger closed 1 year ago

maxime-granger commented 1 year ago

Since the past couple of updates I get the following error message when I try to start the console not sure where to start on how to resolve it.

Last login: Thu May 11 13:14:22 2023 from 192.168.91.56 maime@maime-Surface-3:~$ wfpiconsole start [INFO ] [Logger ] Record log in /home/maime/.kivy/logs/kivy_23-05-11_33.txt [INFO ] [Kivy ] v2.1.0 [INFO ] [Kivy ] Installed at "/home/maime/.local/lib/python3.8/site-packages/kivy/init.py" [INFO ] [Python ] v3.8.10 (default, Mar 13 2023, 10:26:41) [GCC 9.4.0] [INFO ] [Python ] Interpreter at "/usr/bin/python3" [INFO ] [Logger ] Purge log fired. Processing... [INFO ] [Logger ] Purge finished! Traceback (most recent call last): File "main.py", line 28, in from lib import config as configFile File "/home/maime/wfpiconsole/lib/config.py", line 24, in import requests File "/usr/lib/python3/dist-packages/requests/init.py", line 95, in from urllib3.contrib import pyopenssl File "/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py", line 46, in import OpenSSL.SSL File "/home/maime/.local/lib/python3.8/site-packages/OpenSSL/init.py", line 8, in from OpenSSL import crypto, SSL File "/home/maime/.local/lib/python3.8/site-packages/OpenSSL/crypto.py", line 3279, in _lib.OpenSSL_add_all_algorithms() AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms' Error in sys.excepthook: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 72, in apport_excepthook from apport.fileutils import likely_packaged, get_recent_crashes File "/usr/lib/python3/dist-packages/apport/init.py", line 5, in from apport.report import Report File "/usr/lib/python3/dist-packages/apport/report.py", line 32, in import apport.fileutils File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 12, in import os, glob, subprocess, os.path, time, pwd, sys, requests_unixsocket File "/usr/lib/python3/dist-packages/requests_unixsocket/init.py", line 1, in import requests File "/usr/lib/python3/dist-packages/requests/init.py", line 95, in from urllib3.contrib import pyopenssl File "/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py", line 46, in import OpenSSL.SSL File "/home/maime/.local/lib/python3.8/site-packages/OpenSSL/init.py", line 8, in from OpenSSL import crypto, SSL File "/home/maime/.local/lib/python3.8/site-packages/OpenSSL/crypto.py", line 3279, in _lib.OpenSSL_add_all_algorithms() AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms'

Original exception was: Traceback (most recent call last): File "main.py", line 28, in from lib import config as configFile File "/home/maime/wfpiconsole/lib/config.py", line 24, in import requests File "/usr/lib/python3/dist-packages/requests/init.py", line 95, in from urllib3.contrib import pyopenssl File "/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py", line 46, in import OpenSSL.SSL File "/home/maime/.local/lib/python3.8/site-packages/OpenSSL/init.py", line 8, in from OpenSSL import crypto, SSL File "/home/maime/.local/lib/python3.8/site-packages/OpenSSL/crypto.py", line 3279, in _lib.OpenSSL_add_all_algorithms() AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms'

Hardware/OS/Version (please complete the following information):

peted-davis commented 1 year ago

Try running

python3 -m pip install --upgrade PyOpenSSL

And then start the console again

maxime-granger commented 1 year ago

thank you