Ich hab einen Discord Bot Programmieret und möchte ihn 24/7 auf dem Pi durchlaufen lassen. Da meine bisherigen versuche über die rc.local Datei nicht geklappt haben schien es mir eine bessere Lösung einen Service draus zu machen. Es scheint das Discord Modul zu fehlen:
Code: Alles auswählen
Apr 30 20:16:41 raspberrypi systemd[1]: Started Hello World.
Apr 30 20:16:41 raspberrypi python[3502]: Traceback (most recent call last):
Apr 30 20:16:41 raspberrypi python[3502]: File "/home/pi/D_Funk/bot.py", line 1, in <module>
Apr 30 20:16:41 raspberrypi python[3502]: import discord
Apr 30 20:16:41 raspberrypi python[3502]: ModuleNotFoundError: No module named 'discord'
Apr 30 20:16:41 raspberrypi systemd[1]: D_Funk.service: Main process exited, code=exited, status=1/FAILURE
Apr 30 20:16:41 raspberrypi systemd[1]: D_Funk.service: Failed with result 'exit-code'.