I have a python script that works fine on my computer (Python 2.7 32 bit installed). It has the following imports :
import mechanize from bs4 import BeautifulSoup from Tkinter import * import json import webbrowser
I wanted to distribute this to others so I found that we can create exe files using py2exe. I wrote a script like this:
from distutils.core import setup import py2exe setup(console=['notification.py'], options = {'py2exe' : { 'packages' : ['bs4', 'mechanize','Tkinter', 'json', 'webbrowser'] }})
This works fine on my computer but when I run it on Windows XP, I get this 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 is not a valid Win32 application.
I tried searching other threads but found none that has the same problem. So please help me fix this issue.