ich habs heute riskiert und ein Upgrade auf LB3.0 gemacht. Grundsätzlich ist das Upgrade gut gegangen und meine anderen Plugins laufen.
Leider bekomme ich die HtREST Anbindung nicht mehr zum laufen.
Ich bekomme folgende Fehlermeldung wenn ich den HtREST Server starten will ->
(htrest) loxberry@loxberry:/home/pi/venv $ htrest -d /dev/ttyUSB0 -b 115200 --host 192.168.1.88 --port 8899 Start Heliotherm heat pump REST API server v0.1.11. Namespace(device='/dev/ttyUSB0', baudrate=115200, host='192.168.1.88', port=8899, user='', bool_as_int=False, logging_config='/home/pi/venv/htrest/lib/python3.9/site-packages/htrest/lo gging.conf', debug=False, read_only=False, no_param_verification=False) 2023-03-14 14:55:10,888 INFO [htrest.app|create_app]: open connection to heat pump (<htheatpump.htheatpump.HtHeatpump object at 0xb5b31d60>) 2023-03-14 14:55:10,940 INFO [htrest.app|create_app]: successfully connected to heat pump #141315 2023-03-14 14:55:10,973 INFO [htrest.app|create_app]: software version = 3.0.37 (530) 2023-03-14 14:55:10,998 INFO [htrest.app|create_app]: *** created Flask app <Flask 'htrest.app'> with config <Config {'ENV': 'production', 'DEBUG': False, 'TESTING': False, 'PROPAGATE_ EXCEPTIONS': None, 'PRESERVE_CONTEXT_ON_EXCEPTION': None, 'SECRET_KEY': None, 'PERMANENT_SESSION_LIFETIME': datetime.timedelta(days=31), 'USE_X_SENDFILE': False, 'SERVER_NAME': None, ' APPLICATION_ROOT': '/', 'SESSION_COOKIE_NAME': 'session', 'SESSION_COOKIE_DOMAIN': None, 'SESSION_COOKIE_PATH': None, 'SESSION_COOKIE_HTTPONLY': True, 'SESSION_COOKIE_SECURE': False, ' SESSION_COOKIE_SAMESITE': None, 'SESSION_REFRESH_EACH_REQUEST': True, 'MAX_CONTENT_LENGTH': None, 'SEND_FILE_MAX_AGE_DEFAULT': None, 'TRAP_BAD_REQUEST_ERRORS': None, 'TRAP_HTTP_EXCEPTI ONS': False, 'EXPLAIN_TEMPLATE_LOADING': False, 'PREFERRED_URL_SCHEME': 'http', 'JSON_AS_ASCII': True, 'JSON_SORT_KEYS': True, 'JSONIFY_PRETTYPRINT_REGULAR': False, 'JSONIFY_MIMETYPE': 'application/json', 'TEMPLATES_AUTO_RELOAD': None, 'MAX_COOKIE_SIZE': 4093, 'SWAGGER_UI_DOC_EXPANSION': 'list', 'RESTX_VALIDATE': True, 'RESTX_MASK_SWAGGER': False, 'ERROR_404_HELP': False, 'BUNDLE_ERRORS': True}> Traceback (most recent call last): File "/home/pi/venv/htrest/bin/htrest", line 8, in <module> sys.exit(main()) File "/home/pi/venv/htrest/lib/python3.9/site-packages/htrest/__main__.py", line 183, in main app = create_app( File "/home/pi/venv/htrest/lib/python3.9/site-packages/htrest/app.py", line 85, in create_app from htrest.apiv1 import blueprint as apiv1 File "/home/pi/venv/htrest/lib/python3.9/site-packages/htrest/apiv1.py", line 25, in <module> from flask_restx import Api File "/home/pi/venv/htrest/lib/python3.9/site-packages/flask_restx/__init__.py", line 5, in <module> from .api import Api # noqa File "/home/pi/venv/htrest/lib/python3.9/site-packages/flask_restx/api.py", line 50, in <module> from .swagger import Swagger File "/home/pi/venv/htrest/lib/python3.9/site-packages/flask_restx/swagger.py", line 18, in <module> from werkzeug.routing import parse_rule ImportError: cannot import name 'parse_rule' from 'werkzeug.routing' (/home/pi/venv/htrest/lib/python3.9/site-packages/werkzeug/routing/__init__.py) (htrest) loxberry@loxberry:/home/pi/venv $
Wäre für jeden Tipp dankbar.
greetings rage
Kommentar