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

你好!阅读了您的论文后非常受到启发,在运行您的代码时创建环境这一步时报错解决不了,请问可以指导一下如何解决吗?’env = gym.make('fjsp-v0', case=[test_file], env_paras=env_test_paras, data_source='file')‘ #2

Open
TangHaooooo opened this issue Aug 17, 2022 · 3 comments

Comments

@TangHaooooo
Copy link

No description provided.

@TangHaooooo TangHaooooo changed the title 你好!阅读了您的论文后非常受到启发,在运行您的代码时创建环境这一步时报错解决不了,请问可以指导一下如何解决吗 你好!阅读了您的论文后非常受到启发,在运行您的代码时创建环境这一步时报错解决不了,请问可以指导一下如何解决吗?’env = gym.make('fjsp-v0', case=[test_file], env_paras=env_test_paras, data_source='file')‘ Aug 17, 2022
@TangHaooooo
Copy link
Author

TangHaooooo commented Aug 17, 2022

error:
Traceback (most recent call last):
File ".\fjsp-drl-main\fjsp-drl-main\test.py", line 203, in
main()
File ".\fjsp-drl-main\fjsp-drl-main\test.py", line 140, in main
env = gym.make('fjsp-v0', case=[test_file], env_paras=env_test_paras, data_source='file')
File "D:\anaconda3\envs\d2l\lib\site-packages\gym\envs\registration.py", line 601, in make
env = PassiveEnvChecker(env)
File "D:\anaconda3\envs\d2l\lib\site-packages\gym\wrappers\env_checker.py", line 22, in init
assert hasattr(
AssertionError: You must specify a action space. https://www.gymlibrary.ml/content/environment_creation/

@Goh-IE
Copy link

Goh-IE commented Sep 4, 2022

In my case, when I downgraded the version of gym to 0.18.0, this problem has been resolved!

@TangHaooooo
Copy link
Author

Thanks very much for your reply!

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