Skip to content
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

ImportError: Unable to load OpenGL library #535

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

estella144
Copy link

[This is an ISSUE, if you are interested in the PR go to that section. Posted here because /issues redirects here.]

Issue

ImportError: ('Unable to load OpenGL library', "Failed to load dynlib/dll 'OpenGL'. Most probably this dynlib/dll was not found when the application was frozen.", 'OpenGL', None)

Full terminal output:

Last login: Sat May  7 13:17:11 on ttys007
/Users/tnguyen/Downloads/mcedit2-macosx64-2.0.0-beta14/MCEdit\ 2.app/Contents/MacOS/MCEdit\ 2 ; exit;
tnguyen@Olivers-Air ~ % /Users/tnguyen/Downloads/mcedit2-macosx64-2.0.0-beta14/MCEdit\ 2.app/Contents/MacOS/MCEdit\ 2 ; exit;
[68332] PyInstaller Bootloader 3.x
[68332] LOADER: executable is /Users/tnguyen/Downloads/mcedit2-macosx64-2.0.0-beta14/MCEdit 2.app/Contents/MacOS/MCEdit 2
[68332] LOADER: homepath is /Users/tnguyen/Downloads/mcedit2-macosx64-2.0.0-beta14/MCEdit 2.app/Contents/MacOS
[68332] LOADER: _MEIPASS2 is NULL
[68332] LOADER: archivename is /Users/tnguyen/Downloads/mcedit2-macosx64-2.0.0-beta14/MCEdit 2.app/Contents/MacOS/MCEdit 2
[68332] LOADER: No need to extract files to run; setting extractionpath to homepath
[68332] LOADER: Already in the child - running user's code.
[68332] LOADER: Python library: /Users/tnguyen/Downloads/mcedit2-macosx64-2.0.0-beta14/MCEdit 2.app/Contents/MacOS/Python
[68332] LOADER: Loaded functions from Python library.
[68332] LOADER: Manipulating environment (sys.path, sys.prefix)
[68332] LOADER: sys.prefix is /Users/tnguyen/Downloads/mcedit2-macosx64-2.0.0-beta14/MCEdit 2.app/Contents/MacOS
[68332] LOADER: Setting runtime options
[68332] LOADER: Initializing python
[68332] LOADER: Overriding Python's sys.path
[68332] LOADER: Post-init sys.path is /Users/tnguyen/Downloads/mcedit2-macosx64-2.0.0-beta14/MCEdit 2.app/Contents/MacOS
[68332] LOADER: Setting sys.argv
[68332] LOADER: setting sys._MEIPASS
[68332] LOADER: importing modules from CArchive
[68332] LOADER: extracted struct
[68332] LOADER: callfunction returned...
[68332] LOADER: extracted pyimod01_os_path
[68332] LOADER: callfunction returned...
[68332] LOADER: extracted pyimod02_archive
[68332] LOADER: callfunction returned...
[68332] LOADER: extracted pyimod03_importers
[68332] LOADER: callfunction returned...
[68332] LOADER: Installing PYZ archive with Python modules.
[68332] LOADER: PYZ archive: out00-PYZ.pyz
[68332] LOADER: Running pyiboot01_bootstrap.py
[68332] LOADER: Running pyi_rth_pkgres.py
[68332] LOADER: Running pyi_rth_multiprocessing.py
[68332] LOADER: Running pyi_rth_traitlets.py
[68332] LOADER: Running pyi_rth_qt4plugins.py
[68332] LOADER: Running main.py
Logging level set
sys.frozen is set
OS X found.
Logging to /Users/tnguyen/Library/Logs/mcedit2.log
Setting up console handler
[ERROR][main.py:203]:Unhandled Exception: 
	('Unable to load OpenGL library', "Failed to load dynlib/dll 'OpenGL'. Most probably this dynlib/dll was not found when the application was frozen.", 'OpenGL', None)
