Bei einigen "Schonheitsreparaturen in einem Plugin" im aktuellen Smarthome auf einem Raspi4-8GB geht jetzt nichts mehr.
Eingaben wie
/usr/local/smarthome/bin/smarthome.py -s
oder
/usr/local/smarthome/bin/smarthome.py -r
fühten immer wieder zu folgenden Ergebnis
Ich habe keine Idee wo plützlich das 'X509_V_FLAG_NOTIFY_POLICY' herkommt!
Meine modul.yaml:
Ich hoffe durch Eure Hilfe an einer Neuinstallation vorbeikomme!
LG Wolfgang
Eingaben wie
/usr/local/smarthome/bin/smarthome.py -s
oder
/usr/local/smarthome/bin/smarthome.py -r
fühten immer wieder zu folgenden Ergebnis
Code:
[smarthome@SmartHomeNG-4-8-IP40 /usr/local/smarthome]$ /usr/local/smarthome/bin/smarthome.py -r
Traceback (most recent call last):
File "/usr/local/smarthome/bin/smarthome.py", line 172, in <module>
from lib.smarthome import SmartHome
File "/usr/local/smarthome/lib/smarthome.py", line 88, in <module>
import lib.network
File "/usr/local/smarthome/lib/network.py", line 44, in <module>
import requests
File "/home/smarthome/.local/lib/python3.9/site-packages/requests/__init__.py", line 95, in <module>
from urllib3.contrib import pyopenssl
File "/home/smarthome/.local/lib/python3.9/site-packages/urllib3/contrib/pyopenssl.py", line 46, in <module>
import OpenSSL.SSL
File "/home/smarthome/.local/lib/python3.9/site-packages/OpenSSL/__init__.py", line 8, in <module>
from OpenSSL import SSL, crypto
File "/home/smarthome/.local/lib/python3.9/site-packages/OpenSSL/SSL.py", line 19, in <module>
from OpenSSL.crypto import (
File "/home/smarthome/.local/lib/python3.9/site-packages/OpenSSL/crypto.py", line 1623, in <module>
class X509StoreFlags:
File "/home/smarthome/.local/lib/python3.9/site-packages/OpenSSL/crypto.py", line 1642, in X509StoreFlags
NOTIFY_POLICY: int = _lib.X509_V_FLAG_NOTIFY_POLICY
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY'
Meine modul.yaml:
Code:
%YAML 1.1
---
# etc/module.yaml
# support for web server
http:
module_name: http
starturl: admin
# support for graphical admin interface
showservicelist: true
showtraceback: true
ip: 0.0.0.0
admin:
module_name: admin
websocket_host: 127.0.0.1
click_dropdown_header: true
login_expiration: 168
login_autorenew: true
pypi_timeout: 5
itemtree_fullpath: true
itemtree_searchstart: 2
websocket_port: 2424
log_chunksize: 1000
websocket:
module_name: websocket
#port: 2424
#tls_port: 2425
#tls_key: myprivate.key
#tls_cert: myprivate.pem
#use_tls: true
#enable, if mqtt protocol is going to be used
mqtt:
module_name: mqtt
enabled: false
LG Wolfgang


Kommentar