smarthome icon indicating copy to clipboard operation
smarthome copied to clipboard

Problem bei max python Version zum Start?

Open onkelandy opened this issue 11 months ago • 5 comments

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.

onkelandy avatar Mar 06 '24 09:03 onkelandy

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.

msinn avatar Mar 06 '24 09:03 msinn

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.

stoepf avatar Mar 06 '24 21:03 stoepf

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 avatar Mar 13 '24 08:03 Morg42

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

Morg42 avatar Jun 28 '24 07:06 Morg42

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.

Morg42 avatar Jun 28 '24 07:06 Morg42