[Pythonmac-SIG] mxtextools, py2app, and intel vs. PPC

Ian York iayork at iayork.com
Tue Jun 5 13:23:39 CEST 2007


(This is an updated version of my question from yesterday, hopefully with
more, and more useful, information)

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; specifically mxtexttools,
TextTools).  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 folder 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, or 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   (iayork at panix.com)  <http://www.iayork.com/>
    "-but as he was a York, I am rather inclined to suppose him a
     very respectable Man." -Jane Austen, The History of England
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20070605/e1e53bf8/attachment.html 


More information about the Pythonmac-SIG mailing list