Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: ModuleNotFoundError only if script is launched by cron
Post: RE: ModuleNotFoundError only if script is launched...

(Feb-03-2022, 11:06 PM)bowlofred Wrote: The PATH doesn't seem that big a deal, both accounts are running "/usr/bin/python3.9". But the import path is different. The "pi" account has a .local site-...
Charles33 General Coding Help 8 5,399 Feb-05-2022, 11:39 AM
    Thread: ModuleNotFoundError only if script is launched by cron
Post: RE: ModuleNotFoundError only if script is launched...

pi@raspberrypi:~ $ echo $PATH /home/pi/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games:/home/pi/.local/lib/python3.9/site-packages/cv2:/home...
Charles33 General Coding Help 8 5,399 Feb-03-2022, 09:14 PM
    Thread: ModuleNotFoundError only if script is launched by cron
Post: RE: ModuleNotFoundError only if script is launched...

Yes it does : pi@raspberrypi:~ $ sudo su root@raspberrypi:/home/pi# bash lancement.sh root@raspberrypi:/home/pi# Traceback (most recent call last): File "/home/pi/domoticz/scripts/snap2.py", lin...
Charles33 General Coding Help 8 5,399 Feb-03-2022, 06:36 PM
    Thread: ModuleNotFoundError only if script is launched by cron
Post: ModuleNotFoundError only if script is launched by ...

Hello I want to launch a python program at start of the system, which uses openCV. unfortunately, I get a ModuleNotFoundError on cv2 ONLY when the script is launched by cron. Why ? environment : pi...
Charles33 General Coding Help 8 5,399 Feb-03-2022, 05:19 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020