Kautenja / gym-super-mario-bros

An OpenAI Gym interface to Super Mario Bros. & Super Mario Bros. 2 (Lost Levels) on The NES

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation Issues

rtang23 opened this issue · comments

pip install gym-super-mario-bros
Collecting gym-super-mario-bros
Using cached https://files.pythonhosted.org/packages/a9/f9/ff8254f8115a46c1cad551ec98e56da1d0a95396f25e130bb98a62ff87e0/gym_super_mario_bros-1.1.0.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-TDJ6Mj/gym-super-mario-bros/setup.py", line 4
def README() -> str:
^
SyntaxError: invalid syntax

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-TDJ6Mj/gym-super-mario-bros/

Tried installing but faced these issues. Any help is appreciated. Cheers

It seems to be pulling 1.1.0 despite 2.3.1 being the most recent release. Also the syntax error is likely because the verion of Python/Pip you're using doesn't support type hints. My thought is that Pip is aliasing Python 2 instead of Python 3 or else a version of Python 3 before type hints were introduced (e.g. before Python 3.5). Try checking the version of python with python -v and ensuring that it's 3.5 or later.

The coming release (3.0) of gym-super-mario bros will support python 2 & 3. Closing this issue as I believe it is simply environment-based. Please reopen if you are encountering issues with 2.x.x using Python3 or find issues using the coming 3.x.x on either Python 2 or 3.