Giter VIP home page Giter VIP logo

kojoley / atari-py Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openai/atari-py

185.0 8.0 35.0 274.17 MB

An `openai/atari-py` fork with Windows support and removed zlib/libpng dependencies. Binaries (wheels) are on "Releases" tab.

License: GNU General Public License v2.0

Makefile 0.22% Python 0.73% C++ 72.54% C 2.36% CMake 0.40% M4 1.40% TeX 5.17% Shell 0.10% Roff 0.01% Prolog 17.07% Batchfile 0.01%
atari gym reinforcement-learning windows binaries

atari-py's Introduction

atari_py

An openai/atari-py fork with Windows support and removed zlib/libpng dependencies.

Installation

To simply install atari-py wheels (binaries) use this command:

pip install -f https://github.com/Kojoley/atari-py/releases atari_py

If you have any distutils supported compiler you can install from sources:

pip install git+https://github.com/Kojoley/atari-py.git

atari-py's People

Contributors

bquast avatar christopherhesse avatar gdb avatar jessefarebro avatar jonasschneider avatar joschu avatar kojoley avatar lespeholt avatar nczempin avatar nottombrown avatar pzhokhov avatar qstanczyk avatar shelhamer avatar siemanko avatar tlbtlbtlb avatar yangqing avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

atari-py's Issues

AttributeError: 'ALEInterface' object has no attribute 'getAvailableModes'

I am trying to run OpenAI Gym on Windows 10 machine.
Current atari.py version on my machine is 1.1.7
I am getting the following error,
AttributeError: 'ALEInterface' object has no attribute 'getAvailableModes'

Here is the complete error message,
File "C:\Anaconda3\envs\gym\lib\site-packages\gym\envs\registration.py", line 156, in make return registry.make(id, **kwargs) File "C:\Anaconda3\envs\gym\lib\site-packages\gym\envs\registration.py", line 101, in make env = spec.make(**kwargs) File "C:\Anaconda3\envs\gym\lib\site-packages\gym\envs\registration.py", line 73, in make env = cls(**_kwargs) File "C:\Anaconda3\envs\gym\lib\site-packages\gym\envs\atari\atari_env.py", line 69, in __init__ self.seed() File "C:\Anaconda3\envs\gym\lib\site-packages\gym\envs\atari\atari_env.py", line 93, in seed modes = self.ale.getAvailableModes() AttributeError: 'ALEInterface' object has no attribute 'getAvailableModes'

Error on self.window.close() of rendering.py

today i follow your answer of the question(https://stackoverflow.com/questions/42605769/openai-gym-atari-on-windows/43283856) to install successfully atari-py on win10, then run the simple example and appear the game screen as expected.

import gym
env = gym.make('SpaceInvaders-v0')
env.reset()
for _ in range(1000):
env.step(env.action_space.sample())
env.render('human')

but when the program close the game screen i get the error message as the following;

Exception ignored in: <bound method SimpleImageViewer.del of <gym.envs.classic_control.rendering.SimpleImageViewer object at 0x00000224A09F2AC8>>
Traceback (most recent call last):
File "d:\Users\54516\Anaconda3\envs\dlwin36\lib\site-packages\gym\envs\classic_control\rendering.py", line 347, in del
File "d:\Users\54516\Anaconda3\envs\dlwin36\lib\site-packages\gym\envs\classic_control\rendering.py", line 343, in close
File "d:\Users\54516\Anaconda3\envs\dlwin36\lib\site-packages\pyglet\window\win32_init_.py", line 305, in close
File "d:\Users\54516\Anaconda3\envs\dlwin36\lib\site-packages\pyglet\window_init_.py", line 770, in close
ImportError: sys.meta_path is None, Python is likely shutting down

what can i do to solve the problem? thanks

os 126

When I use atari in pycharm, there is a error that is OSError: [WinError 126].
In ale_python_interface.py,
if os.name == 'posix':
ale_lib = cdll.LoadLibrary(os.path.join(os.path.dirname(file),
'ale_interface/libale_c.so'))
else:
ale_lib = cdll.LoadLibrary(os.path.join(os.path.dirname(file),
'ale_interface/ale_c.dll'))
The path "os.path.join(os.path.dirname(file),'ale_interface/ale_c.dll') " didn't exist.
Do you know how to solve?

[help] image blinks when i run an atari game

import gym
env = gym.make('SpaceInvaders-v0')
env.reset()
env.render()

Exception ignored in: <bound method SimpleImageViewer.del of <gym.envs.classic_control.rendering.SimpleImageViewer object at 0x0000014FA81743C8>>
Traceback (most recent call last):
File "D:\Python\Python36\lib\site-packages\gym\envs\classic_control\rendering.py", line 347, in del
File "D:\Python\Python36\lib\site-packages\gym\envs\classic_control\rendering.py", line 343, in close
File "D:\Python\Python36\lib\site-packages\pyglet\window\win32_init_.py", line 304, in close
File "D:\Python\Python36\lib\site-packages\pyglet\window_init_.py", line 772, in close
ImportError: sys.meta_path is None, Python is likely shutting down

Unable to download file

This Website is very unstable, and it is definitely impossible to download the relevant files

I am having issue in cloning file in my pc. getting following error.

Command "c:\users\pc\anaconda3\python.exe -u -c "import setuptools, tokenize;file='C:\Users\pc\AppData\Local\Temp\pip-req-build-6z3fwi12\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\pc\AppData\Local\Temp\pip-record-fk7dabl6\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\pc\AppData\Local\Temp\pip-req-build-6z3fwi12\

Used working in the Old windows 10 , clean build ran into following

Command "python setup.py egg_info" failed with error code 1 in C:\Users\user\AppData\Local\Temp\pip-7c7iqed7-build\

(C:\Users\user\AppData\Local\Continuum\anaconda3\envs\TensorFlowGPU36) D:\TensorflowPY36CPU>pip install -U git+https
://github.com/Kojoley/atari-py.git
Collecting git+https://github.com/Kojoley/atari-py.git
  Cloning https://github.com/Kojoley/atari-py.git to c:\users\user\appdata\local\temp\pip-7zlbgeph-build
    Complete output from command python setup.py egg_info:
    running egg_info
    creating pip-egg-info\atari_py.egg-info
    writing pip-egg-info\atari_py.egg-info\PKG-INFO
    writing dependency_links to pip-egg-info\atari_py.egg-info\dependency_links.txt
    writing requirements to pip-egg-info\atari_py.egg-info\requires.txt
    writing top-level names to pip-egg-info\atari_py.egg-info\top_level.txt
    writing manifest file 'pip-egg-info\atari_py.egg-info\SOURCES.txt'
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\user\AppData\Local\Temp\pip-7zlbgeph-build\setup.py", line 92, in <module>
        tests_require=['nose2']
      File "C:\Users\user\AppData\Local\Continuum\anaconda3\envs\TensorFlowGPU36\lib\site-packages\setuptools\__init
__.py", line 129, in setup
        return distutils.core.setup(**attrs)
      File "C:\Users\user\AppData\Local\Continuum\anaconda3\envs\TensorFlowGPU36\lib\distutils\core.py", line 148, i
n setup
        dist.run_commands()
      File "C:\Users\user\AppData\Local\Continuum\anaconda3\envs\TensorFlowGPU36\lib\distutils\dist.py", line 955, i
n run_commands
        self.run_command(cmd)
      File "C:\Users\user\AppData\Local\Continuum\anaconda3\envs\TensorFlowGPU36\lib\distutils\dist.py", line 974, i
n run_command
        cmd_obj.run()
      File "C:\Users\user\AppData\Local\Continuum\anaconda3\envs\TensorFlowGPU36\lib\site-packages\setuptools\comman
d\egg_info.py", line 280, in run
        self.find_sources()
      File "C:\Users\user\AppData\Local\Continuum\anaconda3\envs\TensorFlowGPU36\lib\site-packages\setuptools\comman
d\egg_info.py", line 295, in find_sources
        mm.run()
      File "C:\Users\user\AppData\Local\Continuum\anaconda3\envs\TensorFlowGPU36\lib\site-packages\setuptools\comman
d\egg_info.py", line 526, in run
        self.add_defaults()
      File "C:\Users\user\AppData\Local\Continuum\anaconda3\envs\TensorFlowGPU36\lib\site-packages\setuptools\comman
d\egg_info.py", line 562, in add_defaults
        sdist.add_defaults(self)
      File "C:\Users\user\AppData\Local\Continuum\anaconda3\envs\TensorFlowGPU36\lib\site-packages\setuptools\comman
d\py36compat.py", line 36, in add_defaults
        self._add_defaults_ext()
      File "C:\Users\user\AppData\Local\Continuum\anaconda3\envs\TensorFlowGPU36\lib\site-packages\setuptools\comman
d\py36compat.py", line 119, in _add_defaults_ext
        build_ext = self.get_finalized_command('build_ext')
      File "C:\Users\user\AppData\Local\Continuum\anaconda3\envs\TensorFlowGPU36\lib\distutils\cmd.py", line 299, in
 get_finalized_command
        cmd_obj.ensure_finalized()
      File "C:\Users\user\AppData\Local\Continuum\anaconda3\envs\TensorFlowGPU36\lib\distutils\cmd.py", line 107, in
 ensure_finalized
        self.finalize_options()
      File "C:\Users\user\AppData\Local\Continuum\anaconda3\envs\TensorFlowGPU36\lib\site-packages\setuptools\comman
d\build_ext.py", line 136, in finalize_options
        self.setup_shlib_compiler()
      File "C:\Users\user\AppData\Local\Temp\pip-7zlbgeph-build\setup.py", line 21, in setup_shlib_compiler
        _build_ext.setup_shlib_compiler(self)
      File "C:\Users\user\AppData\Local\Continuum\anaconda3\envs\TensorFlowGPU36\lib\site-packages\setuptools\comman
d\build_ext.py", line 160, in setup_shlib_compiler
        compiler=self.compiler, dry_run=self.dry_run, force=self.force
      File "C:\Users\user\AppData\Local\Continuum\anaconda3\envs\TensorFlowGPU36\lib\distutils\ccompiler.py", line 1
031, in new_compiler
        return klass(None, dry_run, force)
      File "C:\Users\user\AppData\Local\Continuum\anaconda3\envs\TensorFlowGPU36\lib\distutils\cygwinccompiler.py",
line 285, in __init__
        CygwinCCompiler.__init__ (self, verbose, dry_run, force)
      File "C:\Users\user\AppData\Local\Continuum\anaconda3\envs\TensorFlowGPU36\lib\distutils\cygwinccompiler.py",
line 129, in __init__
        if self.ld_version >= "2.10.90":
    TypeError: '>=' not supported between instances of 'NoneType' and 'str'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\user\AppData\Local\Temp\pip-7zlbgeph-build\

(C:\Users\user\AppData\Local\Continuum\anaconda3\envs\TensorFlowGPU36) D:\TensorflowPY36CPU>

Please help

Could not find a version that satisfies the requirement six

Looking in links: https://github.com/Kojoley/atari-py/releases
Collecting atari_py
Downloading https://github.com/Kojoley/atari-py/releases/download/1.2.1/atari_py-1.2.1-cp38-cp38-win_amd64.whl (683 kB)
|████████████████████████████████| 683 kB 312 kB/s
Requirement already satisfied: numpy in e:\anaconda\envs\openai\lib\site-packages (from atari_py) (1.19.1)
ERROR: Could not find a version that satisfies the requirement six (from atari_py) (from versions: none)
ERROR: No matching distribution found for six (from atari_py)

I have met these two errors when trying to install it on window 10, could you please give some help?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.