facebookresearch / facebookresearch/boxer

OSError: libGL.so: cannot open shared object file: No such file or directory

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
646
Forks
71
PR merge metrics
No merged PRs in 30d

Description

For the above error, had to install the mesa drivers on Ubuntu 24.04

```bash
sudo apt update
sudo apt install libgl1 libegl1 libgl1-mesa-dev libegl1-mesa-dev
```

```text
python view_prompt.py --input nym10_gen1
==> loading AriaLoader with the following settings:
camera: rgb
with_img: True
with_traj: True
with_sdp: True
with_obb: False
use_description: False
pinhole: False
resize: None
unrotate: False
skip_n: 1
max_n: 1000000
start_n: 0
start_ts: None
is_adt: auto (auto-detected if 'auto')
restrict_range: True
==> SST loader using vrs file '/home/prince/boxer/sample_data/nym10_gen1/main.vrs' and local seq '/home/prince/boxy_data/nym10_gen1'
==> Device: Aria Gen 1 (type=ariane)
==> total number of frames in AriaLoader: 292
==> number of frames in AriaLoader: 292
==> loading trajectory
trajectory estimated hz is 1001
==> Gravity vector: (-0.01, 0.00, -9.81), magnitude: 9.81
==> loading points
Loading semi-dense point global properties
==> Writing to /home/prince/boxer/sample_data/nym10_gen1/cache_global_ds0.0500_ids0.00500.pkl
Done loading global, took 2.60 secs
Loading observations
==> Writing to /home/prince/boxer/sample_data/nym10_gen1/cache_obs_ds0.0500_ids0.00500.pkl
Done loading obs, took 2.65 secs
==> restrict_range: adjusted frame range from 292 to 291 frames (start=1, end=291)

==> Modality Time Ranges:
0.0s 30.0s
img [10Hz] |================================================ | 0.0 - 29.1s
traj [202Hz] |==================================================| 0.0 - 30.0s
sdp [10Hz] |==================================================| 0.0 - 30.0s
sampled |[-----------------------------------------------] | 0.1 - 29.1s

Loading checkpoint from "/home/prince/boxer/ckpts/boxernet_hw960in4x6d768-wssxpf9p.ckpt"
==> Loaded checkpoint: 344/344 tensors, 99.98M/99.98M params (100.0%)
Loaded OWLv2 on cuda with 1 text prompts, precision=bfloat16
W0410 08:26:51.535000 21650 boxer/lib/python3.12/site-packages/torch/_inductor/utils.py:1731] [0/0] Not enough SMs to use max_autotune_gemm mode
2026-04-10 08:26:58,871 - moderngl_window - INFO - Attempting to load window class: moderngl_window.context.pyglet.Window
Traceback (most recent call last):
File "/home/prince/boxer/boxer/lib/python3.12/site-packages/_moderngl.py", line 214, in __init__
lib = ctypes.CDLL("libEGL.so")
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/ctypes/__init__.py", line 379, in __init__
self._handle = _dlopen(self._name, mode)
^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: libEGL.so: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/prince/boxer/view_prompt.py", line 1753, in
main()
File "/home/prince/boxer/view_prompt.py", line 1749, in main
launch_viewer(PromptViewer)
File "/home/prince/boxer/utils/viewer_3d.py", line 870, in launch_viewer
mglw.run_window_config(ViewerClass)
File "/home/prince/boxer/boxer/lib/python3.12/site-packages/moderngl_window/__init__.py", line 200, in run_window_config
config = create_window_config_instance(config_cls, timer=timer, args=args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/prince/boxer/boxer/lib/python3.12/site-packages/moderngl_window/__init__.py", line 235, in create_window_config_instance
window = window_cls(
^^^^^^^^^^^
File "/home/prince/boxer/boxer/lib/python3.12/site-packages/moderngl_window/context/pyglet/window.py", line 86, in __init__
self.init_mgl_context()
File "/home/prince/boxer/boxer/lib/python3.12/site-packages/moderngl_window/context/base/window.py", line 197, in init_mgl_context
ctx = moderngl.create_context(require=self.gl_version_code)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/prince/boxer/boxer/lib/python3.12/site-packages/moderngl/__init__.py", line 2242, in create_context
ctx = get_context()
^^^^^^^^^^^^^
File "/home/prince/boxer/boxer/lib/python3.12/site-packages/moderngl/__init__.py", line 2299, in get_context
init_context()
File "/home/prince/boxer/boxer/lib/python3.12/site-packages/moderngl/__init__.py", line 2281, in init_context
loader = DefaultLoader()
^^^^^^^^^^^^^^^
File "/home/prince/boxer/boxer/lib/python3.12/site-packages/_moderngl.py", line 223, in __init__
lib = ctypes.CDLL("libGL.so")
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/ctypes/__init__.py", line 379, in __init__
self._handle = _dlopen(self._name, mode)
^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: libGL.so: cannot open shared object file: No such file or directory

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.