tkinter - exe generated from a python script with Py2exe does not work on xp -


i have python script works fine on computer (python 2.7 32 bit installed). has following imports :

      import mechanize     bs4 import beautifulsoup     tkinter import *     import json     import webbrowser  

i wanted distribute others found can create exe files using py2exe. wrote script this:

      distutils.core import setup     import py2exe      setup(console=['notification.py'],         options = {'py2exe' : {             'packages' : ['bs4', 'mechanize','tkinter', 'json', 'webbrowser']         }})  

this works fine on computer when run on windows xp, error -

      traceback (most recent call last):       file "notification.py", line 3, in        file "tkinter.pyc", line 38, in        file "fixtk.pyc", line 65, in        file "_tkinter.pyc", line 12, in        file "_tkinter.pyc", line 10, in __load     importerror: dll load failed: %1 not valid win32 application.  

i tried searching other threads found none has same problem. please me fix issue.

maybe tinkiter 64 bit version gui, while windows xp version run 32bit.

check out , tell if that's case.

reason assume line:

importerror: dll load failed: %1 not valid win32 application.

combined fact tinkiter 64 bit.

python can 32 bit. works on both operating systems, 32 , 64 bit ones. tinkiter gui, different language. including 64bit add-on, 32bit application... can cause trouble. :)

suggestion: can start making app work in console interface if possible. can use gui can run in 32 bit.

for instance, can 32bit version of this

edit: added suggeston.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -