Recent Posts

41
x86 Systeme (PC) / [MLD 5.5T] No module named 'importlib.metadata'
« Last post by clausmuus on February 07, 2025, 22:28:12 »
Am einfachsten gehst Du auf einem Snapshot zurück, bei dem das noch funktioniert hat.
Oder Du wechselst zu der MLD-6, wo es dann die neuste Kodi Version gibt.
42
x86 Systeme (PC) / [MLD 5.5T] No module named 'importlib.metadata'
« Last post by EsJ on February 07, 2025, 21:50:31 »
Hi zusammen!

Ich habe unter MLD 5.5 testing/x86 und dem passenden Kodi 19.4 das Problem, dass seit neuestem diverse Kodi-Addons nicht mehr funktionieren, Netflix, Radio.de Light, Soundcloud, Artistslideshow etc.
Offenbar ist irgendwas an Python buggy, denn es wird das Modul importlib.metadata gesucht.

Es sind zwei Python-Versionen auf dem MLD installiert:

Code: [Select]
vdr2> python --version
Python 2.7.16

vdr2> python3 --version
Python 3.7.3

https://www.youtube.com/watch?v=jooC4mUV-pY hat erzählt, dass importlib.metadata erst per default ab Python 3.8 dabei wäre und alles drunter würde per Backport-Library importlib_metadata erledigt werden können.

Das Modul importlib.metadata bzw. importlib_metadata irgendwie via pip nachzuinstallieren schlug auch fehl.
Na ja, da eigentlich viel Python  auf so einem System verwendet wird, ist die Hälfte nicht mehr brauchbar,

Beispiel:

Code: [Select]
2025-02-07 21:20:08.978 T:4140    ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'ModuleNotFoundError'>
                                                   Error Contents: No module named 'importlib.metadata'
                                                   Traceback (most recent call last):
                                                     File "/root/.kodi/addons/script.artistslideshow/default.py", line 1, in <module>
                                                       import resources.lib.artistslideshow as ArtistSlideshow
                                                     File "/root/.kodi/addons/script.artistslideshow/resources/lib/artistslideshow.py", line 31, in <module>
                                                       from resources.plugins import *
                                                     File "/root/.kodi/addons/script.artistslideshow/resources/plugins/fanarttv.py", line 8, in <module>
                                                       from resources.lib.url import URL
                                                     File "/root/.kodi/addons/script.artistslideshow/resources/lib/url.py", line 4, in <module>
                                                       import requests as _requests
                                                     File "/root/.kodi/addons/script.module.requests/lib/requests/__init__.py", line 43, in <module>
                                                       import urllib3
                                                     File "/root/.kodi/addons/script.module.urllib3/lib/urllib3/__init__.py", line 18, in <module>
                                                       from .connectionpool import HTTPConnectionPool, HTTPSConnectionPool, connection_from_url
                                                     File "/root/.kodi/addons/script.module.urllib3/lib/urllib3/connectionpool.py", line 15, in <module>
                                                       from ._request_methods import RequestMethods
                                                     File "/root/.kodi/addons/script.module.urllib3/lib/urllib3/_request_methods.py", line 10, in <module>
                                                       from .response import BaseHTTPResponse
                                                     File "/root/.kodi/addons/script.module.urllib3/lib/urllib3/response.py", line 48, in <module>
                                                       from .connection import BaseSSLError, HTTPConnection, HTTPException
                                                     File "/root/.kodi/addons/script.module.urllib3/lib/urllib3/connection.py", line 24, in <module>
                                                       from .http2 import probe as http2_probe
                                                     File "/root/.kodi/addons/script.module.urllib3/lib/urllib3/http2/__init__.py", line 3, in <module>
                                                       from importlib.metadata import version
                                                   ModuleNotFoundError: No module named 'importlib.metadata'
                                                   -->End of Python script error report<--
                                                   
2025-02-07 21:20:09.032 T:4140     INFO <general>: Python interpreter stopped


