Sorry for jumping in so late....

>>> 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 been
>>> renamed 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's
>>> module finder.
>
> I submitted a patch for python (changing email.Utils->email.utils in
> urllib, with similar patches for urllib2 and smtplib). But I agree
> that a recipe for py2app would be very good, since some people will
> run py2app against 2.5.
>
> The following recipe seems to work, but I don't know if it's really
> the right way to go. It is based on extrapolating from the current
> recipes. None of them seem to do the same job and I've not found any
> docs on writing recipes:

I hate to say this, but I don't see *HOW* to use the recipes.....

I'm running into the email issue, as well as not seeing sndhdr....

And I can't seem to find easy solution....

Can anyone point me towards a method to use py2app recipes?

                - Benjamin
>
> def check(cmd, mf):
>       m = mf.findNode('email')
>       if m is None or m.filename is None:
>               return None
>       oldNames = [
>               'base64MIME',
>               'Charset',
>               'Encoders',
>               'Errors',
>               'Generator',
>               'Header',
>               'Iterators',
>               'Message',
>               'MIMEAudio',
>               'MIMEBase',
>               'MIMEImage',
>               'MIMEMessage',
>               'MIMEMultipart',
>               'MIMENonMultipart',
>               'MIMEText',
>               'Parser',
>               'quopriMIME',
>               'Utils',
>               'message_from_string',
>               'message_from_file',
>       ]
>       oldModules = ["email." + name for name in oldNames]
>
>       return dict(
>               modules = oldModules,
>       )
>
> Regards,
>
> -- Russell
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to