Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 49641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T16:28:07+00:00 2026-05-10T16:28:07+00:00

py2exe does not work with the standard email module Hello. I am trying to

  • 0

py2exe does not work with the standard email module

Hello. I am trying to use py2exe for converting a script into an exe. The build process shows this:


The following modules appear to be missing

[’email.Encoders’, ’email.Generator’, ’email.Iterators’, ’email.MIMEBase’, ’email.MIMEMultipart’, ’email.MIMEText’, ’email.Utils’, ’email.base64MIME’]

The executable does not work. The referenced modules are not included. I researched this on the Internet and I found out that py2exe has a problem with the Lazy import used in the standard lib email module. Unfortunately I have not succeeded in finding a workaround for this problem. Can anyone help?

Thank you,

P.S. Imports in the script look like this:

Code: Select all import string,time,sys,os,smtplib from email.MIMEMultipart import MIMEMultipart from email.MIMEBase import MIMEBase from email.MIMEText import MIMEText from email import Encoders

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T16:28:07+00:00Added an answer on May 10, 2026 at 4:28 pm

    If you don’t have to work with py2exe, bbfreeze works better, and I’ve tried it with the email module. http://pypi.python.org/pypi/bbfreeze/0.95.4

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 64k
  • Answers 64k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer The answer is that in PHP a 'false' value can… May 11, 2026 at 10:53 am
  • added an answer It is possible to do a little with VBA. For… May 11, 2026 at 10:53 am
  • added an answer Choose native if you want something simple that works and… May 11, 2026 at 10:53 am

Related Questions

py2exe does not work with the standard email module Hello. I am trying to
When using py2exe to distribute Python applications with wxPython, some MSVC DLLs are usually
I thought I heard that py2exe was able to do this, but I never
I've compiled my Python program using Py2Exe, and on the client's computer we've satisfied
I tried to package a Twisted program with py2exe, but once I run the
I've written a setup.py script for py2exe, generated an executable for my python GUI
I am using python 2.6 on XP. I have just installed py2exe, and I
how to create a good plugin engine for standalone executables created with pyInstaller, py2exe

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.