smarthomeNG / smarthome

Device integration platform for your smart home
https://www.smarthomeNG.de
GNU General Public License v3.0
119 stars 92 forks source link

Problem bei max python Version zum Start? #642

Open onkelandy opened 3 months ago

onkelandy commented 3 months ago

Im Forum berichtet ein User, dass beim Angeben einer py_maxversion von 3.10 in einem Plugin diese Fehlermeldung kommt: plugin 'jsonread' v1.0.3: The Python version v3.10.13 is too new for this plugin. It requires a version up to v3.1.999. The plugin was not loaded.

msinn commented 3 months ago

Was ist das Issue? Das ist doch eine korrekte Meldung, wenn in den Metadaten des Plugins py_maxversion: 3.10 steht.

3.10.13 ist nunmal größer als 3.10.0.

stoepf commented 3 months ago

Problem ist das die 3.10 im yaml im Code als 3.1 "ankommen". In der Fehlermeldung wird dann die "up to"-Versionsnummer falsch angezeigt.

Morg42 commented 3 months ago

Das Problem ist, dass der yaml-Importer

py_maxversion: 3.10

immer als Zahl liest, und 3.10 === 3.1.

Wenn du

py_maxversion: "3.10"

schreibst, sollte es ohne Probleme gehen. Das müsste bei allen Plugins geprüft und angepasst werden.

@msinn: vielleicht können wir das in die Tests einbauen, dass eine entsprechende [py|sh]_[min|max]version immer auf "given as string" geprüft wird?

Morg42 commented 5 days ago

Habe für alle Plugins die plugin.yaml entsprechend aktualisiert

Morg42 commented 5 days ago

resolved, weil Ursache und Lösung bekannt (und soweit möglich umgesetzt) sind wontfix, weil es letztlich in der individuellen Verantwortung des Plugin-Autors liegt.