<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi 
<div>I'm seeing some problems with py2app <span class="Apple-style-span" style="font-family: Courier; font-size: 13px; ">0.4.2 <span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; ">when used with PyOpenGL, I gather from the release and the list notes that this version has a mechanism to handle</span></span></div><div>PyPI eggs directly is this correct?</div><div><br class="webkit-block-placeholder"></div><div>OS X 10.4 on Intel </div><div>python2.5 </div><div>setuptools-0.6c7-py2.5.egg</div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Lucida Grande" size="3" style="font: 12.0px Lucida Grande">PyOpenGL-3.0.0b1-py2.5.egg and PyOpenGL-3.0.0a6-py2.5.egg</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Lucida Grande" size="3" style="font: 12.0px Lucida Grande"> </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" face="'Lucida Grande'">and the lesson5.py example from the p2app tree</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" face="'Lucida Grande'"><br class="webkit-block-placeholder"></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" face="'Lucida Grande'">The application builds OK into an app, but when its run I get the log shown below at the console.</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" face="'Lucida Grande'">This indicates that pkg_resources from setuptools is not being found. It is found OK from the command line python </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" face="'Lucida Grande'"><br class="webkit-block-placeholder"></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" face="'Lucida Grande'">It appears that PyOpenGL-3.0.0b1-py2.5.egg installs as a directory tree from:</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" face="'Lucida Grande'"><div>ls  PyOpenGL-3.0.0b1-py2.5.egg/</div><div>EGG-INFO        OpenGL</div><div><br class="webkit-block-placeholder"></div><div>as opposed to PyOpenGL-3.0.0a6-py2.5.egg which installs zipped but gives </div><div><br class="webkit-block-placeholder"></div><div>lesson5.app/Contents/Resources/lesson5.py", line 47, in &lt;module&gt;</div><div>    from OpenGL.GL import *</div><div>ImportError: No module named </div><div><br class="webkit-block-placeholder"></div><div>OpenGL.GL warnings when used instead </div><div><br class="webkit-block-placeholder"></div><div>This is error log from 3.0.0b1</div></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" face="'Lucida Grande'">[---snip---]</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" face="'Lucida Grande'"><div>line 47, in &lt;module&gt;</div><div>    from OpenGL.GL import *</div><div>  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 &lt;module&gt;</div><div>    from OpenGL.raw.GL import *</div><div>  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 &lt;module&gt;</div><div>    from OpenGL.raw.GL.constants import *</div><div>  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 &lt;module&gt;</div><div>    from OpenGL import platform, arrays</div><div>  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 &lt;module&gt;</div><div>    import os, sys, pkg_resources</div><div>ImportError: No module named pkg_resources</div><div>2008-01-08 17:58:38.680 lesson5[5760] lesson5 Error</div><div>2008-01-08 17:58:38.680 lesson5[5760] lesson5 Error</div><div>An unexpected error has occurred during execution of the main script</div><div><br class="webkit-block-placeholder"></div><div>ImportError: No module named pkg_resources</div><div>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 ())</div><div><br class="webkit-block-placeholder"></div><div><div>Best Regards</div><div>Ed</div></div></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" face="'Lucida Grande'"><br class="webkit-block-placeholder"></font></div></div><div><br class="webkit-block-placeholder"></div></body></html>