Following imports:
import pyodbc, sys, smtplib, os
from datetime import date
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from email.mime.base import MIMEBase
import email.iterators
import email.generator
from email import Encoders
Works ok when creating exe with py2exe in Python2.6 but does not in Python2.5
The following modules appear to be missing ['email.Encoders', 'email.Generator', 'email.Iterators', 'email.MIMEText', 'email.Utils', 'email.base64MIME']
Setup.py:
from distutils.core import setup
import py2exe, glob
import modulefinder
modulefinder.AddPackagePath("mail.mime", "base")
modulefinder.AddPackagePath("mail.mime", "multipart")
modulefinder.AddPackagePath("mail.mime", "nonmultipart")
modulefinder.AddPackagePath("mail.mime", "audio")
modulefinder.AddPackagePath("mail.mime", "image")
modulefinder.AddPackagePath("mail.mime", "message")
modulefinder.AddPackagePath("mail.mime", "application")
setup(
console=['capfile_tester.py'],
options = { "py2exe": { "includes": "decimal, datetime, email" } })
I thought i fixed a problem but unfortunately i have to try python2.5.