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

01_original.py not running #7

Open
dakshanand opened this issue Jun 26, 2018 · 1 comment
Open

01_original.py not running #7

dakshanand opened this issue Jun 26, 2018 · 1 comment

Comments

@dakshanand
Copy link

I tried to run the 1st code under dqn_speedup by running the command python 01_original.py and get the following error.
Traceback (most recent call last): File "01_original.py", line 32, in <module> exp_source = ptan.experience.ExperienceSourceFirstLast(env, agent, gamma=params['gamma'], steps_count=1) File "/home/daksh/anaconda2/envs/torch/lib/python2.7/site-packages/ptan/experience.py", line 168, in __init__ super(ExperienceSourceFirstLast, self).__init__(env, agent, steps_count+1, steps_delta, vectorized=vectorized) TypeError: super() argument 1 must be type, not classobj
Please look into it and let me know.

@dakshanand
Copy link
Author

I then tried to use the exact same versions of python modules as given in your requirements.txt and then get this error -
Traceback (most recent call last): File "01_original.py", line 23, in <module> env = ptan.common.wrappers.wrap_dqn(env) File "/home/daksh/anaconda2/lib/python2.7/site-packages/ptan/common/wrappers.py", line 235, in wrap_dqn env = ProcessFrame84(env) File "/home/daksh/anaconda2/lib/python2.7/site-packages/ptan/common/wrappers.py", line 133, in __init__ self.observation_space = spaces.Box(low=0, high=255, shape=(84, 84, 1), dtype=np.uint8) TypeError: __init__() got an unexpected keyword argument 'dtype'

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