I am continuously trying to deploy my pyside project with py2app. The major
problem is " ImportError: '/usr/lib/python2.6/lib-dynload/PySide/QtCore.so'
not found" See the detailed error log below. I did not have an error if
Import PySide in my python console. When I ran my deployed app, it gave me
the following error. Any ideas? Thanks.


11/18/11 11:24:28 PM [0x0-0x3b73b7].org.shuge.fetion[7036] Traceback (most
recent call last):
11/18/11 11:24:28 PM [0x0-0x3b73b7].org.shuge.fetion[7036]  File
"/Users/gan/Documents/workspace/sitemap/dist/foo.app/Contents/Resources/__boot__.py",
line 36, in <module>
11/18/11 11:24:28 PM [0x0-0x3b73b7].org.shuge.fetion[7036]    _run('foo.py')
11/18/11 11:24:28 PM [0x0-0x3b73b7].org.shuge.fetion[7036]  File
"/Users/gan/Documents/workspace/sitemap/dist/foo.app/Contents/Resources/__boot__.py",
line 33, in _run
11/18/11 11:24:28 PM [0x0-0x3b73b7].org.shuge.fetion[7036]
 execfile(path, globals(), globals())
11/18/11 11:24:28 PM [0x0-0x3b73b7].org.shuge.fetion[7036]  File
"/Users/gan/Documents/workspace/sitemap/dist/foo.app/Contents/Resources/foo.py",
line 10, in <module>
11/18/11 11:24:28 PM [0x0-0x3b73b7].org.shuge.fetion[7036]    from PySide
import QtGui
11/18/11 11:24:28 PM [0x0-0x3b73b7].org.shuge.fetion[7036]  File
"PySide/__init__.pyc", line 2, in <module>
11/18/11 11:24:28 PM [0x0-0x3b73b7].org.shuge.fetion[7036]  File
"PySide/private.pyc", line 2, in <module>
11/18/11 11:24:28 PM [0x0-0x3b73b7].org.shuge.fetion[7036]  File
"PySide/QtCore.pyc", line 18, in <module>
11/18/11 11:24:28 PM [0x0-0x3b73b7].org.shuge.fetion[7036]  File
"PySide/QtCore.pyc", line 15, in __load
11/18/11 11:24:28 PM [0x0-0x3b73b7].org.shuge.fetion[7036] ImportError:
'/usr/lib/python2.6/lib-dynload/PySide/QtCore.so' not found
11/18/11 11:24:29 PM foo[7036] foo Error
11/18/11 11:24:33 PM com.apple.launchd.peruser.501[109]
([0x0-0x3b73b7].org.shuge.fetion[7036])
Exited with exit code: 255
---------------------------
He Jibo
Department of Psychology,
Beckman Institute for Advanced Science and Technology
University of Illinois, Urbana Champaign,
603 East Daniel St.,
Champaign, IL 61820
website: www.hejibo.info


On Wed, Nov 16, 2011 at 2:30 AM, Srini Kommoori <[email protected]> wrote:

> You should use Makefile as well.
>
> If you look at the Makefile, there are steps like copying a local version
> of python and removing unnecessary Qt components from the bundle. For a
> simple script like what you have, bundle should be ~30M.
>
> -Srini
>
>
> On Tue, Nov 15, 2011 at 8:16 PM, He Jibo <[email protected]> wrote:
>
>> Hi, Srini,
>>
>> I created Safebox.py, with the following three lines of code.
>> *outfile = open('outfile.txt','w')*
>> *print >>outfile,'hello world'*
>> *outfile.close()*
>>
>> Then I download your deployment code at
>> https://github.com/srinikom/pyside-macbuild-scripts. I just disabled
>> DATA_FILES = [('assets')] and the Crypto package. Everything else is the
>> same.
>>
>> I am using 64bit Mac osx.
>>
>> The output file is over 200M, and I cannot run it on a 64 bit mac.
>>
>>
>> ---------------------------
>> He Jibo
>> Department of Psychology,
>> Beckman Institute for Advanced Science and Technology
>> University of Illinois, Urbana Champaign,
>> 603 East Daniel St.,
>> Champaign, IL 61820
>> website: www.hejibo.info
>>
>>
>> On Tue, Nov 15, 2011 at 10:10 PM, Srini Kommoori <[email protected]>wrote:
>>
>>> Are you saying .app bundle is 200MB? That is pretty high for a bundle.
>>> Not sure what is going on. Did you use the same template scripts that I
>>> posted to github?
>>>
>>> -Srini
>>>
>>>
>>> On Tue, Nov 15, 2011 at 4:09 PM, He Jibo <[email protected]> wrote:
>>>
>>>> Hi, Srini,
>>>>
>>>> I am trying to pack my pyside project under mac. I tried your
>>>> pyside-macbuild-scripts, but failed.
>>>> A simple test script like below generates over 200MB after packing. And
>>>> I cannot run it under 64bit mac. I am not sure whether I can run it under
>>>> 32 bit mac. Can you help me out? Thanks.
>>>>
>>>> outfile = open('outfile.txt','w')
>>>> print >>outfile,'hello world'
>>>> outfile.close()
>>>>
>>>>
>>>> On Fri, Nov 11, 2011 at 5:35 PM, Srini Kommoori <[email protected]>wrote:
>>>>
>>>>> You can download what I used for Safebox here.
>>>>>
>>>>> https://github.com/srinikom/pyside-macbuild-scripts
>>>>>
>>>>> -Srini
>>>>>
>>>>>
>>>>> On Fri, Nov 11, 2011 at 3:12 PM, He Jibo <[email protected]> wrote:
>>>>>
>>>>>> Hi, Srini,
>>>>>>
>>>>>> Thanks for sharing. Can you describe how you make an installer and
>>>>>> pack PySide project for a mac computer? Thanks.
>>>>>>
>>>>>> ---------------------------
>>>>>> He Jibo
>>>>>> Department of Psychology,
>>>>>> Beckman Institute for Advanced Science and Technology
>>>>>> University of Illinois, Urbana Champaign,
>>>>>> 603 East Daniel St.,
>>>>>> Champaign, IL 61820
>>>>>> website: www.hejibo.info
>>>>>>
>>>>>>
>>>>>> On Fri, Nov 11, 2011 at 4:48 PM, Srini Kommoori <[email protected]>wrote:
>>>>>>
>>>>>>> Hi Guys,
>>>>>>>
>>>>>>> I have just released an application based on PySide. It was quite a
>>>>>>> gig and PySide helped a lot in getting this built.
>>>>>>>
>>>>>>> http://safebox.fabulasolutions.com/ - Safebox for ur Dropbox
>>>>>>>
>>>>>>> I will be open sourcing another PySide app that I developed in few
>>>>>>> days. This might help folks get ramped up from coding to making builds 
>>>>>>> on
>>>>>>> windows and mac.
>>>>>>>
>>>>>>> thanks
>>>>>>> -Srini
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> PySide mailing list
>>>>>>> [email protected]
>>>>>>> http://lists.pyside.org/listinfo/pyside
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
_______________________________________________
PySide mailing list
[email protected]
http://lists.pyside.org/listinfo/pyside

Reply via email to