Replies: 1 comment 3 replies
-
Hi, I've noticed that the script throws an error on the second run, but the issue is resolved by opening a new console. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I tried to run 'safety-gymnasium/examples/multi_goal.py' and encountered an error. After checking, I found that safety_gymnasium.tasks has been installed under the path 'C:\Users\nijin\safety-gymnasium\safety_gymnasium'.
How can I debug this issue?
Traceback (most recent call last):
File
~\anaconda3\envs\s\afyGYM\lib\site-packages\spyder_kernels\py3compat.py:356 in compat_exec exec(code, globals, locals) File
c:\users\nijin\desktop\desktop\safegym\cus_env_test\multienvtest.py:44 in run_randomenv = safety_gymnasium.make(env_name, render_mode='human')
File
c:\users\nijin\desktop\desktop\safegym\cus_env_test\multienv.py:15 in run_random env = safety_gymnasium.make(env_name, render_mode='human') File
\safety-gymnasium\safety_gymnasium\utils\registration.py:126 in make\anaconda3\envs\afyGYM\lib\importlib__init__.py:127 in import_moduleenv_creator = load_env_creator(env_spec.entry_point)
File
~\anaconda3\envs\afyGYM\lib\site-packages\gymnasium\envs\registration.py:553 in load_env_creator mod = importlib.import_module(mod_name) File
return _bootstrap._gcd_import(name[level:], package, level)
File
<frozen importlib._bootstrap>:1014 in _gcd_import File
:991 in _find_and_loadFile
<frozen importlib._bootstrap>:971 in _find_and_load_unlocked File
:914 in _find_specFile
<frozen importlib._bootstrap_external>:1407 in find_spec File
:1373 in _get_specFile
<frozen importlib._bootstrap_external>:1239 in iter File
:1227 in _recalculateFile `:1223 in _get_parent_path
KeyError: 'safety_gymnasium.tasks'
Beta Was this translation helpful? Give feedback.
All reactions