You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In macOS Big Sur, the location of OpenGL has changed and thus the regular import does not work (on my system). I am checking if the issue has been fixed on newer python versions.
Current python version: 3.7.9
Python 3.7.9 (default, Aug 31 2020, 07:22:35)
[Clang 10.0.0 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import tk3dv
Traceback (most recent call last):
File "/Users/apoorve/anaconda3/envs/adven/lib/python3.7/site-packages/OpenGL/platform/darwin.py", line 38, in GL
mode=ctypes.RTLD_GLOBAL
File "/Users/apoorve/anaconda3/envs/adven/lib/python3.7/site-packages/OpenGL/platform/ctypesloader.py", line 36, in loadLibrary
return _loadLibraryWindows(dllType, name, mode)
File "/Users/apoorve/anaconda3/envs/adven/lib/python3.7/site-packages/OpenGL/platform/ctypesloader.py", line 89, in _loadLibraryWindows
return dllType( name, mode )
File "/Users/apoorve/anaconda3/envs/adven/lib/python3.7/ctypes/__init__.py", line 364, in __init__
self._handle = _dlopen(self._name, mode)
OSError: ('dlopen(OpenGL, 10): image not found', 'OpenGL', None)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/apoorve/anaconda3/envs/adven/lib/python3.7/site-packages/tk3dv/__init__.py", line 1, in <module>
import tk3dv.common
File "/Users/apoorve/anaconda3/envs/adven/lib/python3.7/site-packages/tk3dv/common/__init__.py", line 8, in <module>
import utilities, drawing, defines
File "/Users/apoorve/anaconda3/envs/adven/lib/python3.7/site-packages/tk3dv/common/./drawing.py", line 1, in <module>
import OpenGL.GL as gl
File "/Users/apoorve/anaconda3/envs/adven/lib/python3.7/site-packages/OpenGL/GL/__init__.py", line 3, in <module>
from OpenGL import error as _error
File "/Users/apoorve/anaconda3/envs/adven/lib/python3.7/site-packages/OpenGL/error.py", line 12, in <module>
from OpenGL import platform, _configflags
File "/Users/apoorve/anaconda3/envs/adven/lib/python3.7/site-packages/OpenGL/platform/__init__.py", line 36, in <module>
_load()
File "/Users/apoorve/anaconda3/envs/adven/lib/python3.7/site-packages/OpenGL/platform/__init__.py", line 33, in _load
plugin.install(globals())
File "/Users/apoorve/anaconda3/envs/adven/lib/python3.7/site-packages/OpenGL/platform/baseplatform.py", line 97, in install
namespace[ name ] = getattr(self,name,None)
File "/Users/apoorve/anaconda3/envs/adven/lib/python3.7/site-packages/OpenGL/platform/baseplatform.py", line 15, in __get__
value = self.fget( obj )
File "/Users/apoorve/anaconda3/envs/adven/lib/python3.7/site-packages/OpenGL/platform/darwin.py", line 62, in GetCurrentContext
return self.CGL.CGLGetCurrentContext
File "/Users/apoorve/anaconda3/envs/adven/lib/python3.7/site-packages/OpenGL/platform/baseplatform.py", line 15, in __get__
value = self.fget( obj )
File "/Users/apoorve/anaconda3/envs/adven/lib/python3.7/site-packages/OpenGL/platform/darwin.py", line 45, in CGL
def CGL(self): return self.GL
File "/Users/apoorve/anaconda3/envs/adven/lib/python3.7/site-packages/OpenGL/platform/baseplatform.py", line 15, in __get__
value = self.fget( obj )
File "/Users/apoorve/anaconda3/envs/adven/lib/python3.7/site-packages/OpenGL/platform/darwin.py", line 41, in GL
raise ImportError("Unable to load OpenGL library", *err.args)
ImportError: ('Unable to load OpenGL library', 'dlopen(OpenGL, 10): image not found', 'OpenGL', None)
The text was updated successfully, but these errors were encountered:
For my Anaconda python, the ctypesloader.py file was located in /Users/apoorve/anaconda3/envs/adven/lib/python3.7/site-packages/OpenGL/platform/ctypesloader.py.
In macOS Big Sur, the location of OpenGL has changed and thus the regular import does not work (on my system). I am checking if the issue has been fixed on newer python versions.
Current python version: 3.7.9
Related PR - python/cpython#21241
The text was updated successfully, but these errors were encountered: