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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T00:11:11+00:00 2026-06-05T00:11:11+00:00

Edit: Windows 7 machine is 64bit and Windows XP is 32bit I have made

  • 0

Edit: Windows 7 machine is 64bit and Windows XP is 32bit

I have made a windows application using PyGTK, xlrd, xlwt & xlutils. I have converted the python script into a .exe using Py2Exe and the .exe exceutes and operates correctly on my Windows 7 laptop.

My Problem: When I port the application(and its dlls) over to a Computer running WindowsXP the .exe fails to open. What could be the cause of the .exe not working?

MyApp.exe.log error output:

C:\Users\WindowsXPUser\MyApp.exe:11: GtkWarning: `C:\Users\Windows7User\Email Contact Manipulation\dist\lib\gtk-2.0\2.10.0\engines\libwimp.dll’: %1 is not a valid Win32 application.
Traceback (most recent call last):
File “MyApp.py”, line 5, in
File “gtk__init__.pyc”, line 40, in
File “gtk_gtk.pyc”, line 12, in
File “gtk_gtk.pyc”, line 10, in __load
ImportError: DLL load failed: The specified procedure could not be found.

Relevant information:

  • I use Python 2.7, GTK version 2.0
  • The .exe is generated using Py2Exe and I perform this on my Windows 7 laptop
  • I have copied the whole ‘dist’ folder over to the Window XP machine so all the dll’s and other files are with the .exe

What do you think would be the cause of the .exe failing to run on a Windows XP machine when it works fine on my Windows 7 machine?

My setup.py code:

# setup.py
from distutils.core import setup
import py2exe, sys, os

sys.argv.append('py2exe')

setup(
    name = 'Bounceback Handler',
    description = '',
    version = '1.0',

    windows = [
                  {
                      'script': 'MyApp.py'
                  }
              ],

    options = {
                  'py2exe': {
                      'packages':'encodings',
                      'includes': 'cairo, pango, pangocairo, atk, gobject, gio',
                  }
              },

    data_files=None
)
  • 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-06-05T00:11:13+00:00Added an answer on June 5, 2026 at 12:11 am

    If you are using a 64bit version of Python installed on your windows 7 machine it is creating a 64 bit executables. This will not run on your 32 bit XP system. You must install the 32 bit version of python then use the py2exe for the 32 bit version to create your executable.

    Otherwise Py2exe can have strange issues like this. I would recomend using PyInstaller

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

Sidebar

Related Questions

I have just upgraded to a machine running Windows 7-64bit. Now in VS2008, when
using a windows EDIT control with ES_NUMBER style and with an accompanying UPDOWN control,
I'm using the Scintilla edit control on Windows (Win32, C/C++) . The control is
Writing a .NET DLL how do I find Application.ProductName ? EDIT: Obviously, importing Windows.Forms
I have a setup for an application that was recently converted to be a
I have a web hosting space which is on a Windows machine and it
I have installed on a 32bit server a IBM Rational ClearQuest and made a
On a Windows 7 machine running MySQL server 5.1.51 (both 64bit), before migrating to
We are running an web application that is using Java 64bit 5 gigs of
I have a C app (VStudio 2010, win7 64bit) running on a machine with

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.