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

  • SEARCH
  • Home
  • 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 61077
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T18:15:44+00:00 2026-05-10T18:15:44+00:00

I’ve written a setup.py script for py2exe, generated an executable for my python GUI

  • 0

I’ve written a setup.py script for py2exe, generated an executable for my python GUI application and I have a whole bunch of files in the dist directory, including the app, w9xopen.exe and MSVCR71.dll. When I try to run the application, I get an error message that just says ‘see the logfile for details’. The only problem is, the log file is empty.

The closest error I’ve seen is ‘The following modules appear to be missing’ but I’m not using any of those modules as far as I know (especially since they seem to be of databases I’m not using) but digging up on Google suggests that these are relatively benign warnings.

I’ve written and packaged a console application as well as a wxpython one with py2exe and both applications have compiled and run successfully. I am using a new python toolkit called dabo, which in turn makes uses of wxpython modules so I can’t figure out what I’m doing wrong. Where do I start investigating the problem since obviously the log file hasn’t been too useful?

Edit 1: The python version is 2.5. py2exe is 0.6.8. There were no significant build errors. The only one was the bit about ‘The following modules appear to be missing…’ which were non critical errors since the packages listed were ones I was definitely not using and shouldn’t stop the execution of the app either. Running the executable produced a logfile which was completely empty. Previously it had an error about locales which I’ve since fixed but clearly something is wrong as the executable wasn’t running. The setup.py file is based quite heavily on the original setup.py generated by running their ‘app wizard’ and looking at the example that Ed Leafe and some others posted. Yes, I have a log file and it’s not printing anything for me to use, which is why I’m asking if there’s any other troubleshooting avenue I’ve missed which will help me find out what’s going on.

I have even written a bare bones test application which simply produces a bare bones GUI – an empty frame with some default menu options. The code written itself is only 3 lines and the rest is in the 3rd party toolkit. Again, that compiled into an exe (as did my original app) but simply did not run. There were no error output in the run time log file either.

Edit 2: It turns out that switching from ‘windows’ to ‘console’ for initial debugging purposes was insightful. I’ve now got a basic running test app and on to compiling the real app!

The test app:

 import dabo app = dabo.dApp() app.start() 

The setup.py for test app:

 import os import sys import glob from distutils.core import setup import py2exe import dabo.icons daboDir = os.path.split(dabo.__file__)[0]  # Find the location of the dabo icons: iconDir = os.path.split(dabo.icons.__file__)[0] iconSubDirs = [] def getIconSubDir(arg, dirname, fnames):     if '.svn' not in dirname and dirname[-1] != '\\':         icons = glob.glob(os.path.join(dirname, '*.png'))         if icons:             subdir = (os.path.join('resources', dirname[len(arg)+1:]), icons)             iconSubDirs.append(subdir) os.path.walk(iconDir, getIconSubDir, iconDir)  # locales: localeDir = '%s%slocale' % (daboDir, os.sep) locales = [] def getLocales(arg, dirname, fnames):   if '.svn' not in dirname and dirname[-1] != '\\':     mo_files = tuple(glob.glob(os.path.join(dirname, '*.mo')))     if mo_files:       subdir = os.path.join('dabo.locale', dirname[len(arg)+1:])       locales.append((subdir, mo_files)) os.path.walk(localeDir, getLocales, localeDir)  data_files=[('resources', glob.glob(os.path.join(iconDir, '*.ico'))),         ('resources', glob.glob('resources/*'))] data_files.extend(iconSubDirs) data_files.extend(locales)  setup(name='basicApp',         version='0.01',         description='Test Dabo Application',         options={'py2exe': {                 'compressed': 1, 'optimize': 2, 'bundle_files': 1,                 'excludes': ['Tkconstants','Tkinter','tcl',                  '_imagingtk', 'PIL._imagingtk',                 'ImageTk', 'PIL.ImageTk', 'FixTk', 'kinterbasdb',                  'MySQLdb', 'Numeric', 'OpenGL.GL', 'OpenGL.GLUT',                 'dbGadfly', 'email.Generator',                  'email.Iterators', 'email.Utils', 'kinterbasdb',                  'numarray', 'pymssql', 'pysqlite2', 'wx.BitmapFromImage'],                  'includes': ['encodings', 'locale', 'wx.gizmos','wx.lib.calendar']}},         zipfile=None,         windows=[{'script':'basicApp.py'}],          data_files=data_files ) 
  • 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-10T18:15:44+00:00Added an answer on May 10, 2026 at 6:15 pm

    You may need to fix log handling first, this URL may help.

    Later you may look for answer here.

    My answer is very general because you didn’t give any more specific info (like py2exe/python version, py2exe log, other used 3rd party libraries).

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

Sidebar

Ask A Question

Stats

  • Questions 157k
  • Answers 157k
  • 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
  • Editorial Team
    Editorial Team added an answer If you can modify your vm:TabViewModel I should change your… May 12, 2026 at 11:09 am
  • Editorial Team
    Editorial Team added an answer I fiddle with your problem for the last hour and… May 12, 2026 at 11:09 am
  • Editorial Team
    Editorial Team added an answer You can call command.Prepare() to perform this optimization. http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlcommand.prepare.aspx May 12, 2026 at 11:09 am

Related Questions

I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I am currently running into a problem where an element is coming back from
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is

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.