HTTPMOD Bookworm Fehler in parser.pm

Begonnen von holle75, 13 März 2025, 18:59:26

Vorheriges Thema - Nächstes Thema

holle75

ich bekomme auf einem neuen Raspi 3B Install mit aktuellem Bookworm seit Anlage eines HTTPMOD Devices folgende Fehlermeldung

error in find for XPathStrictNodeset: Couldn't open encmap ascii.enc:
No such file or directory
 at /usr/lib/arm-linux-gnueabihf/perl5/5.36/XML/Parser.pm line 187.

ich meine die entsprechenden Perl Erweiterungen installiert zu haben .....

sudo apt install libxml-simple-perl
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut... Fertig
Statusinformationen werden eingelesen... Fertig
libxml-simple-perl ist schon die neueste Version (2.25-2).
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.

Das Device (dem hier folgend -> https://wiki.fhem.de/wiki/VLC_Media_Player_mit_HTTPMOD)

defmod vlc HTTPMOD http://192.168.x.xx:8080/requests/status.xml 5
attr vlc getHeader1 Authorization: Basic xxxxxx
attr vlc reading01Name random
attr vlc reading01XPath-Strict /root/random/text()
attr vlc reading02Name loop
attr vlc reading02XPath-Strict /root/loop/text()
attr vlc reading03Name repeat
attr vlc reading03XPath-Strict /root/repeat/text()
attr vlc replacement01Regex %%cmd%%
attr vlc requestHeader1 Authorization: Basic xxxxxxxxxx
attr vlc set01Name random
attr vlc set01NoArg 1
attr vlc set01Replacement01Value pl_random
attr vlc set02Name loop
attr vlc set02NoArg 1
attr vlc set02Replacement01Value pl_loop
attr vlc set03Name repeat
attr vlc set03NoArg 1
attr vlc set03Replacement01Value pl_repeat
attr vlc setHeader1 Authorization: Basic xxxxxxxxxxxxxx
attr vlc setURL http://192.168.x.xx:8080/requests/status.xml?command=%%cmd%%



Das habe ich noch hier gefunden -> https://stackoverflow.com/questions/5669277/perl-couldnt-open-encmap-ascii-enc

    Expat has built-in encodings for: `UTF-8`, `ISO-8859-1`, `UTF-16`, and `US-ASCII`. Encodings are set either through the XML declaration encoding attribute or through the ProtocolEncoding option to XML::Parser or XML::Parser::Expat.

    For encodings other than the built-ins, expat calls the function load_encoding in the Expat package with the encoding name. This function looks for a file in the path list @XML::Parser::Expat::Encoding_Path, that matches the lower-cased name with a '.enc' extension. The first one it finds, it loads.

aber das ist mir alles zu sehr Linux ...

jemand eine hilfreiche Idee?

holle75

Mmh, besagte Perl Erweiterungen nochmal drübergebügelt, bis jetzt keine Fehlermeldungen mehr.