Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 1294

Python • Re: lunch venv and python scipt on startup

$
0
0
when running the file I have an error saying that the Modbus library is not installed.
When I tried running it as bash it says that he is not able to find the script!!

If you try to 'run' something and and it can't find the script, how can the script report that the library is not installed?


Perhaps posting actual examples of what you have attempted and the errors you have received would make troubleshooting easier?



Try explicitly invoking your Python script under the control of the Python3 interpreter that you installed as part of the venv -

Code:

/home/rafik/pythonEnvs/.meteo/bin/python3 /home/rafik/modbus/modbusMultiCloud.py

Statistics: Posted by B.Goode — Fri Nov 29, 2024 6:07 pm



Viewing all articles
Browse latest Browse all 1294

Trending Articles