-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
AttributeError: 'EnvSpec' object has no attribute '_entry_point' #977
Comments
You need to provide more information for us to be able to reproduce your error. How did you install the package? What is the exact code version you ran? What is the exact command you ran? |
I faced the same problem a few days ago. It seems to be an error coming from the gym package. As a temporary fix, until the issue is resolved, you could try to revert your gym to the commit "cc6ff414aefe669cc8d221a482ebe211816f60fe" URL to commit |
I found that if your gym is not the latest 0.14 version, there should be env._entry_point instead of env.entry_point . The reason is here--openai/gym@dc91f43#diff-3dff15d44236dd4f0f823a6ddb7e8c9b . You could modify two 'env.entry_point' in baselines/run.py back into 'env._entry_point' to solve this problem. By the way, I guess update gym to the latest version may also help. |
I am getting the error too:
Not quite sure what the |
pip install --upgrade gym |
Please post the versions of baselines and version of gym that you are using. |
On the tf2 branch, gym is locked into earlier gym version. I updated gym to 0.15.4 and received this error instead:
|
I corrected the above error by using #1051 as an exmple and replaced instances of FlattenDictWrapper with FlattenObservation. |
Come on, why on earth openai gym doesn't follow any (semantic) versioning scheme and so many incompatible changes with minor releases? 0.15.4 -> 0.15.6 has changed and broke so many APIs including |
I found that install 0.14 of gym solved this issue:
|
/home/yxh/anaconda3/envs/tensorenv/lib/python3.6/site-packages/baselines/baselines/run.py
2 places:env._entry_point.split(':')[0].split('.')[-1] change to env.entry_point.split(':')[0].split('.')[-1]
The text was updated successfully, but these errors were encountered: