habitat-sim
habitat-sim copied to clipboard
No attribuate in running audio examples
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
- 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
- OS (e.g., Linux): Linux
- How you installed PyTorch (
conda
,pip
, source): conda - Build command you used (if compiling from source):
- Python version: 3.9
- GPU models and configuration: A100
- CUDA version: 12.3
- PIP/conda dependencies packages versions: pip 23.3.1; conda 24.1.2
- Any other relevant information:
Build from source with audio will solve this problem.