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

ImportError: No module named atari_py #24

Open
phoenixjyb opened this issue Sep 16, 2018 · 10 comments
Open

ImportError: No module named atari_py #24

phoenixjyb opened this issue Sep 16, 2018 · 10 comments

Comments

@phoenixjyb
Copy link

Hi there,

When I try to run "python tests/atari_init_test.py", the following error message appears:
ImportError: No module named atari_py

However, atari_py was installed using pip install atari-py, and when try again installing atari-py, it indicates: requirement already satisfied: atari_py in /usr/local/lib/python2.7/dist-packages

System environment information are:
Ubuntu 16.04;
Python: 2.7/15 | Anaconda, Inc. | default, May 1 2018

Any way to help locate atari_py?

Cheers,

@psc-g
Copy link
Collaborator

psc-g commented Sep 17, 2018

are you running all of this inside a virtualenv?

@iteachmachines
Copy link

I was facing the same issue and later I merged openai/atari-py repo into it and everything worked fine for me.

@Jarvis-K
Copy link

Jarvis-K commented Oct 1, 2018

Try pip install atari_py

@stephane-archer
Copy link

same problem 😕

@zook111
Copy link

zook111 commented Mar 28, 2019

sudo pip install absl-py atari-py gin-config gym opencv-python tensorflow-gpu

@iteachmachines
Copy link

Try to install it using conda environment.
https://anaconda.org/akode/atari-py

arthurarg pushed a commit to arthurarg/dopamine that referenced this issue Jun 25, 2019
Merge come from upstream google/dopamine into this fork.
@saraNgolestani
Copy link

I have tried all mentioned comments above, None works!

@sailfish009
Copy link

atari-py 0.2.6 is no good. try install latest version(0.3.0):
git clone https://github.com/openai/atari-py
cd atari-py
pip install -e .

@RylanSchaeffer
Copy link

I have this problem inside a virtual environment. pip install gym[atari] succeeded:

Successfully installed atari-py-0.2.6 opencv-python-4.3.0.36

But when I try to import it, I get

import atari_py
Traceback (most recent call last):
  File "/home/rylan/Documents/acme/acme-venv/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3343, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-2-3e323834000c>", line 1, in <module>
    import atari_py
  File "/snap/pycharm-professional/201/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
    module = self._system_import(name, *args, **kwargs)
ModuleNotFoundError: No module named 'atari_py'

@rayryeng
Copy link

rayryeng commented Jul 19, 2020

Within a virtual environment, the only way this worked for me was to clone the atari-py project from the repo, install it locally then use sys.path.append('path to atari-py repo') in my Jupyter notebook or Python source file for this to finally work.

git clone https://github.com/openai/atari-py
cd atari-py
pip install -e .

Then in the notebook or source file:

import sys
sys.path.append('path to atari-py repo')

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

10 participants