第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

運行 Python 模塊 gfootball 時出現(xiàn)錯誤消息

運行 Python 模塊 gfootball 時出現(xiàn)錯誤消息

Smart貓小萌 2023-10-06 16:29:47
我正在嘗試從Google Research Football Environment安裝 python 模塊 gfootball 。按照 Mac 網(wǎng)站上顯示的安裝說明進行操作(我使用的是 macOS High Sierra (10.13.6) 和 Xcode 9.4),我使用以下內容測試了設置:# test_gfootball.pyimport gfootball.env as football_envenv = football_env.create_environment(env_name="academy_empty_goal_close")env.reset()env.close()但我收到以下錯誤:File "test_gfootball.py", line 5, in <module>    env = football_env.create_environment(env_name="academy_empty_goal_close")  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/gfootball/env/__init__.py", line 182, in create_environment    scenario_config = config.Config({'level': env_name}).ScenarioConfig()  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/gfootball/env/config.py", line 98, in __init__    self.NewScenario()  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/gfootball/env/config.py", line 153, in NewScenario    self._scenario_cfg = scenario_builder.Scenario(self).ScenarioConfig()  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/gfootball/env/scenario_builder.py", line 62, in __init__    scenario.build_scenario(self)  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/gfootball/scenarios/academy_empty_goal_close.py", line 33, in build_scenario    builder.AddPlayer(-1.0, 0.0, e_PlayerRole_GK)  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/gfootball/env/scenario_builder.py", line 108, in AddPlayer    player = Player(x, y, role, lazy, controllable)TypeError: __init__() should return None, not 'NoneType'我已經(jīng)處理了錯誤消息中指定的文件,但據(jù)我所知,一切似乎都很好。我懷疑使用“env_name”的調用有問題 - 也許它找不到場景 - “academy_empty_goal_close.我還應該檢查什么才能發(fā)現(xiàn)問題?
查看完整描述

1 回答

?
互換的青春

TA貢獻1797條經(jīng)驗 獲得超6個贊

似乎是某些 Conda 環(huán)境的已知問題:https ://github.com/google-research/football/issues/156


查看完整回答
反對 回復 2023-10-06
  • 1 回答
  • 0 關注
  • 136 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網(wǎng)微信公眾號