Open ChepeAicrag opened 3 years ago
Hello, when i do as you said, i get a new problom. Unable to load OpenGL libraries. Make sure you use GPU-enabled backend. Press "Runtime->Change runtime type" and set "Hardware accelerator" to GPU. ImportError: 'Unable to load EGL library' None, 126, None, 'libEGL.so', 'libEGL.so' Do you know how to solve it?
Describe the bug
I am working in colab, and I am following the tutorial from Using OpenGL with Colab Cloud GPUs. It is important to mention that the version used is Python 3.7.10.
When at the time of import
I get this traceback:
Solution
The reason for this is that import ctypes does not import ctypes.util by default anymore in newest python. Therefore after import ctypes there should be an extra line import ctypes.util.
Now the imports in the file glcontext.py with the import added, it would be as follows:
Or also import the other way:
And with that import will correct the problem.