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

no module named secrets #1

Open
patalanov opened this issue Aug 14, 2016 · 3 comments
Open

no module named secrets #1

patalanov opened this issue Aug 14, 2016 · 3 comments

Comments

@patalanov
Copy link

I get ImportError: No module named secrets.
is it python 3? pip could not find it.

@vivekseth
Copy link
Owner

secrets.py is not required to make this framework work. I generally add that file to my .gitignore and use it to store info that I don't want in git, like oauth info.

To make the example in the documentation work you would just need to replace instances of "secrets.___" with your oauth information. If you want to use secrets.py, take a look here to see how I'm using it.

Does that help?

(btw the framework was written in python 2.7.11)

@patalanov
Copy link
Author

patalanov commented Aug 15, 2016

sure helped! I used and imported secrets.py. seemed like a neat environment. but now I get:
Invalid access token. mind you that I'm trying to access analysis_url, which requires it. what is generating this token? btw, my scope is an empty string.

@kiranfrancis94
Copy link

Are you trying to import secrets inorder to get a secret key?
If so, try the following commands. These commands will create a secret key for you:

$ python

import os
os.urandom(24)

These commands will create a secret key, which you can be used

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

3 participants