askforalfred / alfred

ALFRED - A Benchmark for Interpreting Grounded Instructions for Everyday Tasks
MIT License
352 stars 77 forks source link

TypeError: string indices must be integers #148

Closed Chenxi622 closed 4 months ago

Chenxi622 commented 4 months ago

hello,when I run the code. I encountered the following problems.

Traceback (most recent call last): File "/code/sprint1/sprint/test.py", line 51, in _thor_env = ThorEnv() File "/code/sprint1/sprint/alfred/env/thor_env.py", line 36, in init super().init(quality=quality) File "/anaconda3/envs/py39/lib/python3.9/site-packages/ai2thor/controller.py", line 487, in init scenes_in_build = self.scenes_in_build File "/anaconda3/envs/py39/lib/python3.9/site-packages/ai2thor/controller.py", line 564, in scenes_in_build event = self.step(action="GetScenesInBuild") File "/code/sprint1/sprint/alfred/env/thor_env.py", line 224, in step if "LookUp" in action["action"]: TypeError: string indices must be integers

How can I solve this problem? Thanks.