Experimental UV/pip-compatible wheel for habitat-sim (WSL2/Linux) - For TBP Monty
Project description
habitat-sim Wheels for TBP Monty
Experimental pip/UV-compatible wheels for habitat-sim, built specifically for the Thousand Brains Project (TBP) Monty sensorimotor learning system.
⚠️ Unofficial community build - Not affiliated with Meta/FAIR. For production use, see official habitat-sim.
What is This?
TBP Monty is a sensorimotor learning system that learns through active sensing (like your brain!). It uses habitat-sim for realistic 3D environments in object recognition experiments.
Problem: Official habitat-sim requires conda, incompatible with modern UV/pip workflows.
Solution: Standard Python wheels on PyPI - install with pip or uv, no conda needed.
Installation
# With pip
pip install habitat-sim-uv-wheels-experimental
# With uv (recommended - much faster!)
uv pip install habitat-sim-uv-wheels-experimental
# Import as usual
python -c "import habitat_sim; print(habitat_sim.__version__)"
For TBP Monty Users
# Clone TBP Monty
git clone https://github.com/thousandbrainsproject/tbp.monty.git
cd tbp.monty
# Install everything with UV (includes habitat-sim)
uv sync --extra dev
# Run an experiment
uv run monty -e surf_agent_1lm_10distobj_base
See full TBP installation guide.
WSL2 GPU Support
For hardware-accelerated rendering on WSL2:
# Enable D3D12 backend (NVIDIA RTX recommended)
export HSIM_DISABLE_CUDA_DEVICE=1
export GALLIUM_DRIVER=d3d12
sudo chmod 666 /dev/dri/renderD128
# Run with GPU
HSIM_DISABLE_CUDA_DEVICE=1 GALLIUM_DRIVER=d3d12 python your_script.py
Platform Support
- Linux: ✅ manylinux2014+ (Ubuntu 20.04+, Debian 11+, etc.)
- WSL2: ✅ With D3D12 GPU support
- macOS: ❌ Not yet available
- Windows: ❌ Use WSL2
Python Versions:
- Python 3.8: ✅ Available
- Python 3.9+: 🚧 Coming soon (request here)
What's Different from Official?
This build:
- ✅ Available on PyPI (no conda required)
- ✅ WSL2 GPU support via
HSIM_DISABLE_CUDA_DEVICE=1 - ✅ Tested with TBP Monty experiments
- ✅ Same code as official v0.2.2 (only packaging differs)
Quick Example
import habitat_sim
# Load a 3D scene
backend_cfg = habitat_sim.SimulatorConfiguration()
backend_cfg.scene_id = "path/to/scene.glb"
# Create agent configuration
agent_cfg = habitat_sim.agent.AgentConfiguration()
# Initialize simulator
cfg = habitat_sim.Configuration(backend_cfg, [agent_cfg])
sim = habitat_sim.Simulator(cfg)
# Get an observation
obs = sim.get_sensor_observations()
rgb = obs["color_sensor"]
print(f"Image shape: {rgb.shape}")
For TBP Monty examples, see TBP documentation.
Troubleshooting
Import Error after Install
Problem: pip install habitat-sim-uv-wheels-experimental succeeded but import habitat_sim fails.
Solution: The PyPI package name is different from the import name (this is normal). Just import habitat_sim.
Rendering Errors on WSL2
Problem: Crashes or black screens when rendering.
Solution: Set WSL2 environment variables (see "WSL2 GPU Support" above).
Missing Magnum Module
Problem: ModuleNotFoundError: No module named 'magnum'
Solution: Magnum should be installed automatically. Try reinstalling:
pip install --force-reinstall habitat-sim-uv-wheels-experimental
Links
TBP Monty:
- Documentation: https://thousandbrainsproject.readme.io/
- Repository: https://github.com/thousandbrainsproject/tbp.monty
- Community: https://thousandbrains.discourse.group/
This Fork:
- Repository: https://github.com/killerapp/habitat-sim
- Build Guide: UV_WSL2_BUILD.md
- TBP Instructions: README_TBP_USERS.md
Original habitat-sim:
- Repository: https://github.com/facebookresearch/habitat-sim
- Official Docs: https://aihabitat.org/docs/habitat-sim/
Contributing
- TBP Monty issues: https://github.com/thousandbrainsproject/tbp.monty/issues
- Wheel build issues: https://github.com/killerapp/habitat-sim/issues
- Official habitat-sim: https://github.com/facebookresearch/habitat-sim/issues
License
MIT License - Same as official habitat-sim.
Credits: All credit for habitat-sim goes to the original FAIR team at Meta AI. This is just alternative packaging.
Built for the Thousand Brains Project community 🧠
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file habitat_sim_uv_wheels_experimental-0.2.2a2-cp313-cp313-manylinux_2_31_x86_64.whl.
File metadata
- Download URL: habitat_sim_uv_wheels_experimental-0.2.2a2-cp313-cp313-manylinux_2_31_x86_64.whl
- Upload date:
- Size: 62.7 MB
- Tags: CPython 3.13, manylinux: glibc 2.31+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4923b1f53c0359d3bdf926b7ff984de9672d9d15203228edaf99b9d313d752d
|
|
| MD5 |
f5f14ce531f0380ca5652b973a2e1220
|
|
| BLAKE2b-256 |
c7bbbb37921c39f6962ce6fa72179b840343c22c5949f1659000806646fe5690
|