-
Notifications
You must be signed in to change notification settings - Fork 809
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
Linux Viewer Error: GLEW initalization error: Missing GL version #44
Comments
Yes it is! I am getting the following error:
Tried each and every possible GUI/OpenGL library update, with and without Anaconda on python 3.5.2. Seems there is some problem with Context of glfw or Initialization. |
I have been trying to catch up with the cause of the error. I found that it's in the initialization of base class Another thing, I could not understand was what is the need of such kind of "building up and use" kind of structure, if ultimately we can't see the internal flow and debug. (Or maybe I am not experienced enough to know that we can!). Please let me know what can be the possible problems and why did you prefer making extensions over just modules, so that I can also help in rectifying the problem. Thanks |
@hmishra2250 @jonasschneider Is there any update on how to get the Linux viewer GUI working? Or is there a recommended hack or work-around? |
+1 |
An ugly workaround is to write your own viewer @iretiayo
|
Keep in mind that this is really slow compared to the native mujoco visualizer |
+1 |
2 similar comments
+1 |
+1 |
The same error. |
Looks like it hasn't been fixed for almost 4 months. Are there any estimates when the bug can be fixed? |
I have some insight into this one. It looks like I am getting some help from Emo on the MuJoCo forum. If I could also get some help from the |
Agrre, looks like it is broken for 1.5. As I've installed older mujoco-py version for mujoco 1.3.1 and it worked out of the box. |
@lobachevzky so you mean you didn't get the error with mujoco-py if you build mujoco with libglew? It's weird because I can compile and run the c++ samples of mujoco 1.5 without getting an error, but mujoco-py crashes anyways. |
Yes exactly. In fact, that is how I was able to diagnose the problem. So in the makefile that comes with mujoco, the instruction for
This works fine for me. But if I replace the above with
and try to run basic:
|
It looks like this is related to making sure we both link and load the correct GL library. Neither GLEW or GLFW are the underlying GL library, though What happens when you link/load with whatever your current system libGL is? |
What exactly is my current system libGL? It looks like the only libraries related to OpenGL on my
|
system gl should be |
|
I'll try to get a linux desktop with nvidia drivers to test on. Is this happening for folks on machines with other GL drivers (e.g. mesa), too? |
This error still occurs and unfortunately none of the suggested fixes seem to work for me. |
I have the same issue. Can we please get an update on this? This issue makes mujoco-py all but unusable. Version 131 still works for me, so if anyone needs a workaround downgrading seems to be an option. |
+1 |
You downgrade mujoco-pay to the 0.5 range and download mujoco131 from the site and install it like you installed mujock150 |
Mujoco-py* |
@SanderDalm so the older mujoco doesnt seem to have load_model |
@arunavanag591 This setup is currently working for me. Also, OpenAi's roboschool is a cool and free alternative to mujoco. |
The changes from #145 didn't fix the issue for me. I followed the advice from @lobachevzky, but I replaced |
Hi I understood where the problem is, ie I analysed the flow of each class and the bugs seem to be into MyViewerBasic.py that it call builder.py. cymj.cpython-36m-x86_64-linux-gnu.so is generated from the installation of mujoco_py I try to solve the problem and keep you informed Nicolo |
@jonasschneider @machinaut : Deepmind control suite seems to have solved the problem using a workaround for now, maybe that could be applied to mujoco-py as well: |
We need to do this because libmujoco150.so doesn't have a dynamic dependency on these libraries. PiperOrigin-RevId: 180846845
I have use to solve this question: https://blog.csdn.net/gsww404/article/details/80636676 |
Adding I tested on Python 3.6 (Anaconda) with the following configurations -
|
In case anyone receives this error:
|
@WarrG3X Thanks so much for this. Didn't need the nvidia one, just
When running a simulation my second monitor becomes unresponsive but works again when the process quits. |
Thank you for pointing out a solution to the error @jperl . I'm getting the same
I also tried the following with no luck:
|
Even with the LD_PRELOAD fix, I can't call self.sim.render() without getting this error |
@jonasschneider @glennpow @welinder @alfa07 @colah My source package: https://github.com/RussellM2020/GMPS.git System I already have Output:
|
add |
If you still have some issues try this out (for Ubuntu, I use Ubuntu 18.04) Step 2 flag to quickly install the packages and dependencies. Got these from : https://zoomadmin.com/HowToInstall/UbuntuPackage/libglew-dev Step 3: This worked for me. Hope it works for you. |
ok, i run sudo apt-get install -y libglew-dev |
I meet the same problem. But I am going to run my code on a server, which I have no sudo access to. Thus may I ask how can I solve this problem without sudo access? Thanks!
|
No description provided.
The text was updated successfully, but these errors were encountered: