Skip to content

pyglet.gl.ContextException: Could not create GL context #352

@rgu01

Description

@rgu01

System Details

  1. Python version = 3.10.18
  2. Scenic version = 3.1.0a1
  3. Operating system = Ubuntu 22.04 LTS
  4. No simulator has been used yet

Detailed Description

Issue:
Cannot run the first demo: user01:~/Github/Scenic$ scenic examples/webots/vacuum/vacuum_simple.scenic Beginning scenario construction... Pruning scenario... Region containment constraint pruning attempted but could not compute percentage for <MeshSurfaceRegion> and <IntersectionRegion>. Pruned scenario in 0.004111 seconds. Scenario constructed in 0.76 seconds. Generated scene in 3 iterations, 0.1414 seconds. libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri) libGL error: failed to load driver: iris libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri) libGL error: failed to load driver: swrast Traceback (most recent call last; use -b to show Scenic internals): File "/home/rong/miniconda3/envs/scenic/bin/scenic", line 5, in <module> from scenic.__main__ import dummy File "/home/rong/Github/Scenic/src/scenic/__main__.py", line 287, in <module> scene.show(axes=args.axes) File "/home/rong/miniconda3/envs/scenic/lib/python3.10/site-packages/trimesh/scene/scene.py", line 1379, in show return SceneViewer(self, **kwargs) File "/home/rong/miniconda3/envs/scenic/lib/python3.10/site-packages/trimesh/viewer/windowed.py", line 179, in __init__ super().__init__( File "/home/rong/miniconda3/envs/scenic/lib/python3.10/site-packages/pyglet/window/xlib/__init__.py", line 171, in __init__ super(XlibWindow, self).__init__(*args, **kwargs) File "/home/rong/miniconda3/envs/scenic/lib/python3.10/site-packages/pyglet/window/__init__.py", line 615, in __init__ context = config.create_context(gl.current_context) File "/home/rong/miniconda3/envs/scenic/lib/python3.10/site-packages/pyglet/gl/xlib.py", line 204, in create_context return XlibContextARB(self, share) File "/home/rong/miniconda3/envs/scenic/lib/python3.10/site-packages/pyglet/gl/xlib.py", line 314, in __init__ super(XlibContext13, self).__init__(config, share) File "/home/rong/miniconda3/envs/scenic/lib/python3.10/site-packages/pyglet/gl/xlib.py", line 218, in __init__ raise gl.ContextException('Could not create GL context') pyglet.gl.ContextException: Could not create GL context

Steps To Reproduce

  1. Create a new conda environment.
  2. Download the repository and install Scenic via the command: python -m pip install -e .
  3. Successfully run the command to check the version of Scenic: scenic --version. Result: Scenic 3.1.0a1
  4. run scenic examples/webots/vacuum/vacuum_simple.scenic

Issue Submission Checklist

  • I am reporting an issue, not asking a question
  • I checked the open and closed issues, forum, etc. and have not found any solution
  • I have provided all necessary code, etc. to reproduce the issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: triageIssue needs to be assessedtype: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions