python - GTK Application .exe wont run on Windows XP machine -


edit: windows 7 machine 64bit , windows xp 32bit

i have made windows application using pygtk, xlrd, xlwt & xlutils. have converted python script .exe using py2exe , .exe exceutes , operates correctly on windows 7 laptop.

my problem: when port application(and dlls) on computer running windowsxp .exe fails open. cause of .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 not 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: specified procedure not found.

relevant information:

  • i use python 2.7, gtk version 2.0
  • the .exe generated using py2exe , perform on windows 7 laptop
  • i have copied whole 'dist' folder on window xp machine dll's , other files .exe

what think cause of .exe failing run on windows xp machine when works fine on windows 7 machine?

my setup.py code:

# setup.py 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 ) 

if using 64bit version of python installed on windows 7 machine creating 64 bit executables. not run on 32 bit xp system. must install 32 bit version of python use py2exe 32 bit version create executable.

otherwise py2exe can have strange issues this. recomend using pyinstaller


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -