[Pythonmac-SIG] problem installing TigerPython24Fix
I'm absolutely new in the mac's world.I just bought a MacBook.I'am trying to install Python 2.4 on it apart to the preinstalled 2.3version.I read on the net that I'd to install firstUniversal-MacPython-2.4.3-2006-04-07.dmg and then to patch it with TigerPython24Fix-r2Python 2.4 's installation was good but when I try to installTigerPython24Fix-r2.mpkg I get an error during the phase in which youhave to choose the target hd. The HD icon has a red esclamation mark on it and the error says:Non puoi installare TigerPython24Fix-r2 su questo volume.Assicurati che il tuo sistema possieda i requisiti necessari.that means something like: You can't install TigerPython24Fix-r2 on this volume.Be sure you have the needed rights.I can't realize the nature of the problem.The disk is not fullI tried everything logged as root to avoid owner rights problems. Could it be something related to the Intel core of my Mac?On the page from where I downloaded the fixhttp://pythonmac.org/packages/legacy.htmlthey say: Mac OS X 10.4 (Python 2.4.1 framework build, PPC ONLY)Has it anything to do with my problem?PERHAPS I DO NOT HAVE to install this fix on my Mac?Is everything ok with just Universal-MacPython-2.4.3-2006-04-07.dmg alone?Please HELP.Licia ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
[Pythonmac-SIG] [pythonmac-sig] Py2app and Driver not loaded error from PyQt4+sqlite
I'm trying to convert python code into a mac application with py2app. My python code uses PyQt4 to access a sqlite db. At run time (on a different mac from the one where I build the .app where there is no PyQt4+Qt4 installed) I get the error: Driver not loaded Unable to establish a database connection This example needs SQLite support ... On Windows, using py2exe, I had the same problem and I solved it coping: ...\Qt\version\plugins\sqldrivers\*.* to: ...\myApp\sqldrivers\* On Mac I tried coping libqsqlite.dylib into: .../myApp/Contents/Frameworks/QtSql.framework/ and into: .../myApp/Contents/Frameworks/ but nothing changed. I tried with either these options: options = {'py2app': { "packages": ["encodings"], "includes":["sip", 'PyQt4.QtSvg'], 'excludes': ["Tkconstants","Tkinter","tcl"] }}, or options = {'py2app': { "packages": ["encodings"], "includes":["sip", 'PyQt4.QtSvg', 'PyQt4.QtSql'], 'excludes': ["Tkconstants","Tkinter","tcl"] }}, or options = {'py2app': { "packages": ["encodings"], "includes":["sip", "PyQt4", 'PyQt4.QtSvg', 'PyQt4.QtSql'], 'excludes': ["Tkconstants","Tkinter","tcl"] }}, but nothing changed. I tried also: options = {'py2app': { "packages": ["encodings"], "includes":["sip", "PyQt4._qt",'PyQt4.QtSvg'], 'excludes': ["Tkconstants","Tkinter","tcl"] }}, but in this case I get this error: File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.3.6-py2.5.egg/py2app/build_app.py", line 548, in _run self.run_normal() File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.3.6-py2.5.egg/py2app/build_app.py", line 600, in run_normal mf = self.get_modulefinder() File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/py2app-0.3.6-py2.5.egg/py2app/build_app.py", line 508, in get_modulefinder debug=debug, File "build/bdist.macosx-10.3-i386/egg/modulegraph/find_modules.py", line 243, in find_modules find_needed_modules(mf, scripts, includes, packages) File "build/bdist.macosx-10.3-i386/egg/modulegraph/find_modules.py", line 171, in find_needed_modules mf.import_hook(mod) File "build/bdist.macosx-10.3-i386/egg/modulegraph/modulegraph.py", line 246, in import_hook m = self.load_tail(q, tail) File "build/bdist.macosx-10.3-i386/egg/modulegraph/modulegraph.py", line 309, in load_tail raise ImportError, "No module named " + mname ImportError: No module named PyQt4._qt > /Users/licia/dieta/build/bdist.macosx-10.3-i386/egg/modulegraph/modulegraph.py(309)load_tail() I'm working with: Python 2.5 under /Library/Frameworks Qt-4.3.4 under /usr/local/Trolltech/Qt-4.3.4 PyQt-4.3.3 Please, I need your help! Thank in advance. Ciao Licia -- View this message in context: http://www.nabble.com/-pythonmac-sig--Py2app-and-Driver-not-loaded-error-from-PyQt4%2Bsqlite-tp21610538p21610538.html Sent from the Python - pythonmac-sig mailing list archive at Nabble.com. ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
[Pythonmac-SIG] Qt.so import error running a py2app's app
I was using py2app 0.3.6 on OsX Tiger and this configuration: Python 2.5.2 Qt 4.3.4 PyQt4.3.3 PyQwt 5.0.2 and every thing was working fine with this setup: setup(name = 'dieta', version = __version__, app=[{"script":"dieta.py", "icon_resources": [(1, "icons/dieta.ico")]}], data_files=[ (os.path.join("plugins","sqldrivers"), (glob.glob('/usr/local/Trolltech/Qt-4.3.4/plugins/sqldrivers/*.*'))), (os.path.join("plugins","imageformats"), (glob.glob('/usr/local/Trolltech/Qt-4.3.4/plugins/imageformats/*.*'))), ], options = {'py2app': { "compressed": 1, "optimize": 2, 'argv_emulation':1, "packages": ["encodings"], "includes":["sip", 'PyQt4.QtSvg'], 'excludes': ["Tkconstants","Tkinter","tcl"] } }, Now I upgraded my mac to SnowLeopard with: Python 2.6.1 Qt 4.6.2 PyQt4.7.3 PyQwt 5.2.1 and running py2app 0.4.2 with this setup: setup(name = 'dieta', version = __version__, app=[{"script":"dieta.py", "icon_resources": [(1, "icons/dieta.ico")]}], data_files=[ (os.path.join("plugins","sqldrivers"), (glob.glob('/Developer/Applications/Qt/plugins/sqldrivers/*.*'))), (os.path.join("plugins","imageformats"), (glob.glob('/Developer/Applications/Qt/plugins/imageformats/*.*'))), ], options = {'py2app': { "compressed": 1, "optimize": 2, 'argv_emulation':1, "packages": ["encodings"], "includes":["sip", 'PyQt4.QtSvg'], 'excludes': ["Tkconstants","Tkinter","tcl"] } }, I get an app that on startup gives me this: ImportError: '/usr/lib/python2.6/lib-dynload/PyQt4/Qt.so' not found I just started to use snow-leopard, and,really, I dodn't understand much about its strange way to use target installation directories (I'm used to linux) I found that Qt.so its been installed in /Library/Python/2.6/site-packages/PyQt4 and if I look into the app's directory structure I find Qt.so into: dieta.app/Contents/Resources/lib/python2.6/lib-dynload/PyQt4 Whats wrong with that? Why I get that error? I hope some of you will help. ciao Licia ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG