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

"Import Error: No Module named ..." #8

Open
jmelman87 opened this issue Dec 26, 2017 · 2 comments
Open

"Import Error: No Module named ..." #8

jmelman87 opened this issue Dec 26, 2017 · 2 comments
Assignees

Comments

@jmelman87
Copy link

I'm having an issue with vocabulary.vocabulary . I get the following error.

File "hqtrivia-automation.py", line 9, in
import Vocabulary # online dictionary
ImportError: No module named Vocabulary

Help please?

@jmelman87
Copy link
Author

Additionally, I am confused altogether on how I am supposed to use this. I have Google Vision. Could someone please help me out and walk me through exactly how to run this? I am not the best with programming, but this project really interests me.

@blissend blissend self-assigned this Jan 11, 2018
@blissend
Copy link
Owner

blissend commented Jan 11, 2018

Sorry for slow response. Been gone on a long vacation over the holidays.

For missing module, did you run the following...
pip3 install -r requirements.txt

If so, type...
pip3 list
And comment back with results.

Also type...
python3 -m site
And see if vocabulary.py is located in any of those directories the above spits out.

For google vision setup yes the docs on this are a HUGE mess. Unfortunately I blazed through without documenting how I figured it out but after some research I think I followed this doc https://googlecloudplatform.github.io/google-cloud-python/latest/core/auth.html which ultimately lead to https://cloud.google.com/storage/docs/authentication#generating-a-private-key. That doc shows how to generate a .json auth key for the service account (may have to create one) connected to your google vision. So do the following...

  1. Follow steps here https://cloud.google.com/storage/docs/authentication#generating-a-private-key for creation .json file
  2. Put the .json file in same directory as hqtrivia-automation script and rename it to gvision_auth.json

Download latest hqtrivia-automation script and test again.

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

2 participants