Traceback (most recent call last):
  File "mcedit2/main.py", line 226, in <module>  
  File "mcedit2/main.py", line 222, in main  
  File "mcedit2/util/profiler.py", line 73, in _wrapper (self is a Profiler)
  File "mcedit2/main.py", line 188, in startup  
  File "/private/var/folders/my/m6ynh3bn6tq06h7xr3js0z7r0000gn/T/pip-install-7iypVy/PyInstaller/PyInstaller/loader/pyimod03_importers.py", line 396, in load_module (self is a FrozenImporter)
  File "mcedit2/editorapp.py", line 14, in <module>  
  File "/private/var/folders/my/m6ynh3bn6tq06h7xr3js0z7r0000gn/T/pip-install-7iypVy/PyInstaller/PyInstaller/loader/pyimod03_importers.py", line 396, in load_module (self is a FrozenImporter)
  File "mcedit2/plugins/__init__.py", line 13, in <module>  
  File "/private/var/folders/my/m6ynh3bn6tq06h7xr3js0z7r0000gn/T/pip-install-7iypVy/PyInstaller/PyInstaller/loader/pyimod03_importers.py", line 396, in load_module (self is a FrozenImporter)
  File "mcedit2/editortools/generate.py", line 12, in <module>  
  File "/private/var/folders/my/m6ynh3bn6tq06h7xr3js0z7r0000gn/T/pip-install-7iypVy/PyInstaller/PyInstaller/loader/pyimod03_importers.py", line 396, in load_module (self is a FrozenImporter)
  File "mcedit2/handles/boxhandle.py", line 10, in <module>  
  File "/private/var/folders/my/m6ynh3bn6tq06h7xr3js0z7r0000gn/T/pip-install-7iypVy/PyInstaller/PyInstaller/loader/pyimod03_importers.py", line 396, in load_module (self is a FrozenImporter)
  File "mcedit2/rendering/scenegraph/scenenode.py", line 8, in <module>  
  File "/private/var/folders/my/m6ynh3bn6tq06h7xr3js0z7r0000gn/T/pip-install-7iypVy/PyInstaller/PyInstaller/loader/pyimod03_importers.py", line 396, in load_module (self is a FrozenImporter)
  File "mcedit2/rendering/scenegraph/rendernode.py", line 9, in <module>  
  File "/private/var/folders/my/m6ynh3bn6tq06h7xr3js0z7r0000gn/T/pip-install-7iypVy/PyInstaller/PyInstaller/loader/pyimod03_importers.py", line 396, in load_module (self is a FrozenImporter)
  File "OpenGL/GL/__init__.py", line 3, in <module>  
  File "/private/var/folders/my/m6ynh3bn6tq06h7xr3js0z7r0000gn/T/pip-install-7iypVy/PyInstaller/PyInstaller/loader/pyimod03_importers.py", line 396, in load_module (self is a FrozenImporter)
  File "OpenGL/error.py", line 12, in <module>  
  File "/private/var/folders/my/m6ynh3bn6tq06h7xr3js0z7r0000gn/T/pip-install-7iypVy/PyInstaller/PyInstaller/loader/pyimod03_importers.py", line 396, in load_module (self is a FrozenImporter)
  File "OpenGL/platform/__init__.py", line 35, in <module>  
  File "OpenGL/platform/__init__.py", line 32, in _load  
  File "OpenGL/platform/baseplatform.py", line 92, in install (self is a DarwinPlatform)
  File "OpenGL/platform/baseplatform.py", line 14, in __get__ (self is a lazy_property)
  File "OpenGL/platform/darwin.py", line 62, in GetCurrentContext (self is a DarwinPlatform)
  File "OpenGL/platform/baseplatform.py", line 14, in __get__ (self is a lazy_property)
  File "OpenGL/platform/darwin.py", line 45, in CGL (self is a DarwinPlatform)
  File "OpenGL/platform/baseplatform.py", line 14, in __get__ (self is a lazy_property)
  File "OpenGL/platform/darwin.py", line 41, in GL (self is a DarwinPlatform)
ImportError: ('Unable to load OpenGL library', "Failed to load dynlib/dll 'OpenGL'. Most probably this dynlib/dll was not found when the application was frozen.", 'OpenGL', None)
Error in sys.excepthook:
Traceback (most recent call last):
  File "mcedit2/main.py", line 217, in excepthook
  File "/private/var/folders/my/m6ynh3bn6tq06h7xr3js0z7r0000gn/T/pip-install-7iypVy/PyInstaller/PyInstaller/loader/pyimod03_importers.py", line 396, in load_module
  File "mcedit2/dialogs/error_dialog.py", line 14, in <module>
  File "/private/var/folders/my/m6ynh3bn6tq06h7xr3js0z7r0000gn/T/pip-install-7iypVy/PyInstaller/PyInstaller/loader/pyimod03_importers.py", line 396, in load_module
  File "mcedit2/util/qglcontext.py", line 5, in <module>
  File "/private/var/folders/my/m6ynh3bn6tq06h7xr3js0z7r0000gn/T/pip-install-7iypVy/PyInstaller/PyInstaller/loader/pyimod03_importers.py", line 396, in load_module
  File "OpenGL/GL/__init__.py", line 3, in <module>
  File "/private/var/folders/my/m6ynh3bn6tq06h7xr3js0z7r0000gn/T/pip-install-7iypVy/PyInstaller/PyInstaller/loader/pyimod03_importers.py", line 396, in load_module
  File "OpenGL/error.py", line 12, in <module>
  File "/private/var/folders/my/m6ynh3bn6tq06h7xr3js0z7r0000gn/T/pip-install-7iypVy/PyInstaller/PyInstaller/loader/pyimod03_importers.py", line 396, in load_module
  File "OpenGL/platform/__init__.py", line 35, in <module>
  File "OpenGL/platform/__init__.py", line 32, in _load
  File "OpenGL/platform/baseplatform.py", line 92, in install
  File "OpenGL/platform/baseplatform.py", line 14, in __get__
  File "OpenGL/platform/darwin.py", line 62, in GetCurrentContext
  File "OpenGL/platform/baseplatform.py", line 14, in __get__
  File "OpenGL/platform/darwin.py", line 45, in CGL
  File "OpenGL/platform/baseplatform.py", line 14, in __get__
  File "OpenGL/platform/darwin.py", line 41, in GL
