Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'oauth2client' #2

Open
dannyconstantine opened this issue Nov 14, 2022 · 0 comments
Open

ModuleNotFoundError: No module named 'oauth2client' #2

dannyconstantine opened this issue Nov 14, 2022 · 0 comments

Comments

@dannyconstantine
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant