471,342 Members | 1,878 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,342 software developers and data experts.

mxtextools, py2app, and intel vs. PPC


I've been packaging a set of scripts using py2app, and until now the app
that results has run without issues on MacOS10.4, either intel or ppc.

The latest version made by py2app, however, only runs on intel (on which I
made the py2app package). The problem seems to be with eGenix mx base
package (which is needed for BioPython). The package when run on PPC gets
the error "No module named TextTools", although TextTools is included and
works fine on intel. If I include TextTools specifically in the Resources
folder within the package, instead I get an error "ImportError:
Inappropriate file type for dynamic loading". Again, these errors only
appeared on the ppc platform, not on intel.

I worked around the problem by including (in the Resources folder) the
TextTools from a PPC machine, and the package then runs on both machines.
This isn't a great solution, because I don't always have easy access to a
PPC machine running MacOS10.4.

I presume that the problem is that the mx package I have on the Intel
machine isn't actually a Universal binary, and so the PPC has no access to
that module. I've tried installing the mx package from source, and from
the prebuilt binary, without fixing the problem.

Anyone know if my guess is right, that the mx package isn't coming in as a
universal? And if so, if there's a way to force it to be universal, or
some other simple fix for my problem?

Thanks,

Ian
--
Ian York (ia****@panix.com) <http://www.panix.com/~iayork/>
"-but as he was a York, I am rather inclined to suppose him a
very respectable Man." -Jane Austen, The History of England
Jun 5 '07 #1
0 1152

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Bob Swerdlow | last post: by
1 post views Thread by bex | last post: by
3 posts views Thread by bsharitt | last post: by
reply views Thread by Richard Taylor | last post: by
3 posts views Thread by SPE - Stani's Python Editor | last post: by
2 posts views Thread by loren.davie | last post: by
2 posts views Thread by James Stroud | last post: by
3 posts views Thread by AdamGr | last post: by
1 post views Thread by Joe Strout | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.