OSX application built with py2app can't see bundled PySide module?

Discussion in 'Python' started by Aaron Scott, Sep 1, 2011.

  1. Aaron Scott

    Aaron Scott Guest

    I'm trying to deploy a Python app on OSX that was built with PySide. py2app packages it without issue, copying and linking a lot of PySide and Qt files in the process. But then, when I try to run the built app, I get this error:

    Traceback (most recent call last):
    File "/Users/sequence/Desktop/code/dailies/dist/dailies_v02.app/Contents/Resources/__boot__.py", line 31, in <module>
    _run('dailies_v02.py')
    File "/Users/sequence/Desktop/code/dailies/dist/dailies_v02.app/Contents/Resources/__boot__.py", line 28, in _run
    execfile(path, globals(), globals())
    File "/Users/sequence/Desktop/code/dailies/dist/dailies_v02.app/Contents/Resources/dailies_v02.py", line 9, in <module>
    from PySide.QtCore import *
    File "PySide/__init__.pyc", line 2, in <module>
    File "PySide/private.pyc", line 2, in <module>
    File "PySide/QtCore.pyc", line 18, in <module>
    File "PySide/QtCore.pyc", line 15, in __load
    ImportError: '/usr/lib/python2.6/lib-dynload/PySide/QtCore.so' not found

    The weird thing is, QtCore.so IS included in the application bundle: py2app copied it to the build under Contents/Resources/lib/python2.6/lib-dynload/PySide/. Is there a reason the application isn't seeing this?
    Aaron Scott, Sep 1, 2011
    #1
    1. Advertising

  2. Aaron Scott

    Kevin Walzer Guest

    On 9/1/11 3:54 PM, Aaron Scott wrote:
    > I'm trying to deploy a Python app on OSX that was built with PySide. py2app packages it without issue, copying and linking a lot of PySide and Qt files in the process. But then, when I try to run the built app, I get this error:
    >
    > Traceback (most recent call last):
    > File "/Users/sequence/Desktop/code/dailies/dist/dailies_v02.app/Contents/Resources/__boot__.py", line 31, in<module>
    > _run('dailies_v02.py')
    > File "/Users/sequence/Desktop/code/dailies/dist/dailies_v02.app/Contents/Resources/__boot__.py", line 28, in _run
    > execfile(path, globals(), globals())
    > File "/Users/sequence/Desktop/code/dailies/dist/dailies_v02.app/Contents/Resources/dailies_v02.py", line 9, in<module>
    > from PySide.QtCore import *
    > File "PySide/__init__.pyc", line 2, in<module>
    > File "PySide/private.pyc", line 2, in<module>
    > File "PySide/QtCore.pyc", line 18, in<module>
    > File "PySide/QtCore.pyc", line 15, in __load
    > ImportError: '/usr/lib/python2.6/lib-dynload/PySide/QtCore.so' not found
    >
    > The weird thing is, QtCore.so IS included in the application bundle: py2app copied it to the build under Contents/Resources/lib/python2.6/lib-dynload/PySide/. Is there a reason the application isn't seeing this?


    You might want to post this question to the MacPython list--that's where
    the py2app experts are found.

    --
    Kevin Walzer
    Code by Kevin
    http://www.codebykevin.com
    Kevin Walzer, Sep 2, 2011
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. bonita
    Replies:
    0
    Views:
    448
    bonita
    Feb 20, 2006
  2. Replies:
    2
    Views:
    7,987
    craftykitty
    Aug 27, 2007
  3. Korto
    Replies:
    29
    Views:
    1,057
    Chris Uppal
    Nov 15, 2006
  4. Replies:
    0
    Views:
    282
  5. Tyson Moore

    Python 3.3 can't find PySide

    Tyson Moore, Jan 12, 2013, in forum: Python
    Replies:
    0
    Views:
    163
    Tyson Moore
    Jan 12, 2013
Loading...

Share This Page