-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenGL.error.NullFunctionError: Attempt to call an undefined function OSMesaCreateContextExt, check for bool(OSMesaCreateContextExt) before calling #1
Comments
Hello,
This issue may be caused by openGL not being installed properly.
The MuJoCo Python bindings support three different OpenGL rendering backends: EGL (headless, hardware-accelerated), GLFW (windowed, hardware-accelerated), and OSMesa (purely software-based). At least one of these three backends must be available in order render through dm_control.
GLEW: http://glew.sourceforge.net/ <http://glew.sourceforge.net/>
The OpenGL Extension Wrangler Library (GLEW) is a cross-platform open-source C/C++ extension loading library.
Mesa: https://anaconda.org/conda-forge/mesalib <https://anaconda.org/conda-forge/mesalib>
The Mesa project began as an open-source implementation of the OpenGL <https://www.opengl.org/> specification - a system for rendering interactive 3D graphics.
Mesa is an open-source implementation of the OpenGL specification - a system for rendering interactive 3D graphics.
GLFW
GLFW is an Open Source, multi-platform library for OpenGL, OpenGL ES and Vulkan development on the desktop. It provides a simple API for creating windows, contexts and surfaces, receiving input and events.
Here are installation instructions that may be helpful
openai/mujoco-py#627 (comment) <openai/mujoco-py#627 (comment)>
Best regards
… On Mar 1, 2023, at 10:20, dilshan-dev ***@***.***> wrote:
Any help that can be offered is much appreciated
|
Hello, I then came back to this repository and in the conda env I separately installed all three backends with the use of your reply, and when I run the experiment I am faced with the following error.
I faced this error before as well and I sidestepped it with the instructions given in MPI-IS/mesh#23 (comment), which then lead to the error I first mentioned. When I do the same now, I am still faced with the initial error. Thank you! |
Hello,
Please note this issue:
File "/home/acar/Documents/RMBench-2022/00_DrQv2/drqv2_train.py", line 24, in
import dmc
File "/home/acar/Documents/RMBench-2022/00_DrQv2/../dmc.py", line 11, in
from dm_control import manipulation, suite
This seems to be a problem with dm_control. But you mentioned that dm_control works fine. I have no idea with this.
Please make sure that dm_control is running properly and that the openGL related packages are installed.
Best regards.
… On Mar 2, 2023, at 13:31, dilshan-dev ***@***.***> wrote:
dm_control
|
Hello, Thank you for your reply. I was able to proceed without errors and run the experiments by using GLFW instead of OSMesa (setting I also had to change the Many thanks for your prompt replies and for making this work available. Cheers. |
You're welcome, I'm glad to be of help.
Best regards.
… On Mar 6, 2023, at 08:28, dilshan-dev ***@***.***> wrote:
Hello,
Thank you for your reply.
I was able to proceed without errors and run the experiments by using GLFW instead of OSMesa (setting os.environ['MUJOCO_GL'] = 'glfw' instead of os.environ['MUJOCO_GL'] = 'osmesa' in the [ALGORITHM_NAME].py file).
I also had to change the gpu_id: to 0 (in my case) in config.yaml file under /[ALGORITHM_FOLDER]/cfgs/.
Many thanks for your prompt replies and for making this work available.
Cheers.
—
Reply to this email directly, view it on GitHub <#1 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AQY4HQTC6KVZT5C4UNBQVRLW2UVTZANCNFSM6AAAAAAVLO4RVM>.
You are receiving this because you commented.
|
Hello,
I tried to run the experiment using
python vpg_train.py task=reach_site
and I get the following error.I tried various solutions related to PyOpenGL and osmesa but I couldn't resolve it. I am using Ubuntu 22.04 and I created a conda env with the packages. The same error is present when running with other algorithms such as SAC and DrQv2.
Any help that can be offered is much appreciated.
Thank you!
The text was updated successfully, but these errors were encountered: