144 Commits

Author SHA1 Message Date
Seungjae Ryan Lee
616b071158 Remove Robotics environments from Gym (#2516)
* Remove registration of Robotics envs

* Remove Robotics environments

* Update setup.py

* Update unit tests

* Remove unused GoalEnv class
2021-12-21 09:46:24 -05:00
J K Terry
9180d12e1b typo 2021-12-10 18:06:07 -05:00
Ariel Kwiatkowski
c364506710 Seeding update (#2422)
* Ditch most of the seeding.py and replace np_random with the numpy default_rng. Let's see if tests pass

* Updated a bunch of RNG calls from the RandomState API to Generator API

* black; didn't expect that, did ya?

* Undo a typo

* blaaack

* More typo fixes

* Fixed setting/getting state in multidiscrete spaces

* Fix typo, fix a test to work with the new sampling

* Correctly (?) pass the randomly generated seed if np_random is called with None as seed

* Convert the Discrete sample to a python int (as opposed to np.int64)

* Remove some redundant imports

* First version of the compatibility layer for old-style RNG. Mainly to trigger tests.

* Removed redundant f-strings

* Style fixes, removing unused imports

* Try to make tests pass by removing atari from the dockerfile

* Try to make tests pass by removing atari from the setup

* Try to make tests pass by removing atari from the setup

* Try to make tests pass by removing atari from the setup

* First attempt at deprecating `env.seed` and supporting `env.reset(seed=seed)` instead. Tests should hopefully pass but throw up a million warnings.

* black; didn't expect that, didya?

* Rename the reset parameter in VecEnvs back to `seed`

* Updated tests to use the new seeding method

* Removed a bunch of old `seed` calls.

Fixed a bug in AsyncVectorEnv

* Stop Discrete envs from doing part of the setup (and using the randomness) in init (as opposed to reset)

* Add explicit seed to wrappers reset

* Remove an accidental return

* Re-add some legacy functions with a warning.

* Use deprecation instead of regular warnings for the newly deprecated methods/functions
2021-12-08 16:14:15 -05:00
J K Terry
42a4a09f5b 3.10 support (#2493)
* test again

* typo
2021-11-20 11:41:27 -05:00
J K Terry
a5c0608efb Update setup.py 2021-10-25 16:13:38 -04:00
J K Terry
bfe4273c58 remove python 3.6 support (#2448) 2021-10-16 11:33:49 -04:00
Jesse Farebrother
ca42b05243 Fix importlib-metadata on Python 3.8 + bump ale-py (#2428)
* Bump ale-py -> 0.7.1

* env-plugins: parse module,attr for Python 3.8
2021-09-28 19:45:01 -04:00
Jesse Farebrother
52b7e5e325 Add extra [accept-rom-license] for AutoROM (#2420) 2021-09-28 13:42:26 -04:00
Jesse Farebrother
e212043a93 Add plugin system for third-party environments (#2383) 2021-09-14 22:14:05 -04:00
Jesse Farebrother
f6742ea808 Remove AtariEnv in favour of official ALE Python package (#2348)
* Remove AtariEnv in favour of official ALE Python

* More robust frame stacking test case

* Atari documentation update
2021-09-11 13:04:41 -04:00
J K Terry
9045cdf4cf fix box2d-py float 2021-09-09 17:19:15 -04:00
J K Terry
ee30486bfb rename wrappers to other 2021-08-17 15:52:43 -04:00
J K Terry
36499b917e More setup.py fixes (#2321)
* move cloud pickle

* more fixes

* move cloud pickle back
2021-08-17 10:25:59 -04:00
Justin Terry
1da3d4f8e9 fix black 2021-08-16 19:41:56 -04:00
J K Terry
8529781ae1 Add wrappers extra 2021-08-16 19:08:07 -04:00
J K Terry
df4a171b8f Try removing pillow? (#2295)
* try removing pillow?

* remove pillow from requirements.txt too
2021-08-05 10:34:13 -04:00
J K Terry
0fcaa5ddf7 Extras fixes (#2291)
* refactor extras

* black
2021-08-04 15:20:53 -04:00
J K Terry
f75c4101ec floating picle version (#2282) 2021-08-01 11:39:48 -04:00
J K Terry
78d2b512d8 redo black (#2272) 2021-07-29 15:39:42 -04:00
Justin Terry
e9d2c41f2b redo black 2021-07-29 12:42:48 -04:00
Christian Clauss
bb81e141ea Blacken the codebase (#2265) 2021-07-28 20:26:34 -04:00
Justin Terry
ee7811c26d peg atari-py version, add requirements.txt, bump numpy version 2021-07-27 12:35:35 -04:00
Justin Terry
562a8cc7ce fix qoute 2021-07-26 16:03:32 -04:00
Zhiqing Xiao
81aeb68906 remove constraints on package versions (#2135)
Co-authored-by: J K Terry <justinkterry@gmail.com>
2021-07-26 15:43:08 -04:00
Daniel Ciborowski
a5a6ae6bc0 Update Pillow Python Library for CVE-2020-35653 & CVE-2021-27921 (#2189)
* Update setup.py

* Update setup.py

* Update setup.py
2021-04-06 08:18:55 -07:00
pzhokhov
1e5f770044 fix build - only install mujoco for python 3.6, 3.7, (#2133)
* reverting to older version of 3.6 python to test if the build is failing because of that

* revert 3.7 to 3.7.3 for the build

* revert python 3.8 version to 3.8.1

* do not install mujoco on 3.8 and 3.9

* enable mujoco for 3.7

* .

* .

* .

* use regex to navigate python version dependent package installation

* .
2020-12-18 15:31:58 -08:00
Justin Terry
bdf95c1adc Python 3.9 support (#2088)
* try changes in pr 1804

* fix classifiers

* typo
2020-12-17 11:55:52 -08:00
Justin Terry
eec7d3354a Remove Python 3.5 support, travis and setup.py maintenance (#2084)
* remove python 3.5, update travis

* add travis

* add cmake during tests

* add swig

* disable python 3.8 removal?

* remove depricated failover

* add opencv and pillow minimum versions

* try removing pillow minimum version

* try older version of ubuntu

* reup ubuntu

* make pillow version suitable for pyglet version range

* remove extraneous run

* rerun stalled CI
2020-11-06 17:04:23 -08:00
Antonin RAFFIN
75b5fabdab Extend cloudpickle version range (#2032) 2020-09-11 15:02:20 -07:00
Neil
de25ab58c8 Remove dependency from setup.py (#2016)
Python 3.4 was dropped, so enum34 is no longer required.
2020-08-28 14:40:35 -07:00
pzhokhov
67212547ac remove six and __future__ imports (#1840)
* remove six

* remove __future__ imports

* remove six from setup.py, python 2.7 from README.rst
2020-04-10 17:10:34 -05:00
pzhokhov
743a2d5eac expand cloudpickle range (#1836)
* expand cloudpickle range

* 0.17.1 release note
2020-03-05 10:49:52 -05:00
pzhokhov
c476e8553f fix python_requires in setup.py (#1827) 2020-02-29 02:39:04 +01:00
tvalentyn
16112ad72f Pick up a newer version of Cloudpickle, which fixes https://github.com/cloudpipe/cloudpickle/issues/82 (#1816) 2020-02-26 17:33:01 +01:00
pzhokhov
639264c545 Drop python2 support (#1819)
* drop python 2 support

* remove python 2.7 logic from Dockerfile

* Revert "remove python 2.7 logic from Dockerfile"

This reverts commit 43ceabfa8d70ca083661ab3d0d03f2a1adbef5ff.

* remove python 2.7 logic from Dockerfile

* use python 3.7.3 (3.7.6 segfaults with mujoco for some reason?

* include cmake into system level packages

* add swig to system packages

* python3.8 build still segfaults on mujoco tests, disabling for now

* add python 3.8 and 3.9 to the build

* python 3.9.1 -> 3.9.0

* oops i did not realize python 3.9 is still in alpha
2020-02-25 14:11:55 +01:00
pzhokhov
eeb1f97d38 pyglet 1.4 compatibility (#1771)
* pyglet 1.4 compatibility

* change pyglet version in setup.py
2020-02-03 11:34:28 +01:00
pzhokhov
7854e2d020 remove opencv-python from core requirements (#1764)
* remove opencv-python from core requirements

* fail on AtariWrapper construction if opencv-python is not installed
2020-01-24 14:05:12 -08:00
Christopher Hesse
5fb359971a only support mujoco-py <2.0 2019-11-08 14:12:42 -08:00
Dmitry Nikulin
9a7f912989 Use list comprehension instead of += (#1654) 2019-10-18 16:00:15 -07:00
Mohamad H. Danesh
2b7a774f49 Update setup.py (#1713) 2019-10-18 14:41:09 -07:00
Christopher Hesse
f4d3c075e8 fix version selector 2019-07-08 13:15:08 -07:00
Christopher Hesse
c2adfae015 narrow pyglet version 2019-07-08 13:15:08 -07:00
Christopher Hesse
a94a8f6c9b fix pyglet version 2019-07-08 13:15:08 -07:00
Jesse Farebrother
fc6891c9c8 ALE 0.6 (#1535) 2019-06-21 16:50:54 -07:00
Tristan Deleu
c6a97e17ee Vectorized environments (#1513)
* Initial version of vectorized environments

* Raise an exception in the main process if child process raises an exception

* Add list of exposed functions in vector module

* Use deepcopy instead of np.copy

* Add documentation for vector utils

* Add tests for copy in AsyncVectorEnv

* Add example in documentation for batch_space

* Add cloudpickle dependency in setup.py

* Fix __del__ in VectorEnv

* Check if all observation spaces are equal in AsyncVectorEnv

* Check if all observation spaces are equal in SyncVectorEnv

* Fix spaces non equality in SyncVectorEnv for Python 2

* Handle None parameter in create_empty_array

* Fix check_observation_space with spaces equality

* Raise an exception when operations are out of order in AsyncVectorEnv

* Add version requirement for cloudpickle

* Use a state instead of binary flags in AsyncVectorEnv

* Use numpy.zeros when initializing observations in vectorized environments

* Remove poll from public API in AsyncVectorEnv

* Remove close_extras from VectorEnv

* Add test between AsyncVectorEnv and SyncVectorEnv

* Remove close in check_observation_space

* Add documentation for seed and close

* Refactor exceptions for AsyncVectorEnv

* Close pipes if the environment raises an error

* Add tests for out of order operations

* Change default argument in create_empty_array to np.zeros

* Add get_attr and set_attr methods to VectorEnv

* Improve consistency in SyncVectorEnv
2019-06-21 14:29:44 -07:00
Christopher Hesse
f1d13b4967 fix version selectors 2019-05-24 16:44:12 -07:00
Christopher Hesse
1bde3c01c3 attempt to remove pyopengl 2019-05-24 16:44:12 -07:00
Peter Zhokhov
05587f46d9 add opencv dependency for atari to fix tests 2019-05-10 15:19:04 -07:00
pzhokhov
8b15512bba test docker images based on python images (#1474)
* base test docker image on python images

* fix py3 build

* fixes for python-based dockerfile

* re-enable py27 build

* remove requirements_dev.txt and unittest.cfg (cleaning up build pipeline)
2019-05-10 14:49:16 -07:00
Hugo
8233fe1f16 Update version metadata (#1451)
* Add python_requires to help pip

* Add Trove classifiers to clarify support on PyPI
2019-05-03 14:47:44 -07:00