Seite 1 von 1
ModuleNotFoundError: No module named 'libs.effects
Verfasst: Donnerstag 2. Dezember 2021, 15:38
von LostiLama
pi@Server2:/share/music_led_strip_control/server/libs/effects $ sudo python3 effect_fade.py
Traceback (most recent call last):
File "/share/music_led_strip_control/server/libs/effects/effect_fade.py", line 1, in
from libs.effects.effect import Effect # pylint: disable=E0611, E0401
ModuleNotFoundError: No module named 'libs.effects'
Getting this error when using a command to controll the .py
what can i do ?
Re: ModuleNotFoundError: No module named 'libs.effects
Verfasst: Donnerstag 2. Dezember 2021, 15:51
von __deets__
Install the necessary library as hopefully documented by whoever wrote the script.
Re: ModuleNotFoundError: No module named 'libs.effects
Verfasst: Donnerstag 2. Dezember 2021, 15:56
von LostiLama
it is installed but it still didnt work idk but maby the import dosnt work or sonthing i use
https://github.com/TobKra96/music_led_s ... erver/libs
the .py reasault the missing libs.effect...
Re: ModuleNotFoundError: No module named 'libs.effects
Verfasst: Donnerstag 2. Dezember 2021, 16:12
von __deets__
Now i see it. This is simply not working as you think it is. You can't just pick a random python file inside the library and run it. You need to follow the instructions, and use it through the client when it is running as server.
Re: ModuleNotFoundError: No module named 'libs.effects
Verfasst: Donnerstag 2. Dezember 2021, 18:24
von LostiLama
oh ok is it possible to run a command so that the server executes the py file
Re: ModuleNotFoundError: No module named 'libs.effects
Verfasst: Donnerstag 2. Dezember 2021, 18:35
von __deets__
Mir kam dein Name ja bekannt vor, und das
https://forum-raspberrypi.de/user/60723-lostilama/ bist du doch, oder? Wir koennen also auch Deutsch reden.
Diese Frage ist so nicht sinnvoll. Du musst das Projekt eben installieren und die Hardware anschliessen, etc. pp. Das ist doch alles da dokumentiert.
https://github.com/TobKra96/music_led_s ... tion-Guide
Und die haben einen Discord-Server, da kannst du dich anmelden, und direkt Fragen stellen.
Mit Python Programmierung (um die sich dieses Forum dreht) hat das doch ueberhaupt nichts zu tun.
Re: ModuleNotFoundError: No module named 'libs.effects
Verfasst: Donnerstag 2. Dezember 2021, 18:50
von LostiLama
Ok Ja das bin ich Das mit dem Discord wuste ich nicht. ich möchte die Python Effekte mit einem Kommand ausführen um sie Nodered Kompatibel zu machen
Re: ModuleNotFoundError: No module named 'libs.effects
Verfasst: Donnerstag 2. Dezember 2021, 18:57
von __deets__
Dann musst du in NodeRED einen Client für den Server schreiben.