on-policy icon indicating copy to clipboard operation
on-policy copied to clipboard

gfootball some error

Open wucuiling opened this issue 1 year ago • 2 comments

TypeError: 'MultiDiscrete' object does not support indexing。My football can run,but use run的sh,i get some errors。

wucuiling avatar Dec 30 '24 14:12 wucuiling

The fix for this is in the file Football_Env.py Change Line 60 from n=self.env.action_space[idx].n to n=self.env.action_space.nvec[idx]

yashrb24 avatar Aug 02 '25 15:08 yashrb24

哦哦,谢谢,我已经改好了,改完这个还是错误。是gym版本问题。20版本可用。试了好多版本都不行。但是我有一个足球场景不能跑,ERROR:absl:No module named 'gfootball.scenarios.academy_run_and_pass_with_keeper'

wucuiling avatar Aug 03 '25 06:08 wucuiling