Hello :)
I'm coding an application with PyQt, QT 4.5 and Python 2.6.2, I would like to 
package/freeze it with py2app ( It was working with 2.5 before ) but I'm 
encountering some problems :First : Why is Py2App using Python 2.5 by default ?
Here is an explicit part of my building log :
*** byte compile python files ***
byte-compiling 
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/py2app/bootstrap/argv_emulation.py
 to argv_emulation.pyc
I'm launching the build with : sIBL_GUI_App_Setup.py py2app --includes "sip"Of 
course when I launch a Python Interpreter in a shell I'm in 2.6.2. That lead me 
to another problem I will encounter if I can't build with 2.6.2 : How can I 
install Sip, PyQt on the Python 2.5 Framework, since it's installed on the 
2.6.2 ? I'm getting an Import Error :
File 
"/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/modulegraph/modulegraph.py",
 line 431, in find_head_package
    raise ImportError, "No module named " + qname
ImportError: No module named sip
That's make sense since Sip and PyQt are installed for the 2.6.2 Python 
Framework... So I explicitely launched the build from my 2.6.2 python 
:/Library/Frameworks/Python.framework/Versions/2.6/bin/./python 
sIBL_GUI_App_Setup.py py2app --includes "sip"
I'm now getting that error :
DistutilsFileError: can't copy 
'/Library/Frameworks/Python.framework/Versions/2.6/Resources/version.plist': 
doesn't exist or not a regular file
I did copied / modified the "version.plist" of System Python 2.5 Framework, but 
that's a bit odd...
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" 
"http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
<plist version="1.0">
<dict>
        <key>BuildVersion</key>
        <string>4</string>
        <key>CFBundleShortVersionString</key>
        <string>2.6</string>
        <key>CFBundleVersion</key>
        <string>2.6</string>
        <key>ProjectName</key>
        <string>python</string>
        <key>SourceVersion</key>
        <string>300103</string>
</dict>
</plist>
I of course don't know what to put for BuildVersion and SourceVersion, anyway 
the Application is builded this time, and when I launch it this is what I get :
May 25 00:07:36 Lilith [0x0-0x1e81e8].org.pythonmac.unspecified.sIBL_GUI[4730]: 
ImportError: 
'/Users/KelSolaar/Documents/Developement/sIBL/src/dist/sIBL_GUI.app/Contents/Resources/lib/python2.5/lib-dynload/PyQt4/QtCore.so'
 not found

Again Py2App is looking for something in python2.5 whereas in lib there is a 
python2.6 directory. Since it was late I stopped searching, but if somebody has 
an idea, I'll be really happy :)

_________________________________________________________________
Vous voulez savoir ce que vous pouvez faire avec le nouveau Windows LiveĀ ? 
Lancez-vous !
http://www.microsoft.com/windows/windowslive/default.aspx
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to