tacotron2-tts-GUI icon indicating copy to clipboard operation
tacotron2-tts-GUI copied to clipboard

cannot import 'token' from 'secrets'

Open ayyneya opened this issue 4 years ago • 1 comments

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.

ayyneya avatar Jan 24 '21 06:01 ayyneya

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

lokkelvin2 avatar Feb 02 '21 06:02 lokkelvin2