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

RuntimeError: This class cannot be instantiated from Python #385

Open
ddaisy66 opened this issue Aug 1, 2024 · 0 comments
Open

RuntimeError: This class cannot be instantiated from Python #385

ddaisy66 opened this issue Aug 1, 2024 · 0 comments

Comments

@ddaisy66
Copy link

ddaisy66 commented Aug 1, 2024

When I run it, I get this error:

(new) python -m gfootball.play_game --action_set=full
Traceback (most recent call last):
File "/ailab/user/zhangyang2/.conda/envs/new/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/ailab/user/zhangyang2/.conda/envs/new/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/ailab/user/zhangyang2/.conda/envs/new/lib/python3.7/site-packages/gfootball/play_game.py", line 68, in
app.run(main)
File "/ailab/user/zhangyang2/.conda/envs/new/lib/python3.7/site-packages/absl/app.py", line 308, in run
_run_main(main, args)
File "/ailab/user/zhangyang2/.conda/envs/new/lib/python3.7/site-packages/absl/app.py", line 254, in _run_main
sys.exit(main(argv))
File "/ailab/user/zhangyang2/.conda/envs/new/lib/python3.7/site-packages/gfootball/play_game.py", line 50, in main
'render': True
File "/ailab/user/zhangyang2/.conda/envs/new/lib/python3.7/site-packages/gfootball/env/config.py", line 98, in init
self.NewScenario()
File "/ailab/user/zhangyang2/.conda/envs/new/lib/python3.7/site-packages/gfootball/env/config.py", line 168, in NewScenario
self._scenario_cfg = scenario_builder.Scenario(self).ScenarioConfig()
File "/ailab/user/zhangyang2/.conda/envs/new/lib/python3.7/site-packages/gfootball/env/scenario_builder.py", line 52, in init
self._scenario_cfg = libgame.ScenarioConfig()
RuntimeError: This class cannot be instantiated from Python

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

1 participant