fhempy: awaitID - Fehlermeldung

Begonnen von is2late, 01 Januar 2025, 12:23:32

Vorheriges Thema - Nächstes Thema

is2late

Hallo und Frohes Neues Jahr!

seit kurzem (mindestens seit 12.12.24) wird mein Log im Abstand von 12/30 Sekunden mit folgender Meldung vollgemüllt:

=> COMMAND: readingsEndUpdate($defs{'RCT'},1);;
2024.12.18 11:37:27 1: BindingsIo (fhempy_local):    awaitId = 45812350
2024.12.18 11:37:27 1: BindingsIo (fhempy_local):    msgtype = command
2024.12.18 11:37:27 1: BindingsIo (fhempy_local):    NAME = RCT
2024.12.18 11:37:27 1: BindingsIo (fhempy_local):    command = readingsEndUpdate($defs{'RCT'},1);;
2024.12.18 11:37:39 1: BindingsIo (fhempy_local): Use of uninitialized value in string eq at (eval 5446207) line 3.
 => COMMAND: readingsEndUpdate($defs{'RCT'},1);;
2024.12.18 11:37:39 1: BindingsIo (fhempy_local):    awaitId = 45864771
2024.12.18 11:37:39 1: BindingsIo (fhempy_local):    command = readingsEndUpdate($defs{'RCT'},1);;
2024.12.18 11:37:39 1: BindingsIo (fhempy_local):    NAME = RCT
2024.12.18 11:37:39 1: BindingsIo (fhempy_local):    msgtype = command
2024.12.18 11:37:52 1: BindingsIo (fhempy_local): Use of uninitialized value in string eq at (eval 5446290) line 3.
 => COMMAND: readingsEndUpdate($defs{'RCT'},1);;
2024.12.18 11:37:52 1: BindingsIo (fhempy_local):    awaitId = 97096872
2024.12.18 11:37:52 1: BindingsIo (fhempy_local):    command = readingsEndUpdate($defs{'RCT'},1);;
2024.12.18 11:37:52 1: BindingsIo (fhempy_local):    msgtype = command
2024.12.18 11:37:52 1: BindingsIo (fhempy_local):    NAME = RCT

Ich hatte zuvor ein Upgrade auf Bullseye durchgeführt und alles aktualisiert. Bis dahin lief alles einwandfrei. Nach dem Upgrade funktionierte Fhempy nicht. Daraufhin habe ich es de- und neu installiert. Jetzt läuft es, aber obige nervige Fehlermeldug.
Da in der Fehlermeldung RCT erwähnt wird, habe ich gleiches mit RCT durchgeführt - Fehlermeldung bleibt.

Hier die Copy von fhempy_local, nachdem ich soeben noch ein fhempy-Update durchgeführt habe:

define fhempy_local BindingsIo fhempy
attr fhempy_local devStateIcon {      my $attr_ver = "1.1.0";;;;      my $status_img = "10px-kreis-gruen";;;;      my $status_txt = "connected";;;;      my $ver = ReadingsVal($name, "version", "-");;;;      my $ver_available = ReadingsVal($name, "version_available", $ver);;;;      my $update_icon = "";;;;      my $refresh_img = "refresh";;;;      my $refresh_txt = "Update fhempy";;;;      if ($ver_available ne $ver) {        $refresh_img = "refresh\@orange";;;;        $refresh_txt = "Version ".$ver_available." available for update";;;;      }      if (ReadingsVal($name, "state", "disconnected") eq "disconnected") {        $status_img = "10px-kreis-rot";;;;        $status_txt = "disconnected";;;;      }      $update_icon = "<a  href=\"/fhem?cmd.dummy=set $name update&XHR=1\" title=\"Start ".$ver_available." update\">".FW_makeImage($refresh_img, $refresh_txt)."</a>";;;;      my $restart_icon = "<a  href=\"/fhem?cmd.dummy=set $name restart&XHR=1\" title=\"Restart fhempy\">".FW_makeImage("control_reboot")."</a>";;;;      "<div><a>".FW_makeImage($status_img, $status_txt)."</a><a> ".$ver." </a>".$update_icon.$restart_icon."</div>"    }
attr fhempy_local group fhempy
attr fhempy_local icon file_json-ld2
attr fhempy_local room fhempy
attr fhempy_local verbose 0
#   BindingType fhempy
#   DEF        fhempy
#   DeviceName ws:127.0.0.1:15733
#   FD         211
#   FUUID      674dc883-f33f-a79d-0852-730e9d04a64d6aa9
#   IP         127.0.0.1
#   NAME       fhempy_local
#   NR         838
#   NTFY_ORDER 50-fhempy_local
#   PARTIAL   
#   PORT       15733
#   STATE      opened
#   TYPE       BindingsIo
#   WEBSOCKET  1
#   binary     1
#   connecttime 1735728451.17801
#   devioLoglevel 0
#   eventCount 24
#   installing 0
#   localBinding 1
#   nextOpenDelay 10
#   prev_error 127.0.0.1: Verbindungsaufbau abgelehnt (111)
#   READINGS:
#     2025-01-01 11:47:31   hostname        R4
#     2025-01-01 11:47:31   os              posix
#     2025-01-01 11:47:31   python          3.9.2
#     2025-01-01 11:47:31   release         6.6.62-v8+
#     2025-01-01 11:47:31   state           opened
#     2025-01-01 11:47:31   system          Linux
#     2025-01-01 11:47:31   version         0.1.745
#     2025-01-01 11:47:31   version_available 0.1.745
#     2025-01-01 11:47:31   version_release_notes <html><a href="https://github.com/fhempy/fhempy/releases" target="_blank">Release Notes</a></html>
#   args:
#     fhempy_local
#     BindingsIo
#     fhempy
#   hmccu:
#   messages:
#     0:
#     RCT:
#     tuya_smartlife_bf4930061fa45b4ae2fnq9:
#     tuya_smartlife_bfac6bd4d8dc1b8f09dahr:
#     tuya_smartlife_bfaf7d2add5cbf5932vxir:
#     tuya_smartlife_bfc79f5fc0a9ce7e03rpka:
#     tuya_smartlife_bfc7c0fde4ad7252f61vwm:
#     tuya_smartlife_integration:
#
setstate fhempy_local opened
setstate fhempy_local 2025-01-01 11:47:31 hostname R4
setstate fhempy_local 2025-01-01 11:47:31 os posix
setstate fhempy_local 2025-01-01 11:47:31 python 3.9.2
setstate fhempy_local 2025-01-01 11:47:31 release 6.6.62-v8+
setstate fhempy_local 2025-01-01 11:47:31 state opened
setstate fhempy_local 2025-01-01 11:47:31 system Linux
setstate fhempy_local 2025-01-01 11:47:31 version 0.1.745
setstate fhempy_local 2025-01-01 11:47:31 version_available 0.1.745
setstate fhempy_local 2025-01-01 11:47:31 version_release_notes <html><a href="https://github.com/fhempy/fhempy/releases" target="_blank">Release Notes</a></html>


Hat jemand eine Idee, was ich versuchen kann?

LG Ingo
Pi4, Tahoma Jalousien, Hue, Echo, Sonos, Lupusec XT3, FritzBox

is2late

Hi,

vielleicht hilft dies weiter:

Das Fhempy-Log wirft folgende Meldung aus:

Cargo, the Rust package manager, is not installed or is not on PATH.
    This package requires Rust and Cargo to compile extensions. Install it through
    the system's package manager or via https://rustup.rs/
   
    Checking for Rust toolchain....
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/69/ec/9fb9dcf4f91f0e5e76de597256c43eedefd8423aa59be95c70c4c3db426a/cryptography-43.0.0.tar.gz#sha256=b88075ada2d51aa9f18283532c9f60e72170041bba88d7f37e49cbb10275299e (from https://pypi.org/simple/cryptography/) (requires-python:>=3.7). Command errored out with exit status 1: /opt/fhem/.fhempy/fhempy_venv/bin/python3 /tmp/tmphsnb4x83_in_process.py prepare_metadata_for_build_wheel /tmp/tmpa5haegas Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement cryptography==43.0.0
ERROR: No matching distribution found for cryptography==43.0.0
2025-01-04 07:14:33,203 - INFO     - fhempy.lib.pkg_installer: Attempting install of cryptography==43.0.0
2025-01-04 07:15:07,763 - ERROR    - fhempy.lib.pkg_installer: Unable to install package cryptography==43.0.0: ERROR: Command errored out with exit status 1:
     command: /opt/fhem/.fhempy/fhempy_venv/bin/python3 /tmp/tmpw_229z6k_in_process.py prepare_metadata_for_build_wheel /tmp/tmpxap13fgi
         cwd: /tmp/pip-install-rb4wqg17/cryptography_959b8a1f0ebb483d850af250aa221d9b
    Complete output (6 lines):
   

Von "Rust" habe ich noch nie gehört. Wurde bis zum Wechsel auf Bullseye wohl auch nicht benötigt, weil seinerzeit keine Fehlermeldung.

Kann sich jemand einen Reim darauf machen und/oder mir einen Tipp geben, wie ich an die offenbar benötigte Installation komme?

LG Ingo
Pi4, Tahoma Jalousien, Hue, Echo, Sonos, Lupusec XT3, FritzBox