Skip to content
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

gym.error.NameNotFound: Environment highway-hetero-H doesn't exist. #6

Open
kunhongwu opened this issue Oct 25, 2024 · 4 comments
Open

Comments

@kunhongwu
Copy link

gym.error.NameNotFound: Environment highway-hetero-H doesn't exist.

@wuxiyang1996
Copy link
Owner

One easy way to solve this: Install the highway-env as it is, then cover the installed highway-env file with the heterogeneous highway-env package here:
https://github.com/wuxiyang1996/Heterogeneous_Highway_Env

@kunhongwu
Copy link
Author

屏幕截图 2024-10-28 163026
I'm sorry, but I don't quite understand what you mean. I tried to follow my understanding, but it still doesn't work. I'm new to Highway and not very familiar with it, so I hope the author can provide further guidance. Thank you!
image

@wuxiyang1996
Copy link
Owner

Try to add the following lines to run.py

from gym.envs.registration import register
register(
id='highway-hetero-v0',
entry_point='highway_env.envs:HighwayEnvHetero',
)

register(
id='highway-hetero-H-v0',
entry_point='highway_env.envs:HighwayEnvHetero_H',
)

See if it works

@wuxiyang1996
Copy link
Owner

If it still does not work, try to install highway-env first and download the hetero-highway packages from GitHub. Cover the initial highway-env file located at the Anaconda with the downloaded hetero-highway files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants