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

Not able to run any baseline example due to missing entry point #982

Closed
Ujwal2910 opened this issue Aug 9, 2019 · 4 comments
Closed

Not able to run any baseline example due to missing entry point #982

Ujwal2910 opened this issue Aug 9, 2019 · 4 comments

Comments

@Ujwal2910
Copy link

Ujwal2910 commented Aug 9, 2019

while running this-

command - python3 -m baselines.run --alg=ppo2 --env=PongNoFrameskip-v4 --num_timesteps=2e7
Traceback (most recent call last):
File "/home/ujwal/anaconda3/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/home/ujwal/anaconda3/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)

in run.py, line 35, in
env_type = env.entry_point.split(':')[0].split('.')[-1]
AttributeError: 'EnvSpec' object has no attribute 'entry_point'

@DanielTakeshi
Copy link

Looks like #977 has the same error

@Ujwal2910
Copy link
Author

I was able to resolve this issue by changing-
env_type = env.entry_point.split(':')[0].split('.')[-1]
to
env_type = env._entry_point.split(':')[0].split('.')[-1]
Basically its not able to recognize the change which was recently made in the repository by replacing _entry_point to just entry_point.
I am also running the latest GYM version so not an issue in that.

@christopherhesse
Copy link
Contributor

What version of baselines are you using?

@christopherhesse
Copy link
Contributor

duplicate of #977

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

3 participants