ImportError: ('Unable to load OpenGL library', "Failed to load dynlib/dll 'OpenGL'. Most probably this dynlib/dll was not found when the application was frozen.", 'OpenGL', None)

Original exception was:
Traceback (most recent call last):
  File "mcedit2/main.py", line 226, in <module>
  File "mcedit2/main.py", line 222, in main
  File "mcedit2/util/profiler.py", line 73, in _wrapper
  File "mcedit2/main.py", line 188, in startup
  File "/private/var/folders/my/m6ynh3bn6tq06h7xr3js0z7r0000gn/T/pip-install-7iypVy/PyInstaller/PyInstaller/loader/pyimod03_importers.py", line 396, in load_module
  File "mcedit2/editorapp.py", line 14, in <module>
  File "/private/var/folders/my/m6ynh3bn6tq06h7xr3js0z7r0000gn/T/pip-install-7iypVy/PyInstaller/PyInstaller/loader/pyimod03_importers.py", line 396, in load_module
  File "mcedit2/plugins/__init__.py", line 13, in <module>
  File "/private/var/folders/my/m6ynh3bn6tq06h7xr3js0z7r0000gn/T/pip-install-7iypVy/PyInstaller/PyInstaller/loader/pyimod03_importers.py", line 396, in load_module
  File "mcedit2/editortools/generate.py", line 12, in <module>
  File "/private/var/folders/my/m6ynh3bn6tq06h7xr3js0z7r0000gn/T/pip-install-7iypVy/PyInstaller/PyInstaller/loader/pyimod03_importers.py", line 396, in load_module
  File "mcedit2/handles/boxhandle.py", line 10, in <module>
  File "/private/var/folders/my/m6ynh3bn6tq06h7xr3js0z7r0000gn/T/pip-install-7iypVy/PyInstaller/PyInstaller/loader/pyimod03_importers.py", line 396, in load_module
  File "mcedit2/rendering/scenegraph/scenenode.py", line 8, in <module>
  File "/private/var/folders/my/m6ynh3bn6tq06h7xr3js0z7r0000gn/T/pip-install-7iypVy/PyInstaller/PyInstaller/loader/pyimod03_importers.py", line 396, in load_module
  File "mcedit2/rendering/scenegraph/rendernode.py", line 9, in <module>
  File "/private/var/folders/my/m6ynh3bn6tq06h7xr3js0z7r0000gn/T/pip-install-7iypVy/PyInstaller/PyInstaller/loader/pyimod03_importers.py", line 396, in load_module
  File "OpenGL/GL/__init__.py", line 3, in <module>
  File "/private/var/folders/my/m6ynh3bn6tq06h7xr3js0z7r0000gn/T/pip-install-7iypVy/PyInstaller/PyInstaller/loader/pyimod03_importers.py", line 396, in load_module
  File "OpenGL/error.py", line 12, in <module>
  File "/private/var/folders/my/m6ynh3bn6tq06h7xr3js0z7r0000gn/T/pip-install-7iypVy/PyInstaller/PyInstaller/loader/pyimod03_importers.py", line 396, in load_module
  File "OpenGL/platform/__init__.py", line 35, in <module>
  File "OpenGL/platform/__init__.py", line 32, in _load
  File "OpenGL/platform/baseplatform.py", line 92, in install
  File "OpenGL/platform/baseplatform.py", line 14, in __get__
  File "OpenGL/platform/darwin.py", line 62, in GetCurrentContext
  File "OpenGL/platform/baseplatform.py", line 14, in __get__
  File "OpenGL/platform/darwin.py", line 45, in CGL
  File "OpenGL/platform/baseplatform.py", line 14, in __get__
  File "OpenGL/platform/darwin.py", line 41, in GL
ImportError: ('Unable to load OpenGL library', "Failed to load dynlib/dll 'OpenGL'. Most probably this dynlib/dll was not found when the application was frozen.", 'OpenGL', None)
[68332] Failed to execute script main
[68332] LOADER: OK.
[68332] LOADER: Cleaning up Python interpreter.

Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
Deleting expired sessions...none found.

[Process completed]

macOS Monterey 12.2.1 (21D62).
OpenGL installed at /System/Library/Frameworks/OpenGL.framework/Headers.

PR

Changelog has not been updated and does not document changes

@RokeJulianLockhart
Copy link

Seems like issues have deliberately been disabled to stifle collaboration, per eb15c54. Perhaps the project is dead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants