You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey there I am trying to replicate the code and I've got a question! This is my first time opening an issue - if I forget something vital to include please tell me.
Installing the requirements with pip install -r requirements.txt and executing python policy/reinforce.py --exp_name MultiBandit and also python policy/reinforce.py --exp_name GridWorld has worked.
The problem I have encountered is in trying to execute 'python policy/reinforce.py --exp_name CartPole'.
I get this error log:
❯ python policy/reinforce.py --exp_name CartPole
/Users/maya199x/miniforge3/envs/testCode/lib/python3.10/site-packages/gym/envs/registration.py:555: UserWarning: WARN: The environment CartPole-v0 is out of date. You should consider upgrading to version `v1`.
logger.warn(
training: CartPole, config: (<TimeLimit<OrderEnforcing<PassiveEnvChecker<CartPoleEnv<CartPole-v0>>>>>, 200, 0.99, 0.001, [1000])
Traceback (most recent call last):
File "/Users/maya199x/Documents/PythonFiles/RobustOnPolicyData/policy/reinforce.py", line 301, in <module>
train()
File "/Users/maya199x/Documents/PythonFiles/RobustOnPolicyData/policy/reinforce.py", line 181, in train
env.seed(0)
File "/Users/maya199x/miniforge3/envs/testCode/lib/python3.10/site-packages/gym/core.py", line 242, in __getattr__
return getattr(self.env, name)
File "/Users/maya199x/miniforge3/envs/testCode/lib/python3.10/site-packages/gym/core.py", line 242, in __getattr__
return getattr(self.env, name)
File "/Users/maya199x/miniforge3/envs/testCode/lib/python3.10/site-packages/gym/core.py", line 242, in __getattr__
return getattr(self.env, name)
AttributeError: 'CartPoleEnv' object has no attribute 'seed'
Is there some issue with my installation? Or is it something else entirely? Any help would be much appreciated!
I am running the code on a macbook m1 2020, in a conda virtual environment with python version 3.10.6.
The text was updated successfully, but these errors were encountered:
Hey there I am trying to replicate the code and I've got a question! This is my first time opening an issue - if I forget something vital to include please tell me.
Installing the requirements with
pip install -r requirements.txt
and executingpython policy/reinforce.py --exp_name MultiBandit
and alsopython policy/reinforce.py --exp_name GridWorld
has worked.The problem I have encountered is in trying to execute 'python policy/reinforce.py --exp_name CartPole'.
I get this error log:
Is there some issue with my installation? Or is it something else entirely? Any help would be much appreciated!
I am running the code on a macbook m1 2020, in a conda virtual environment with python version 3.10.6.
The text was updated successfully, but these errors were encountered: