I´m a spanish python lover who wanted to develop for his loving aluminium
My application tries to make a bridge between Tumblr and Twitter, making my
last Tumblr post to appear in my Twitter timeline. I´m a user of both
systems and this makes my life easier.
I made a gui with with 3 textform, one for Tumblr feed and two for Twitter
If a build this on my machine all works great, but if my source is built in
other machine (same XCode 3.0 and Leopard version 10.5.2, and Mac of course)
a import error appear.
And I´m unable to build using py2app :/
A friendly hand will be welcome,
You can download source from http://www.megaupload.com/es/?d=NTIO0580
From: Frederik De Bleser <frederik@pa...> - 2008-11-25 19:03:20
After some more digging, I found out that XCode munges the original
file hierarchy of your libraries. If you look inside Twite.app/
Contents/Resources, you'll see that scanner.py is in the root folder,
although it should be inside of the simplejson folder.
Here's the solution:
1. Download a new simplejson version from http://pypi.python.org/pypi/simplejson
, and replace the old copy. Also, make sure there are no
simplejson.py files in the root of your project.
2. Delete the folder reference to simplejson in your XCode project,
and do a Resources > Right click > add existing files... > [ your new
simplejson folder] > Create folder references. This last step is very
important, and makes sure the package hierarchy is maintained.
3. Somewhere in your project was a reference to Scanner, with a
capital 'S'. Replace that with a lowercase 's'.
3. Do a clean build of your project, so no extraneous simplejson.py
files clutter up the system.
Here's a version that includes the above changes: