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

Issue with running learn2learn-master\examples\rl\maml_trpo.py #421

Open
Gyn0802 opened this issue Nov 7, 2023 · 0 comments
Open

Issue with running learn2learn-master\examples\rl\maml_trpo.py #421

Gyn0802 opened this issue Nov 7, 2023 · 0 comments

Comments

@Gyn0802
Copy link

Gyn0802 commented Nov 7, 2023

D:\Anaconda\python.exe D:\py\learn2learn-master\examples\rl\maml_trpo.py
D:\Anaconda\lib\site-packages\gym\spaces\box.py:73: UserWarning: WARN: Box bound precision lowered by casting to float32
logger.warn(
Traceback (most recent call last):
File "D:\Anaconda\lib\site-packages\cherry\wrappers\base_wrapper.py", line 82, in getattr
Traceback (most recent call last):
File "D:\Anaconda\lib\multiprocessing\connection.py", line 312, in _recv_bytes
return getattr(self.env, attr)
File "D:\Anaconda\lib\site-packages\cherry\wrappers\base_wrapper.py", line 82, in getattr
return getattr(self.env, attr)
File "D:\Anaconda\lib\site-packages\cherry\wrappers\base_wrapper.py", line 82, in getattr
nread, err = ov.GetOverlappedResult(True)
return getattr(self.env, attr)
BrokenPipeError [Previous line repeated 996 more times]
File "D:\Anaconda\lib\site-packages\cherry\wrappers\base_wrapper.py", line 79, in getattr
: [WinError 109] 管道已结束。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\py\learn2learn-master\examples\rl\maml_trpo.py", line 225, in
if attr in self.dict.keys():
RecursionError: maximum recursion depth exceeded while calling a Python object
main()
File "D:\py\learn2learn-master\examples\rl\maml_trpo.py", line 140, in main
env = l2l.gym.AsyncVectorEnv([make_env for _ in range(num_workers)])
File "D:\Anaconda\lib\site-packages\learn2learn\gym\async_vec_env.py", line 25, in init
super(AsyncVectorEnv, self).init(env_fns, queue=self.queue)
File "D:\Anaconda\lib\site-packages\learn2learn\gym\envs\subproc_vec_env.py", line 73, in init
observation_space, action_space = self.remotes[0].recv()
File "D:\Anaconda\lib\multiprocessing\connection.py", line 250, in recv
buf = self._recv_bytes()
File "D:\Anaconda\lib\multiprocessing\connection.py", line 321, in _recv_bytes
raise EOFError
EOFError

I encountered the above error when running the code in learn2learn-master\examples\rl\maml_trpo.py, and I'm not sure what the reason is. I suspect it might be related to the Cherry version. The Cherry version I have installed is 0.20.0. Who can help me pinpoint the issue?

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

1 participant