I was using py2app 0.3.6 on OsX Tiger and this configuration:

Python 2.5.2
Qt         4.3.4
PyQt    4.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
PyQt    4.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

Reply via email to