[Pythonmac-SIG] py2app 0.4.2 and PyOpenGL
Edward Hartley
ed_hartley at mac.com
Tue Jan 8 19:26:14 CET 2008
Hi
I'm seeing some problems with py2app 0.4.2 when used with PyOpenGL, I
gather from the release and the list notes that this version has a
mechanism to handle
PyPI eggs directly is this correct?
OS X 10.4 on Intel
python2.5
setuptools-0.6c7-py2.5.egg
PyOpenGL-3.0.0b1-py2.5.egg and PyOpenGL-3.0.0a6-py2.5.egg
and the lesson5.py example from the p2app tree
The application builds OK into an app, but when its run I get the log
shown below at the console.
This indicates that pkg_resources from setuptools is not being found.
It is found OK from the command line python
It appears that PyOpenGL-3.0.0b1-py2.5.egg installs as a directory
tree from:
ls PyOpenGL-3.0.0b1-py2.5.egg/
EGG-INFO OpenGL
as opposed to PyOpenGL-3.0.0a6-py2.5.egg which installs zipped but gives
lesson5.app/Contents/Resources/lesson5.py", line 47, in <module>
from OpenGL.GL import *
ImportError: No module named
OpenGL.GL warnings when used instead
This is error log from 3.0.0b1
[---snip---]
line 47, in <module>
from OpenGL.GL import *
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/PyOpenGL-3.0.0b1-py2.5.egg/OpenGL/GL/
__init__.py", line 2, in <module>
from OpenGL.raw.GL import *
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/PyOpenGL-3.0.0b1-py2.5.egg/OpenGL/raw/GL/
__init__.py", line 6, in <module>
from OpenGL.raw.GL.constants import *
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/PyOpenGL-3.0.0b1-py2.5.egg/OpenGL/raw/GL/
constants.py", line 7, in <module>
from OpenGL import platform, arrays
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/PyOpenGL-3.0.0b1-py2.5.egg/OpenGL/platform/
__init__.py", line 20, in <module>
import os, sys, pkg_resources
ImportError: No module named pkg_resources
2008-01-08 17:58:38.680 lesson5[5760] lesson5 Error
2008-01-08 17:58:38.680 lesson5[5760] lesson5 Error
An unexpected error has occurred during execution of the main script
ImportError: No module named pkg_resources
2008-01-08 17:58:38.960 lesson5[5760] *** -[NSBundle load]: Error
loading code /Users/edh/Library/InputManagers/Menu Extra Enabler/Menu
Extra Enabler.bundle/Contents/MacOS/Menu Extra Enabler for bundle /
Users/edh/Library/InputManagers/Menu Extra Enabler/Menu Extra
Enabler.bundle, error code 2 (link edit error code 0, error number 0 ())
Best Regards
Ed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20080108/4cc13c2a/attachment.htm
More information about the Pythonmac-SIG
mailing list