2025-02-07 21:43:27.601 T:4351     INFO <general>: WEATHER: Downloading weather
2025-02-07 21:43:27.602 T:4353     INFO <general>: initializing python engine.
2025-02-07 21:43:27.771 T:4353    ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'ModuleNotFoundError'>
                                                   Error Contents: No module named 'importlib.metadata'
                                                   Traceback (most recent call last):
                                                     File "/root/.kodi/addons/weather.gismeteo/default.py", line 13, in <module>
                                                       from resources.libs import Gismeteo, GismeteoError, Location, Weather, WebClientError
                                                     File "/root/.kodi/addons/weather.gismeteo/resources/libs/__init__.py", line 10, in <module>
                                                       from .gismeteo import GismeteoError, GismeteoClient
                                                     File "/root/.kodi/addons/weather.gismeteo/resources/libs/gismeteo.py", line 9, in <module>
                                                       import requests
                                                     File "/root/.kodi/addons/script.module.requests/lib/requests/__init__.py", line 43, in <module>
                                                       import urllib3
                                                     File "/root/.kodi/addons/script.module.urllib3/lib/urllib3/__init__.py", line 18, in <module>
                                                       from .connectionpool import HTTPConnectionPool, HTTPSConnectionPool, connection_from_url
                                                     File "/root/.kodi/addons/script.module.urllib3/lib/urllib3/connectionpool.py", line 15, in <module>
                                                       from ._request_methods import RequestMethods
                                                     File "/root/.kodi/addons/script.module.urllib3/lib/urllib3/_request_methods.py", line 10, in <module>
                                                       from .response import BaseHTTPResponse
                                                     File "/root/.kodi/addons/script.module.urllib3/lib/urllib3/response.py", line 48, in <module>
                                                       from .connection import BaseSSLError, HTTPConnection, HTTPException
                                                     File "/root/.kodi/addons/script.module.urllib3/lib/urllib3/connection.py", line 24, in <module>
                                                       from .http2 import probe as http2_probe
                                                     File "/root/.kodi/addons/script.module.urllib3/lib/urllib3/http2/__init__.py", line 3, in <module>
                                                       from importlib.metadata import version
                                                   ModuleNotFoundError: No module named 'importlib.metadata'
                                                   -->End of Python script error report<--
                                                   
2025-02-07 21:43:27.832 T:4353     INFO <general>: Python interpreter stopped
2025-02-07 21:43:53.676 T:1664    ERROR <general>: Control 55 in window 10502 has been asked to focus, but it can't
2025-02-07 21:43:53.707 T:4357     INFO <general>: initializing python engine.
2025-02-07 21:43:53.835 T:4357    ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'ModuleNotFoundError'>
                                                   Error Contents: No module named 'importlib.metadata'
                                                   Traceback (most recent call last):
                                                     File "/root/.kodi/addons/plugin.audio.soundcloud/addon.py", line 1, in <module>
                                                       from resources import plugin
                                                     File "/root/.kodi/addons/plugin.audio.soundcloud/resources/plugin.py", line 1, in <module>
                                                       from resources.lib.soundcloud.api_v2 import ApiV2
                                                     File "/root/.kodi/addons/plugin.audio.soundcloud/resources/lib/soundcloud/api_v2.py", line 4, in <module>
                                                       import requests
                                                     File "/root/.kodi/addons/script.module.requests/lib/requests/__init__.py", line 43, in <module>
                                                       import urllib3
                                                     File "/root/.kodi/addons/script.module.urllib3/lib/urllib3/__init__.py", line 18, in <module>
                                                       from .connectionpool import HTTPConnectionPool, HTTPSConnectionPool, connection_from_url
                                                     File "/root/.kodi/addons/script.module.urllib3/lib/urllib3/connectionpool.py", line 15, in <module>
                                                       from ._request_methods import RequestMethods
                                                     File "/root/.kodi/addons/script.module.urllib3/lib/urllib3/_request_methods.py", line 10, in <module>
                                                       from .response import BaseHTTPResponse
                                                     File "/root/.kodi/addons/script.module.urllib3/lib/urllib3/response.py", line 48, in <module>
                                                       from .connection import BaseSSLError, HTTPConnection, HTTPException
                                                     File "/root/.kodi/addons/script.module.urllib3/lib/urllib3/connection.py", line 24, in <module>
                                                       from .http2 import probe as http2_probe
                                                     File "/root/.kodi/addons/script.module.urllib3/lib/urllib3/http2/__init__.py", line 3, in <module>
                                                       from importlib.metadata import version
                                                   ModuleNotFoundError: No module named 'importlib.metadata'
                                                   -->End of Python script error report<--
                                                   
2025-02-07 21:43:53.890 T:4357     INFO <general>: Python interpreter stopped
2025-02-07 21:43:53.908 T:4356    ERROR <general>: GetDirectory - Error getting plugin://plugin.audio.soundcloud/
2025-02-07 21:43:53.917 T:1664    ERROR <general>: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.soundcloud/) failed


Wie bekomme ich das gelöst?

Danke euch und viele Grüße, EsJ
43
Allgemein [ General ] / lcdproc
« Last post by clausmuus on February 07, 2025, 19:58:08 »
Was gibt "systemctl status lcdd" aus?
Wenn Du die neuste Version  des lcdd Paketes installiert hast, müsste in der /lib/systemd/system/lcdd.service "Type=forking" stehen.
Der -c Parameter sollte nicht nötig sein, und ist bei mir auch nicht nötig. Ein "LCDd -h" zeigt auch an, das die /etc/LCDd.conf der default Wert ist.
44
Hallihallo,

habe gestern ein Update gemacht.

Nun wird beim Beenden der Wiedergabe einer Aufzeichnung das Menü verlassen, also es wird direkt zur TV-Wiedergabe gesprungen.

Vorher war es so, dass beim Beenden der Wiedergabe in's Aufzeichnungsmenü gesprungen wurde.

Habe extrecmenung installiert und "Nach Wiedergabe Plugin aufrufen" ist aktiviert.

Grüße
wayne
45
Allgemein [ General ] / lcdproc
« Last post by janoschik on February 07, 2025, 18:11:51 »
Hallo Clausmuus,

hab es schon ausprobiert. Leider keine Veränderung trotz alle Pakete aktualisieren.
Hier kurzes Konzentrat aus dem Log da fast identisch, nur die letzte Meldung wird nur einmal  später wiederholt. Im alten Log tauchte die periodisch auf.

Feb 07 17:20:52 MLD systemd[1]: Started LCDproc Server Daemon.
Feb 07 17:20:52 MLD systemd[1]: Started LCDproc system status information viewer.
Feb 07 17:20:52 MLD systemd[1]: Starting activate serial port infrared receiver...
Feb 07 17:20:52 MLD systemd[1]: Starting User Login Management...
Feb 07 17:20:52 MLD systemd[1]: Starting Video Disk Recorder...
Feb 07 17:20:52 MLD systemd[1]: Started The MLD webif.
Feb 07 17:20:52 MLD systemd[1]: Starting OpenSSH Key Generation...
Feb 07 17:20:52 MLD systemd[1]: Started D-Bus System Message Bus.
Feb 07 17:20:52 MLD systemd[1]: Finished Save/Restore Sound Card State.
Feb 07 17:20:53 MLD systemd[1]: lcdd.service: Deactivated successfully.

ABER ich hab was gefunden was helfen kann.
Entweder hat er irgendwo noch eine heimliches config File oder im Daemon selbst ist eine Basisconfiguration hinterlegt.
Ich habe in der /etc/LCDd.conf die Start- und Stopmessage geändert.
Diese erscheinen beim manuellem Aufruf von "LCDd" aber nicht.
Wenn ich aber den Aufruf ändere in "LCDd -c /etc/LCDd.conf" dann wird die richtige LCDd.conf aufgerufen und das Display tut was es soll.
Außerdem erscheint die korrekte Anzeige (Sender usw statt LCDproc Server usw) deutlich schneller.
Leider komme ich aber immer noch nicht um den manuellen Start drumrum.
Sorry
Liebe Grüße

Janoschik 
46
Allgemein [ General ] / lcdproc
« Last post by clausmuus on February 07, 2025, 15:11:56 »
Ich habe die systemd service Dateien noch mal korrigiert. Jetzt starten auch beide Dienste, sofern die korrekt konfiguriert wurden. Das erfolgt unter /etc/lcdproc.conf und /etc/LCDd.conf
Die Dienste lassen sich jetzt auch über das Webif neu starten, und nicht mehr nur per "systemctl restart lcdd" und "systemctl restart lcdproc"
47
Allgemein [ General ] / lcdproc
« Last post by janoschik on February 07, 2025, 09:20:24 »
Hallo Clausmuus,

wenn ich den Deamon starte eingabe von "LCDd" (als root) geht er in den Hintergrund und das Terminal ist wieder frei.
Ich verwende Putty um dies zu tun.
Frage: Die beiden jetzt laufenden Deamonen lcdproc und lcdd haben die noch eigene Konfigurationsdateien?

Raspi such ich raus und hab auch über den Raspiimager die Quelle für den 5er gefunden aber deiner Äußerung entnehme ich das das Image noch nicht final ist.
Vielen Dank
Liebe Grüße

