On 12-Oct-06, at 10:44 PM, Ronald Oussoren wrote: > Reverting to an older version should work as well, with the caveat > that the latest pre-setuptools version of py2app has some problems > w.r.t. universal binaries (which is why Bob switched to the current > version).
OK, well I need universal binaries, so I'll try to move forward rather than backward. > I'm going to do a fresh install of Python, PyObjC and py2app to see > if that helps to find the problem, but don't have time to do so today. I appreciate the time you've put into this. > One thing that you could try: insert 'import sys; print sys.path' > at the top of __boot__.py (in the Resources directory of the saver) > to see the value of sys.path. That value seems to be wrong. This is a very good clue. Here is the sys.path from a working application built with the same version(s) of all the tools: '/Users/delza/sampleapp/dist/sample.app/Contents/Resources', '/Users/ delza/sampleapp/dist/sample.app/Contents/Resources', '/Users/delza/ sampleapp/dist/sample.app/Contents/Resources/lib/python24.zip', '/ Users/delza/sampleapp/dist/sample.app/Contents/Resources/lib/ python2.4', '/Users/delza/sampleapp/dist/sample.app/Contents/ Resources/lib/python2.4/plat-darwin', '/Users/delza/sampleapp/dist/ sample.app/Contents/Resources/lib/python2.4/plat-mac', '/Users/delza/ sampleapp/dist/sample.app/Contents/Resources/lib/python2.4/plat-mac/ lib-scriptpackages', '/Users/delza/sampleapp/dist/sample.app/Contents/ Resources/lib/python2.4/lib-tk', '/Users/delza/sampleapp/dist/ sample.app/Contents/Resources/lib/python2.4/lib-dynload', '/Users/ delza/sampleapp/dist/sample.app/Contents/Resources/lib/python2.4/site- packages.zip' And here is the sys.path from a plugin: '/Users/delza/Library/Screen Savers/PastelsView.saver/Contents/ Resources', '/Users/delza/Library/Screen Savers/PastelsView.saver/ Contents/Resources', '/Users/delza/Library/Screen Savers/ PastelsView.saver/Contents/Frameworks/Python.framework/Versions/2.4/ lib/python24.zip', '/Users/delza/Library/Screen Savers/ PastelsView.saver/Contents/Frameworks/Python.framework/Versions/2.4/ lib/python2.4/', '/Users/delza/Library/Screen Savers/ PastelsView.saver/Contents/Frameworks/Python.framework/Versions/2.4/ lib/python2.4/plat-darwin', '/Users/delza/Library/Screen Savers/ PastelsView.saver/Contents/Frameworks/Python.framework/Versions/2.4/ lib/python2.4/plat-mac', '/Users/delza/Library/Screen Savers/ PastelsView.saver/Contents/Frameworks/Python.framework/Versions/2.4/ lib/python2.4/plat-mac/lib-scriptpackages', '/Users/delza/Library/ Screen Savers/PastelsView.saver/Contents/Frameworks/Python.framework/ Versions/2.4/lib/python2.4/lib-tk', '/Users/delza/Library/Screen Savers/PastelsView.saver/Contents/Frameworks/Python.framework/ Versions/2.4/lib/python2.4/lib-dynload' Since the ../Contents/Frameworks/Python.framework/Versions/2.4/ directory does not contain a lib directory, these paths are broken. I'm trying to track down where they are set, which appears to be in the bootstrap Objective-C code for setting the RESOURCEPATH environment variable. Does that sound reasonable? --Dethe "We have now become a people who believe that wishing for things makes them happen. Unfortunately, the world just doesn't work that way. The truth is that no combination of alternative fuels or so- called renewables will allow us to run the U.S.A. -- or even a substantial fraction of it -- the way that we're running it now." -- James Howard Kunstler _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig