tutorials icon indicating copy to clipboard operation
tutorials copied to clipboard

ModuleNotFoundError: No module named 'oauth2client'

Open dannyconstantine opened this issue 4 years ago • 0 comments

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.

dannyconstantine avatar Nov 14 '22 22:11 dannyconstantine