On 16 Jan, 2007, at 22:20, Russell E Owen wrote:
My py2app-bundled Mac application recently started failing with "no module named email.Util" when trying to display images. It turns out pyfits uses urllib which uses email.Util, which apparently has beenrenamed email.util with some kind of clever lazy import code so one can still use email.Util. Apparently the cleverness is too much for py2app'smodule finder.
The cleverness doesn't use the import statement, which is why py2app doesn't understand this. Py2exe will suffer from the same problem as it uses a simular algorithm.
Anyway, the easy workaround is to specify email.Util as a necessarymodule to import. But I'll report a python bug or submit a urllib patch.
It's unlikely that this will be fixed in Python itself, we'll have to add a recipe to py2app that works around this problem. I don't have time to look at this right now, patches are obviously welcome :-)
Ronald P.S. This is an issue with Python >= 2.5 only.
-- Russell _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig