adventurelib icon indicating copy to clipboard operation
adventurelib copied to clipboard

Windows Support

Open ctrlsam opened this issue 7 years ago • 0 comments
trafficstars

Currently the project doesn't seem to run correctly on Windows. (Windows 10 version 1803 | Python 3.7)

H:\Git\adventurelib>python demo_game.py
Traceback (most recent call last):
File "demo_game.py", line 1, in <module>
    from adventurelib import *
File "H:\Git\adventurelib\adventurelib.py", line 4, in <module>
    import readline  # noqa: adds readline semantics to input()
ModuleNotFoundError: No module named 'readline'

The readline module is not supported for Windows and is depreciated.

H:\Git\adventurelib>pip install readline

Collecting readline
Using cached https://files.pythonhosted.org/packages/f4/01/2cf081af8d880b44939a5f1b446551a7f8d59eae414277fd0c303757ff1b/readline-6.2.4.1.tar.gz

Complete output from command python setup.py egg_info:
error: this module is not meant to work on Windows

On the PyPI website, it states: WARNING: THIS PACKAGE IS DEPRECATED! It has been renamed to GNUREADLINE to resolve a name clash with the standard library module.

When trying to install the new suggested replacement (GNUREADLINE), it says it is not supported for Windows and to try pyreadline instead.

Finally, I installed pyreadline which installed and then the demo game ran.

Can someone please provide screenshots of how the demo game runs on Linux as I think it may not be functioning correctly, thanks.

ctrlsam avatar Oct 07 '18 03:10 ctrlsam