Airsim issue while operating dqn_drone.py file #4867
Unanswered
undertheroc
asked this question in
Support Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi , I am getting a traceback error everytime I am trying to run the dqn_drone.py file inside the airsim folder .
I would like to know how to resolve it.
Let me share the issue below
############################################################
Traceback (most recent call last):
File "AirSim/PythonClient/reinforcement_learning/dqn_drone.py", line 65, in
model.learn(
File "/home/csir/.local/lib/python3.8/site-packages/stable_baselines3/dqn/dqn.py", line 267, in learn
return super().learn(
File "/home/csir/.local/lib/python3.8/site-packages/stable_baselines3/common/off_policy_algorithm.py", line 301, in learn
total_timesteps, callback = self._setup_learn(
File "/home/csir/.local/lib/python3.8/site-packages/stable_baselines3/common/off_policy_algorithm.py", line 284, in _setup_learn
return super()._setup_learn(
File "/home/csir/.local/lib/python3.8/site-packages/stable_baselines3/common/base_class.py", line 424, in _setup_learn
self._last_obs = self.env.reset() # type: ignore[assignment]
File "/home/csir/.local/lib/python3.8/site-packages/stable_baselines3/common/vec_env/vec_transpose.py", line 110, in reset
return self.transpose_observations(self.venv.reset())
File "/home/csir/.local/lib/python3.8/site-packages/stable_baselines3/common/vec_env/dummy_vec_env.py", line 76, in reset
obs, self.reset_infos[env_idx] = self.envs[env_idx].reset(seed=self._seeds[env_idx])
File "/home/csir/.local/lib/python3.8/site-packages/stable_baselines3/common/monitor.py", line 83, in reset
return self.env.reset(**kwargs)
File "/home/csir/.local/lib/python3.8/site-packages/gymnasium/wrappers/order_enforcing.py", line 61, in reset
return self.env.reset(**kwargs)
File "/home/csir/.local/lib/python3.8/site-packages/gymnasium/wrappers/env_checker.py", line 55, in reset
return env_reset_passive_checker(self.env, **kwargs)
File "/home/csir/.local/lib/python3.8/site-packages/gymnasium/utils/passive_env_checker.py", line 215, in env_reset_passive_checker
result = env.reset(**kwargs)
TypeError: reset() got an unexpected keyword argument 'seed'
Beta Was this translation helpful? Give feedback.
All reactions