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

cannot import 'token' from 'secrets' #5

Open
ayyneya opened this issue Jan 24, 2021 · 1 comment
Open

cannot import 'token' from 'secrets' #5

ayyneya opened this issue Jan 24, 2021 · 1 comment

Comments

@ayyneya
Copy link

ayyneya commented Jan 24, 2021

python gui.py
pygame 2.0.1 (SDL 2.0.14, Python 3.8.0)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "gui.py", line 31, in
from secrets import TOKEN # for debugging
ImportError: cannot import name 'TOKEN' from 'secrets' (C:\Program Files\Python38\lib\secrets.py)

Sorry to be a bother, I've been trying to get it to work but no luck, I've been able to solve (most) errors myself, but don't know what to do about this one. Thanks in any case.

@lokkelvin2
Copy link
Owner

Ah, I must have left that in accidentally. It was just a debugging file that saved my streamelements JWT token in plain text.
To fix it you can edit gui.py and comment out line 31, 628 and 629. Then uncomment lines 626 and 627.

Would appreciate if someone with more free time can help make a PR for this

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