qrl-dqn-gym
qrl-dqn-gym copied to clipboard
code error
when I run your code, I got this error:
E:\anaconda\envs\qrl\lib\site-packages\gym\envs\registration.py:593: UserWarning: WARN: The environment CartPole-v0 is out of date. You should consider upgrading to version v1
.
logger.warn(
E:\anaconda\envs\qrl\lib\site-packages\gym\core.py:317: DeprecationWarning: WARN: Initializing wrapper in old step API which returns one bool instead of two. It is recommended to set new_step_api=True
to use new step API. This will be the default behaviour in future.
deprecation(
E:\anaconda\envs\qrl\lib\site-packages\gym\wrappers\step_api_compatibility.py:39: DeprecationWarning: WARN: Initializing environment in old step API which returns one bool instead of two. It is recommended to set new_step_api=True
to use new step API. This will be the default behaviour in future.
deprecation(
E:\anaconda\envs\qrl\lib\site-packages\gym\core.py:256: DeprecationWarning: WARN: Function env.seed(seed)
is marked as deprecated and will be removed in the future. Please use env.reset(seed=seed)
instead.
deprecation(
E:\anaconda\envs\qrl\lib\site-packages\gym\utils\passive_env_checker.py:241: DeprecationWarning: np.bool8
is a deprecated alias for np.bool_
. (Deprecated NumPy 1.24)
if not isinstance(terminated, (bool, np.bool8)):
DQN: 0%| | 0/5000 [21:09<?, ?episode/s]
Traceback (most recent call last):
File "F:/bishe/code/qrl-dqn-gym/cart_pole/train.py", line 168, in
Process finished with exit code -1073741510 (0xC000013A: interrupted by Ctrl+C)
How can I deal with it?