[Pythonmac-SIG] Build python app using wxpython on intel-leopard and deploy on powerpc-tiger?
Christopher Barker
Chris.Barker at noaa.gov
Wed Oct 7 19:33:00 CEST 2009
Ned Deily wrote:
> hari jayaram <harijay at gmail.com> wrote:
>> I have gone ahead and installed python.org python 2.6 to the
>> intel-leopard laptop and with dependencies for the app i.e wx
>> (wxpython 2.8.10) , reportlab and pyyaml and the subversion build of
>> py2app. The app works fine with this python 2.6
> I am not a wx user so I should probably stop at this point before I lead
> you astray. Perhaps the resident wx/py2app expert here (hi, Chris) will
> chime in.
OK, if you insist.
> There also seems to be a wxpython-mac mailing list on google
> groups.
yes, and it's worth posting there -- I'm not sure everyone there is also
on this list.
> That said, I notice that the current wxpython installer dmg
> installs wxpython into /usr/local/lib and puts a wxredirect.pth into
> python's site-packages library;
exactly -- that's how it supports both Apple's Python and python.org's
> I don't know whether py2app is smart enough to handle that without a recipe.
It has been for me -- I've had no problems with wx and Python2.5 and
OS-X 10.4, but I haven't tried newer versions of either.
>> The app however does not
>> launch on my machine and instead reports the following error
>>
>>
"ImportError:'/Library/Frameworks/Python.Framework/Versions/2.6/lib/python2.6/
>> -lib-dynload/wx/_core_.so'
>> not found
What's odd is that it's looking in the wrong place -- as you've noticed,
the lib doesn't live there, and it should be looking inside the bundle
anyway.
Are you sure you're running the right python when you run py2app?
How big is the resulting app bundle?
Take a look in the bundle, and see what's there. ON an app of mine, for
instance, I have the wx libs in:
TheBundleName.app/Contents/Resources/lib/python2.5/lib-dynload/wx/
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the Pythonmac-SIG
mailing list