Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'retro._retro', trying to run random-agent.py on Win 10 using Cygwin #31

Closed
solejar opened this issue Apr 16, 2018 · 2 comments

Comments

@solejar
Copy link

solejar commented Apr 16, 2018

Issue summary

After installing gcc 6.3.0, Python 3.6.4, and pip3.6 onto my Cygwin shell, I downloaded the binary gym_retro-0.5.2-cp36-cp36m-windows_amd64.whl into my Cygwin shell home directory at C:\cygwin64\home\UserName\. Running pip3.6 install gym_retro-0.5.2-cp36-cp36m-win_amd64.whl failed with a wheel not supported on this platform, despite the fact that the wheel cp36 should be supported by pip3.6 and Python 3.6.4.

So after reading around, I found a solution to install the binary by changing the file name to gym_retro-0.5.2-cp36-none-any.whl. Doing so and running pip3.6 install gym_retro-0.5.2-cp36-none-any.whl completed successfully (or seemingly so), but attempting to run the random-agent.py example script leads to the error:

>>import retro
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.6/site-packages/retro/__init__.py", line 8, in <module>
    from retro._retro import Movie, RetroEmulator, core_path, data_path as _data_path
ModuleNotFoundError: No module named 'retro._retro'

My Cygwin is located at:
C:\cygwin64\

My Python3.6 is located at:
C:\cygwin64\lib\python3.6\

My working Cygwin directory is: (this is where I ran pip3.6 install <gym binary wheel>)
C:\cygwin64\home\UserName\

My project dir is:

C:\cygwin64\home\UserName\retro_contest\
  --random-agent.py

I have tried the following permutations of solutions:

Original call:
python3.6 random-agent.py

Parent dir:
python3.6 retro_contest/random-agent.py

Trying to import retro from C:\, C:\cygwin64, C:\cygwin64\lib\python3.6

All of these attempts have all led to the exact same ModuleNotfound Error.

I acknowledge that this may be an issue with gym/retro confusing my Cygwin Python installation with my Windows base Python installation, but if that is the case, I'm not sure how to ameliorate the issue.

If it is an issue with what directory I should be running the script from, then I would like to know what relative directory positioning is necessary.

System information

  • Windows 10 Home, 64-bit
  • Python 3.6.4 (running on Cygwin, compiled with GCC 6.3.0)
  • gym_retro-0.5.2-cp36-cp36m-win_amd64.whl
@endrift
Copy link
Contributor

endrift commented Apr 16, 2018

I don't think the wheels are compatible with Cygwin Python; I'm not sure. Try the 0.5.3 wheel to see if there's any difference.

@solejar
Copy link
Author

solejar commented Apr 16, 2018

Installing on my base Windows Python installation worked liked a charm. Thanks for the prompt reply :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants