ModuleNotFoundError: No module named 'libs.effects

Wenn du dir nicht sicher bist, in welchem der anderen Foren du die Frage stellen sollst, dann bist du hier im Forum für allgemeine Fragen sicher richtig.
Antworten
LostiLama
User
Beiträge: 4
Registriert: Donnerstag 2. Dezember 2021, 15:28

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 ?
__deets__
User
Beiträge: 14536
Registriert: Mittwoch 14. Oktober 2015, 14:29

Install the necessary library as hopefully documented by whoever wrote the script.
LostiLama
User
Beiträge: 4
Registriert: Donnerstag 2. Dezember 2021, 15:28

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...
__deets__
User
Beiträge: 14536
Registriert: Mittwoch 14. Oktober 2015, 14:29

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.
LostiLama
User
Beiträge: 4
Registriert: Donnerstag 2. Dezember 2021, 15:28

oh ok is it possible to run a command so that the server executes the py file
__deets__
User
Beiträge: 14536
Registriert: Mittwoch 14. Oktober 2015, 14:29

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.
LostiLama
User
Beiträge: 4
Registriert: Donnerstag 2. Dezember 2021, 15:28

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
__deets__
User
Beiträge: 14536
Registriert: Mittwoch 14. Oktober 2015, 14:29

Dann musst du in NodeRED einen Client für den Server schreiben.
Antworten