MPI-IS / mesh

MPI-IS Mesh Processing Library
Other
663 stars 152 forks source link

Issue with pyopengl library for mesh #23

Closed WisarutBholsithi closed 4 years ago

WisarutBholsithi commented 4 years ago

Dear developers, I'm trying to use mesh processing libraries (Perceiving Systems Mesh Package) as a part of TF_FLAME. However, when I tried to run the command line "make tests", it keeps showing error as

AttributeError: 'NoneType' object has no attribute 'glGetError'

Something must have gone wrong with pyopengl library so it crashed when I tried to test the mesh library. Therefore, I need to know which version of pyopengl you have used to implement mesh library so I can reinstall the appropriate pyopengl library for this matter.

Hope you will give the answer for this issue though.

ErrorinPyOpenGLinMPI-ISMeshLibrary

minyoung-mia-Kim commented 4 years ago

Hi, I'm not the one who develop this lib, but I met the same problem and solved it. So, if you installed PyOpenGL version 3.1.4, I recommend downgrade it. In my case, I used "conda install -c anaconda pyopengl" so it was downgraded as 3.1.1.a.

Might be there another issue tho, OS Error. It would be solved by install python3-opengl package by apt-get (in linux env)

Silverster98 commented 4 years ago

Hi, I also have this problem, and I downgrade pyopengl to version 3.1.1a1(v3.1.1 isn't exist). But the problem still exist.

微信图片_20200302185024

Silverster98 commented 4 years ago

Today, I have attempted to install pyopengl on my virtual machine. And, mesh works well. Previously, I installed it on a remote server and it failed. I think it is related to your paltform, not only software, but also hardware.

Water-Silver commented 4 years ago

after downgrading PyOpenGL to version 3.1.0 I had this error ('Unable to load OpenGL library', 'GL: cannot open shared object file: No such file or directory', 'GL', None)

and then doing apt-get install python3-opengl worked for me

Edit : I'm running on a docker container with the setting Ubuntu 18.04.1 and python 3.6.8

ioreshnikov commented 4 years ago

@WisarutBholsithi Thank you for reporting the issue. I have tried running make all and then make tests in a completely clean python3 virtual environment and it worked flawlessly. It looks like this issues strongly depends on the environment you are working in. Could you please report the operating system and the python version you're using to run the code?

@mia-minyoung @Silverster98 and @Water-Silver, your input, of course, would be incredibly helpful as well.

ioreshnikov commented 4 years ago

Closing until somebody provides us with the information on how to reproduce.

yquan9 commented 3 years ago

I met the same problem when running this project. I set _error_checker in pythonX.X/dist-packages/OpenGL/raw/GL/_errors.py to be None without calling the function _ErrorChecker( _p, _p.GL.glGetError) and it worked. Althrough it's not a perfect solution, hope it can helps :-)

Atharva-Peshkar commented 1 year ago

I was getting the same error. I'm running the code on nvidia/cuda:11.2.2-cudnn8-devel-ubuntu20.04 docker container.

pip install PyOpenGL==3.1.1a1 did the trick for me!