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

I met some problems with compiler_gym.bin.service, and I couldn't start a compiler_gym shell #818

Open
Rain0802 opened this issue Aug 29, 2023 · 0 comments
Labels
Question Further information is requested

Comments

@Rain0802
Copy link

$ python -m compiler_gym.bin.service --ls_env this command could be run
but when I run this command python -m compiler_gym.bin.service --env=llvm-v0, such errors are reported, and I couldn't enter a compiler_gym shell.

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/rain/anaconda3/lib/python3.11/site-packages/compiler_gym/bin/service.py", line 240, in <module>
    app.run(main)
  File "/home/rain/anaconda3/lib/python3.11/site-packages/absl/app.py", line 308, in run
    _run_main(main, args)
  File "/home/rain/anaconda3/lib/python3.11/site-packages/absl/app.py", line 254, in _run_main
    sys.exit(main(argv))
             ^^^^^^^^^^
  File "/home/rain/anaconda3/lib/python3.11/site-packages/compiler_gym/bin/service.py", line 232, in main
    env = env_from_flags()
          ^^^^^^^^^^^^^^^^
  File "/home/rain/anaconda3/lib/python3.11/site-packages/compiler_gym/util/flags/env_from_flags.py", line 115, in env_from_flags
    env = gym.make(
          ^^^^^^^^^
  File "/home/rain/anaconda3/lib/python3.11/site-packages/gym/envs/registration.py", line 669, in make
    env = PassiveEnvChecker(env)
          ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/rain/anaconda3/lib/python3.11/site-packages/gym/wrappers/env_checker.py", line 27, in __init__
    check_observation_space(env.observation_space)
  File "/home/rain/anaconda3/lib/python3.11/site-packages/gym/utils/passive_env_checker.py", line 74, in check_space
    raise AssertionError(
AssertionError: observation space does not inherit from `gym.spaces.Space`, actual type: <class 'NoneType'>
@Rain0802 Rain0802 added the Question Further information is requested label Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant