Eigenbahn / ai-dungeon-cli

:european_castle: A cli client to play.aidungeon.io
MIT License
150 stars 34 forks source link

Crash when using --slow-typing #32

Closed Noneatme closed 3 years ago

Noneatme commented 3 years ago

Hi,

when I append the --slow-typing switch, I get the following error:

~/.config/ai-dungeon-cli$ ai-dungeon-cli --slow-typing
Traceback (most recent call last):
  File "/usr/local/bin/ai-dungeon-cli", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/dist-packages/ai_dungeon_cli/__init__.py", line 311, in main
    term_io = TermIoSlowStory(conf.prompt)
  File "/usr/local/lib/python3.8/dist-packages/ai_dungeon_cli/impl/user_interaction.py", line 83, in __init__
    sys.stdout = Unbuffered(sys.stdout)
NameError: name 'sys' is not defined

Do I have a wrong python version installed? Thanks for the help!

p3r7 commented 3 years ago

Hi,

I just published 0.4.5 that should fix this issue (+ another important one).

p3r7 commented 3 years ago

After several tests, I can confirm that is issue is resolved.