-
Notifications
You must be signed in to change notification settings - Fork 34
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
gymnasium_basic_usage.py | Problem running it #11
Comments
Same Issue: Traceback (most recent call last): |
Thanks for bringing this to my attention. @valgau-asu or @RoboDD can you tell me what versions of gymnasium you're running? |
Hi @spencerfolk, Thanks for your quick reply. My version of gymnasium is 1.0.0.
|
Ok I was able to replicate the error by upgrading to As a band-aid solution I specified a compatible version of It's older but still has the main functionality offered by the I'm going to keep this issue open because I'd like to one day make the environment compatible with future versions of |
My temporal solution to use
# Reset the environment
# observation, info = env.reset(initial_state='random', options={'pos_bound': 2, 'vel_bound': 0})
observation, info = env.reset(options={'initial_state': 'random', 'pos_bound': 2, 'vel_bound': 1})
def reset(self, seed=None, options={'initial_state':'random', 'pos_bound': 2, 'vel_bound': 0}):
...............
#! add two lines to force assign parameter after super().reset(seed=seed)
options={'initial_state':'random', 'pos_bound': 2, 'vel_bound': 0}
initial_state = 'random'
............... Then, I can run the given PPO train and eval scripts. It seems the |
Thank you for the answer! It worked on my end. |
Hi, I recently installed RotorPy (Running on Windows | Python 3.11.9) and wanted to use the RL/ML features you propose.
I tried to run "gymnasium_basic_usage.py" and got the following error:
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
PS D:\Documents\ASU\RotorPy\rotorpy\examples> python .\gymnasium_basic_usage.py
Traceback (most recent call last):
File "D:\Documents\ASU\RotorPy\rotorpy\examples\gymnasium_basic_usage.py", line 51, in
observation, info = env.reset(initial_state='random')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: OrderEnforcing.reset() got an unexpected keyword argument 'initial_state'
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Do you have any idea from where this could come from?
Thanks,
Val
The text was updated successfully, but these errors were encountered: