You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installed shakrespearelang and ran the example .spl and got the following error
Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "C:\Users\new\AppData\Local\Programs\Python\Python312\Scripts\shakespeare.exe\__main__.py", line 4, in <module> File "C:\Users\new\AppData\Local\Programs\Python\Python312\Lib\site-packages\shakespearelang\cli.py", line 7, in <module> from ._repl import start_console, debug_play File "C:\Users\new\AppData\Local\Programs\Python\Python312\Lib\site-packages\shakespearelang\_repl.py", line 6, in <module> import readline ModuleNotFoundError: No module named 'readline'
it seems that there is an import of an unused and missing module here
It's actually not an unused import -- simply importing readline changes the behavior of input(). However, I did not realize when I wrote this that readline is only available on Unix-like systems. It doesn't work on Windows.
I'd be happy to accept a PR that wraps the import in a try block!
Installed shakrespearelang and ran the example .spl and got the following error
Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "C:\Users\new\AppData\Local\Programs\Python\Python312\Scripts\shakespeare.exe\__main__.py", line 4, in <module> File "C:\Users\new\AppData\Local\Programs\Python\Python312\Lib\site-packages\shakespearelang\cli.py", line 7, in <module> from ._repl import start_console, debug_play File "C:\Users\new\AppData\Local\Programs\Python\Python312\Lib\site-packages\shakespearelang\_repl.py", line 6, in <module> import readline ModuleNotFoundError: No module named 'readline'
it seems that there is an import of an unused and missing module here
shakespearelang/shakespearelang/_repl.py
Line 6 in a4a2753
removing that import fixes it and the output is as expected
The text was updated successfully, but these errors were encountered: