facebookresearch / habitat-sim

A flexible, high-performance 3D simulator for Embodied AI research.
https://aihabitat.org/
MIT License
2.48k stars 406 forks source link

No attribuate in running audio examples #2340

Open circleTreeF opened 4 months ago

circleTreeF commented 4 months ago

Habitat-Sim version

v0.3.0 main

Habitat is under active development, and we advise users to restrict themselves to stable releases. Are you using the latest release version of Habitat-Sim? The bug you are about to report may already be fixed in the latest version.

Main branch contains 'bleeding edge' code, but we do appreciate bug reports for it!

🐛 Bug

Some APIs and attributes cannot be found and lead to no attribute error. The execution produces the following error:

Traceback (most recent call last):
  File "/weka/scratch/tshu2/yfang52/habitat-sim/examples/tutorials/audio_agent.py", line 99, in <module>
    main()
  File "/weka/scratch/tshu2/yfang52/habitat-sim/examples/tutorials/audio_agent.py", line 38, in main
    acoustics_config.enableMaterials = True
AttributeError: 'habitat_sim._ext.habitat_sim_bindings.RLRAudioPropagationConfiguration' object has no attribute 'enableMaterials'

Even removing this line of code, the additional error will be produced,

Traceback (most recent call last):
  File "/weka/scratch/tshu2/yfang52/habitat-sim/examples/tutorials/audio_agent.py", line 99, in <module>
    main()
  File "/weka/scratch/tshu2/yfang52/habitat-sim/examples/tutorials/audio_agent.py", line 43, in main
    habitat_sim.sensor.RLRAudioPropagationChannelLayoutType.Binaural
AttributeError: 'NoneType' object has no attribute 'Binaural'

Steps to Reproduce

Steps to reproduce the behavior:

Under the command line on headless machines

  1. Assuming under the project root directory, run audio simulation in python: python examples/tutorials/audio_agent.py

    Please note that without a minimal working example to reproduce the bug, we may not be able to help you.

Expected behavior

Additional context

System Info

Please copy and paste the output from the environment collection script (or fill out the checklist below manually).

You can run the script with:

# For security purposes, please check the contents of collect_env.py before running it.
python src_python/habitat_sim/utils/collect_env.py
ztmo520 commented 1 month ago

Build from source with audio will solve this problem.