DragGAN icon indicating copy to clipboard operation
DragGAN copied to clipboard

Error when opening gui in 4-core codespace

Open Adam-Albu opened this issue 2 years ago • 4 comments

I cloned this repo in a codespace using 32GB ram and 4 cores. I then I pre-trained the weights and installed the requirements. Then when I tried opening the GUI, this error occured:

Traceback (most recent call last):
  File "/workspaces/DragGAN/visualizer_drag.py", line 17, in <module>
    from gui_utils import imgui_window
  File "/workspaces/DragGAN/gui_utils/imgui_window.py", line 11, in <module>
    import imgui.integrations.glfw
  File "/usr/local/python/3.10.8/lib/python3.10/site-packages/imgui/integrations/glfw.py", line 8, in <module>
    from .opengl import ProgrammablePipelineRenderer
  File "/usr/local/python/3.10.8/lib/python3.10/site-packages/imgui/integrations/opengl.py", line 4, in <module>
    import OpenGL.GL as gl
  File "/usr/local/python/3.10.8/lib/python3.10/site-packages/OpenGL/GL/__init__.py", line 4, in <module>
    from OpenGL.GL.VERSION.GL_1_1 import *
  File "/usr/local/python/3.10.8/lib/python3.10/site-packages/OpenGL/GL/VERSION/GL_1_1.py", line 14, in <module>
    from OpenGL.raw.GL.VERSION.GL_1_1 import *
  File "/usr/local/python/3.10.8/lib/python3.10/site-packages/OpenGL/raw/GL/VERSION/GL_1_1.py", line 7, in <module>
    from OpenGL.raw.GL import _errors
  File "/usr/local/python/3.10.8/lib/python3.10/site-packages/OpenGL/raw/GL/_errors.py", line 4, in <module>
    _error_checker = _ErrorChecker( _p, _p.GL.glGetError )
AttributeError: 'NoneType' object has no attribute 'glGetError'

Adam-Albu avatar Jun 28 '23 06:06 Adam-Albu

I am seeing the same error. Please share in case you find a solution.

MittalNeha avatar Jun 30 '23 11:06 MittalNeha

I am seeing the same error too

Jianghaob avatar Aug 15 '23 08:08 Jianghaob

I am seeing the same error too. PyOpenGL version problem??

xxyyboy avatar Sep 05 '23 08:09 xxyyboy

I met the same problem and solved it, it is the pyopengl problem. I downgraded the pyopengl : pip install pyopengl . and then install python3-opengl package by apt-get: sudo apt-get install python3-opengl https://github.com/MPI-IS/mesh/issues/23

YangJay99 avatar Mar 06 '24 02:03 YangJay99