We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
RayEnvWorker
Running the unit tests on
Python 3.10.6 (main, Aug 2 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] on linux
with ray 2.0.0, we get the following exception:
______________________________________________________________________________________________________________ test_async_env _______________________________________________________________________________________________________________ size = 10000, num = 8, sleep = 0.1 def test_async_env(size=10000, num=8, sleep=0.1): # simplify the test case, just keep stepping env_fns = [ lambda i=i: MyTestEnv(size=i, sleep=sleep, random_sleep=True) for i in range(size, size + num) ] test_cls = [SubprocVectorEnv, ShmemVectorEnv] if has_ray(): test_cls += [RayVectorEnv] for cls in test_cls: v = cls(env_fns, wait_num=num // 2, timeout=1e-3) > v.seed(None) test/base/test_env.py:66: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tianshou/env/venvs.py:329: in seed return [w.seed(s) for w, s in zip(self.workers, seed_list)] tianshou/env/venvs.py:329: in <listcomp> return [w.seed(s) for w, s in zip(self.workers, seed_list)] tianshou/env/worker/ray.py:66: in seed return ray.get(self.env.seed.remote(seed)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Actor(_SetAttrWrapper, 6127ea1483717728cd9940b301000000), item = 'seed' def __getattr__(self, item): if not self._ray_is_cross_language: > raise AttributeError( f"'{type(self).__name__}' object has " f"no attribute '{item}'" ) E AttributeError: 'ActorHandle' object has no attribute 'seed' /home/markus/OpenSourceDev/venvs/tianshou_env/lib64/python3.10/site-packages/ray/actor.py:1184: AttributeError
The same issue persists with ray==1.13.0.
I haven't investigated this further, but could it be that
tianshou/tianshou/env/worker/ray.py
Line 67 in 278c91a
AttributeError
The text was updated successfully, but these errors were encountered:
Is being fixed in #748
Sorry, something went wrong.
No branches or pull requests
Running the unit tests on
Python 3.10.6 (main, Aug 2 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] on linux
with ray 2.0.0, we get the following exception:
The same issue persists with ray==1.13.0.
I haven't investigated this further, but could it be that
tianshou/tianshou/env/worker/ray.py
Line 67 in 278c91a
AttributeError
instead?The text was updated successfully, but these errors were encountered: