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 6718743
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:00:28+00:00 2026-05-26T09:00:28+00:00

I have a Python 2.7.2 program with wxPython 2.8.12 and comtypes 0.6.2 dependencies on

  • 0

I have a Python 2.7.2 program with wxPython 2.8.12 and comtypes 0.6.2 dependencies on a win XP SP3 machine. I am using py2exe to produce windows distributables with the following setup:

setup(
    options = {
        "py2exe": {
                   "packages": ['wx.lib.pubsub']
                  }
    },
   windows = [
       {
           "script" : "entry.py",
       }
   ],
   data_files=[("bitmaps", ["../resources/icons/app_big.png",
                            "../resources/icons/app_medium.png",
                            "../resources/icons/app_small.png",
                            "../resources/icons/app_small_new.png",
                            "../resources/icons/app_small_bad.png",
                            "../resources/icons/cross_hover.png",
                            "../resources/icons/cross.png",
                            "../resources/icons/delete.png",
                            "../resources/icons/refresh.png",])]
)

I am also using the IEHtmlWindow control.

What is happening is that whenever I issue the command at the Python console, py2exe runs for a second with the following output:

running py2exe
* searching for required modules *

and then appears to hang indefinitely until I press Ctr+z.

I have tracked down the problem to the import :

from wx.lib.iewin import IEHtmlWindow

which seems to be causing the problem.

Any suggestions?

  • 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. Editorial Team
    Editorial Team
    2026-05-26T09:00:29+00:00Added an answer on May 26, 2026 at 9:00 am

    Solved, the problem was that comtypes generated a very large module file which was taking too much time to parse by py2exe:

    comtypes.gen._3050F1C5_98B5_11CF_BB82_00AA00BDCE0B_0_4_0

    The workaround is to patch py2exe source code (ver 0.6.9) as pointed out by Erez Bibi in his post:

    http://groups.google.com/group/wxPython-users/browse_thread/thread/52deb8a0bc1cdc5e

    and now with the setup file

    options={
                 "py2exe": {
                            'packages': ['wx.lib.pubsub'],
                            'includes': ['comtypes.gen._3050F1C5_98B5_11CF_BB82_00AA00BDCE0B_0_4_0'],
                            'skip_scan': ['comtypes.gen._3050F1C5_98B5_11CF_BB82_00AA00BDCE0B_0_4_0']
                            }
                 },
    

    everything seems to be working great once again.

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

Sidebar

Related Questions

I have a python program that reads floating point values using the following regular
I have a Python/wxPython program where the GUI is the main thread and I
I have a python program that has no windows frame and doesn't show up
I have a python program which opens a new windows to display some 'about'
I've compiled my Python program using Py2Exe, and on the client's computer we've satisfied
I have a Python program that generates a histogram using matplotlib. The problem is
I have a python program running using a parallel python. This module scales my
I have a Python program that sends keystrokes to another application using SendKeys. Some
I'm currently writing a program in python with a gui using wxpython. The program
I have a Python program that uses the threading module. Once every second, my

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.