Janoschik
48
Allgemein [ General ] / lcdproc
« Last post by clausmuus on February 06, 2025, 18:28:40 »
Wenn Du den LCDd von hand startest, geht der dann in den Hintergrund, oder blockiert der das Terminal?

Die Anpassung für den RPI ist vermutlich nicht enthalten, da hier das Paket verwendet wird, welches von den Yocto Entwicklern bereitgestellt wird. Wenn Du noch mal einen Link zu den Sourcen mit RPI Unterstützung postest, schaue ich gerne mal ob sich das verwenden lässt.

Die RPI5 Unterstützung durch die MLD ist noch in Arbeit.
49
Allgemein [ General ] / lcdproc
« Last post by janoschik on February 06, 2025, 09:30:23 »
Hallo Clausmuus,

die wichtigste Datei ist die /etc/LCDd.conf diese sollte über einen Editor bearbeitbar sein.
Kannst du mir mal bitte noch einen Einblick geben wie das Modell des Dienstes jetzt gedacht ist, es läuft ja im Webif ein lcdproc und ein lcdd mit der jeweiligen xxxx.so des Treibern des Display.
Gerne auch mal in einem privaten chat.
Dann noch die Frage: ich hatte vor langer Zeit mal Quellcode vorgeschlagen mit dem der LCDproc alle für Raspi´s  bis 4er mit HD44780 Display angepasst war so das er auch für den Raspi4 funktioniert.
Habt ihr den mit integriert?, ist hier aber in diesem Fall nicht von Bedeutung.
Und letzte Frage keine Image für Raspi5? oder sehe ich es nur nicht.
Liebe Grüße

Janoschik

Erster Test der Änderungen
im Webif dienste sichtbar, Display initialisiert halb

Feb 06 15:44:19 MLD systemd[1]: Started LCDproc Server Daemon.
Feb 06 15:44:19 MLD systemd[1]: Started LCDproc system status information viewer.
Feb 06 15:44:19 MLD systemd[1]: Starting activate serial port infrared receiver...
Feb 06 15:44:19 MLD systemd[1]: Starting User Login Management...
Feb 06 15:44:19 MLD systemd[1]: Starting Video Disk Recorder...
Feb 06 15:44:19 MLD systemd[1]: Started The MLD webif.
Feb 06 15:44:19 MLD systemd[1]: Starting OpenSSH Key Generation...
Feb 06 15:44:19 MLD systemd[1]: Started D-Bus System Message Bus.
Feb 06 15:44:19 MLD systemd[1]: Finished Save/Restore Sound Card State.
Feb 06 15:44:19 MLD systemd[1]: lcdd.service: Deactivated successfully.
.
.
.
Feb 06 15:44:19 MLD systemd[1]: lcdproc.service: Deactivated successfully.
Feb 06 15:44:19 MLD systemd[1]: lcdproc.service: Deactivated successfully.
.
.
.
Feb 06 15:44:28 HTPC-Office.fritz.box vdr[1038]: [1038] initializing plugin: lcdproc (0.0.10-jw9): LCDproc Ausgabe
.
.
.
Feb 06 15:44:28 HTPC-Office.fritz.box vdr[1038]: [1038] starting plugin: lcdproc
Feb 06 15:44:28 HTPC-Office.fritz.box run.sh[1038]: sock_connect: connect failed: Connection refused
Feb 06 15:44:28 HTPC-Office.fritz.box vdr[1038]: could not establish connection to LCDd at 127.0.0.1:13666.
Feb 06 15:44:28 HTPC-Office.fritz.box vdr[1038]: LCDproc-Plugin started at 127.0.0.1:13666.
.
.
.
Feb 06 15:46:28 HTPC-Office.fritz.box vdr[1038]: could not establish connection to LCDd at 127.0.0.1:13666.

Die letzte Meldung wiederholt sich in regelmäßigen Abständen, wenn er dann von Hand mit der Eingabe "LCDd" gestartet wird dann läuft er.
Also halbe Arbeit schon geschafft.

Liebe Grüße

Janoschik
50
Allgemein [ General ] / lcdproc
« Last post by clausmuus on February 06, 2025, 00:45:10 »
Ich habe das automatische Starten der lcdproc und lcdd Dienste hinzugefügt.

Welche config Dateien oder Start Parameter müssen anpassbar sein bzw. sollten in's Webif aufgenommen werden?