allenai / Holodeck

CVPR 2024: Language Guided Generation of 3D Embodied AI Environments.
https://yueyang1996.github.io/holodeck
Apache License 2.0
324 stars 30 forks source link

ModuleNotFoundError: No module named 'ai2thor.hooks' #7

Closed windandair closed 9 months ago

windandair commented 9 months ago

I try to run the project by

run  python main.py --query "a living room" --openai_api_key <>

but return:

Traceback (most recent call last):
  File "/home/huanghan/Holodeck/main.py", line 5, in <module>
    from modules.holodeck import Holodeck
  File "/home/huanghan/Holodeck/modules/holodeck.py", line 16, in <module>
    from modules.small_objects import SmallObjectGenerator
  File "/home/huanghan/Holodeck/modules/small_objects.py", line 9, in <module>
    from ai2thor.hooks.procedural_asset_hook import ProceduralAssetHookRunner
ModuleNotFoundError: No module named 'ai2thor.hooks'

now, conda list include package ai2thor and I try reinstall ai2thor and several version from latest 5.0.0 to 2.x.x ,still dont work. how can i fix the problem? thx for helping

YueYANG1996 commented 9 months ago

Install ai2thor using pip install --extra-index-url https://ai2thor-pypi.allenai.org ai2thor==0+6f165fdaf3cf2d03728f931f39261d14a67414d0

windandair commented 9 months ago

Install ai2thor using pip install --extra-index-url https://ai2thor-pypi.allenai.org ai2thor==0+6f165fdaf3cf2d03728f931f39261d14a67414d0

it works!!! thx a lot!