Monty installation

I have a problem installing Monty. I’m not from a technical background, so a friend sent me some code to run on Google Colab.

The installation code ran successfully, but after running the first tutorial I still get errors. How can I fix this? Should I use a different development environment such as VS Code (which I’m not familiar with) if I’m on Windows?

I would appreciate any help. Thank you.

Hi @Ziad_Alenna ,

From Monty’s documentation, it doesn’t support Windows yet. But you can make it work.

I have Windows 11, and got Monty to work on my system. (With WSL)

It’s basically a virtual machine. But compared to normal virtual machines which are slow, WSL is embedded directly into the core Windows system - so it’s very fast. So you can run Ubuntu or any other Linux OS directly in your Windows 11.

Basically you will have the Windows OS interface, but you will have a command line that is running Ubuntu. And you will have a shared mounted folder between the Ubuntu system running in WSL and your Windows system. So you can put the code in this shared folder between systems, then you can use any code editor you like in Windows to edit the code. And you’ll run the code from the Ubuntu command line.

You’ll want WSL2 and Windows 11.

Even in this setup, you might run into some Monty errors saying things like missing GL or CUDA libraries, but I’ve found that it’s just a matter of installing the correct packages with sudo apt install to install the correct libraries to fix the errors.

3 Likes

I will try that. Thank you so much

1 Like

Hey @AdamLD, are you able to run benchmarks in your WSL instance? I tried a bunch of different suggestions from comments in various Habitat issues but I keep hitting this problem: [WSL2 Ubuntu18.04 Cuda11.1] unable to fine EGL device for CUDA device 0 · Issue #978 · facebookresearch/habitat-sim · GitHub

If you managed to run a benchmark, mind sharing your version numbers for Ubuntu and nvidia-smi? On my end I got Ubuntu 24.04.1 LTS with NVIDIA-SMI 575.64.03 Driver Version: 576.88 CUDA Version: 12.9. Maybe it’s just a version mismatch between my Windows and Linux drivers.

1 Like

@AgentRev Hi,

Yes, I got it to work. Here are some details.

$ nvidia-smi
| NVIDIA-SMI 575.64.03 Driver Version: 577.00 CUDA Version: 12.9 |


$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Thu_Nov_18_09:45:30_PST_2021
Cuda compilation tools, release 11.5, V11.5.119
Build cuda_11.5.r11.5/compiler.30672275_0


$ glxinfo | grep “OpenGL version”
OpenGL version string: 4.2 (Compatibility Profile) Mesa 23.2.1-1ubuntu3.1~22.04.3


$ ls /usr/lib/wsl/lib | grep cuda
libcuda.so
libcuda.so.1
libcuda.so.1.1
libcudadebugger.so.1

$ ls /usr/lib/x86_64-linux-gnu | grep cuda
cuda-gdb
libcuda.so
libcuda.so.1

One issue I’ve run into is that I had the .solibrary installed multiple times, and the python code was trying to load the wrong .so library.


sudo apt install libnvidia-gl-575
sudo apt install libnvidia-compute-575
sudo apt install nvidia-utils-575

The -575 version matches my driver from nvidia-smi


I also read the habitat docs from their github, and got that working:

habitat-viewer ~/tbp/data/scene_datasets/habitat-test-scenes/skokloster-castle.glb

Hope this helps.

2 Likes

Hello @AdamLD , I have installed WSL put still get the same error (No module named ‘tbp’) when I run the code of the first tutorial as in the Colab link in the first comment. So is the error from the code on the first tutorial itself? How to fix that?

Hi @Ziad_Alenna,

It’s difficult to tell what the problem is with so little data. No module named “tbp” sounds like the conda or pip commands were not run from the steps mentioned in the Monty documentation.

But I’m not sure.

Have you tried using a tool like ChatGPT to help you debug? If you copy & paste the errors you are getting I think you’ll find it very helpful in solving the problem.

That’s a much faster way to debug, compared to posting here where people might only have time to reply only once a day or a few days.

And if you get stuck, feel free to ask here.

1 Like

@Ziad_Alenna I wrote a tutorial if you still need help: Tutorial - Monty & Habitat-Sim on Windows via WSL & VS Code

3 Likes