El problema be per en un servei de Ubuntu sols pots fer una linear de comandament i com et fiques al entorn virtual.. Aixi ... On Dietpi Important All the paths in your scripts have to be absolute paths, there can be no relative path in your scripts. If there are relative paths that you must keep, you will have to change your current working directory by retrieving Modify the python script, add first line: #!/home/dietpi/Temp/.env/bin/python3 which is the path to the python in the virtual env chmod +x bot.py to make it executable, it will execute with the python you specified in the previous step, which the python you installed in your vritual environment. You can try this by directly running ./bot.py without any python before it, it should run the script. Type the following command in your terminal to add a systemd service: sudo systemctl edit --force --full dummy.service El converteixes amb un executable directament i després...