-
Notifications
You must be signed in to change notification settings - Fork 13
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
RecursionError: maximum recursion depth exceeded #3
Comments
Hi James, Thank you for your interest in our codebase. The issue is that you will need to create a python environment, with all of the necessary packages. To find these packages, please go to https://github.com/snasiriany/leap/blob/master/docker/Dockerfile and search for all instances of and install all of the dependencies mentioned in those lines. In general, the linked dockerfile should give be a guide for identifying any other missing dependencies. |
Thank you Soroush for the quick response, I have installed all of the files except:
This error occurs when I try to run stage 2 for the env pm: The other 2 environments fail at stage 1 with the error: ERROR: GLEW initalization error: Missing GL version. Would be really cool if I could run it, the paper looks promising. |
Hi James, In general, I would recommend running things on the docker image, rather than locally. That said, I understand that it may be more convenient to run things locally, so I'll try to help out as best as I can :) Re: pytorch. I don't think the code is compatible with pytorch 1.4.0. Could you elaborate on why your pc doesn't support 0.3.0? Perhaps, you can try the following command instead? Re: GLEW. Does following the solution from this post help? openai/mujoco-py#187 |
Hi Soroush,
The GLEW issue was resolved, thanks! However the initial problem still exists even with torch 0.3.1. Upon using
Btw. I use Ubuntu 18.04 with cuda 10.2. |
So to elaborate, were you able to successfully install pytorch 0.3.1? If so, did you get this maximum recursion depth error with pytorch 0.3.1? If you are using torch 0.3, I'm not sure why the error exists. In that case, could you provide some more context around the issue (maybe a stack trace)? If you're using a newer version (> 0.3.1) this error may be expected. There's no guarantee of the code working with a newer version of pytroch. If you need to use a newer version, this requires making modifications to the code so that it is compatible with the newer version of pytorch. While I can try my best to help you in this case, I think it's best to step through the code with a debugger/print statements to resolve all the issues that arise. That said, you could always run experiments via the docker image. You should be able to successfully install pytorch 0.3 via the docker image, even though you have had some issues installing it on your local machine. |
I'm trying to run the code locally with doodad but I encounter the above error. The Error log is as following:
File "/home/james/Documents/GitHub/leap/railrl/torch/pytorch_util.py", line 145, in fanin_init
return fanin_init(tensor.data)
[Previous line repeated 983 more times]
File "/home/james/Documents/GitHub/leap/railrl/torch/pytorch_util.py", line 144, in fanin_init
if isinstance(tensor, TorchVariable):
RecursionError: maximum recursion depth exceeded
Trying to increase the max depth doesn't help.
The text was updated successfully, but these errors were encountered: