You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a main.py that runs bash script that run the uploader.
in my main python I have this:
subprocess.cal("./2b.sh", shell=True)
the bash scripts executes fine but it displays an error when it execute .uploader.py
my 2b.sh bash script has this
#!/bin/bash
suffix=$(date +%H%M%S)
cd /home/pi/simple-photo/photos/
sudo cp image0.jpg /home/pi/photo_images/image-${suffix}-0.jpg
./uploader.py /home/pi/simple-photo-booth/uploader.cfg /home/pi/simple-photo-booth/photos/$returnvalue
I get the error
File "/home/pi/simple-photo/uploader.py", line 23, in
from oauth2client import client
ModuleNotFoundError: No module named 'oauth2client'
but if I execute 2b.sh from the command line, it works and it upload the picture to Google.
The text was updated successfully, but these errors were encountered:
very strange error.
I have a main.py that runs bash script that run the uploader.
in my main python I have this:
subprocess.cal("./2b.sh", shell=True)
the bash scripts executes fine but it displays an error when it execute .uploader.py
my 2b.sh bash script has this
#!/bin/bash
suffix=$(date +%H%M%S)
cd /home/pi/simple-photo/photos/
sudo cp image0.jpg /home/pi/photo_images/image-${suffix}-0.jpg
./uploader.py /home/pi/simple-photo-booth/uploader.cfg /home/pi/simple-photo-booth/photos/$returnvalue
I get the error
File "/home/pi/simple-photo/uploader.py", line 23, in
from oauth2client import client
ModuleNotFoundError: No module named 'oauth2client'
but if I execute 2b.sh from the command line, it works and it upload the picture to Google.
The text was updated successfully, but these errors were encountered: