By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,642 Members | 1,106 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,642 IT Pros & Developers. It's quick & easy.

Python XML SAX Error while execution

P: 5
I am new to the Python, i have written one code in python that read the
data from the XML file and based on the input from the xml file it gives
the output.
Later i converted the Python script to .exe file to run on the multiple
windows server.
The Python file is running fine when i execute script.py from the machine
where the python installed, but it gives an error when i ran the script.exe
file on the machine. Below is the error :
"AttributeError: module object has no attribute sax"


I am using Python2.7 and python 2.7 py2exe.
Please assist me to resolve this error.
Sep 28 '13 #1
Share this Question
Share on Google+
4 Replies

bvdet
Expert Mod 2.5K+
P: 2,851
It sounds like xml.sax does not exist and py2exe did not include xml.sax as a dependancy.
Sep 30 '13 #2

P: 5
Thanks for replying.

Could you please assist me how can i resolve this issue.

How can xml.sax can be included into the py2exe for the windows executeable script.
Sep 30 '13 #3

bvdet
Expert Mod 2.5K+
P: 2,851
I suggest customizing the setup.py with the includes option so you can specify which modules to include. See the py2exe WIKI.
Sep 30 '13 #4

P: 5
Thanks it got resolved ..
Oct 12 '13 #5

Post your reply

Sign in to post your reply or Sign up for a free account.