xml.sax._exceptions.SAXReaderNotAvailable

iwcook58 at gmail.com iwcook58 at gmail.com
Sun Jan 9 19:44:10 EST 2005


I am having a problem running py2exe on my computer.

When running the exe that has been generated by py2exe the following
error comes up.

C:\MyPython\dist>kirbyutils.exe kirby350.xml
Traceback (most recent call last):
File "kirbyutils.py", line 292, in ?
File "kirbyutils.py", line 261, in main
File "xml\sax\sax2exts.pyc", line 37, in make_parser
File "xml\sax\saxexts.pyc", line 77, in make_parser
xml.sax._exceptions.SAXReaderNotAvailable: No parsers found

I'm baffled.
I have searched google. There are lots of threads about
"xml.sax._exceptions.SAXReaderNotAvailable: No parsers found" but I do
not understand what is wrong.

There is thread
http://groups-beta.google.com/group/comp.lang.python/browse_thread/thread/4cb60885adde0cf3/f47d9aeaa584b8c6?q=xml.sax._exceptions.SAXReaderNotAvailable&_done=%2Fgroup%2Fcomp.lang.python%2Fsearch%3Fq%3Dxml.sax._exceptions.SAXReaderNotAvailable%26start%3D0%26scoring%3Dd%26&_doneTitle=Back+to+Search&&d#f47d9aeaa584b8c6

that made a suggestion or two basically to check xml has been
installed.

Here are my results..

C:\MyPython>\Python23\python.exe
Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)]
on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import xml
>>> print xml
<module '_xmlplus' from
'C:\Python23\lib\site-packages\_xmlplus\__init__.pyc'>
>>> import xml.dom
>>> print xml.dom
<module 'xml.dom' from
'C:\Python23\lib\site-packages\_xmlplus\dom\__init__.pyc'
>
>>> import xml.dom.minidom
>>> print xml.dom.minidom
<module 'xml.dom.minidom' from
'C:\Python23\lib\site-packages\_xmlplus\dom\minid
om.pyc'>
>>

I have installed pyxml and everything I can think of..

Setup.cmd is...
setup.py py2exe -i xml.sax.drivers2.drv_pyexpat -i
win32com.gen_py.*

Setup.py is...
# setup.py
from distutils.core import setup
import py2exe
setup(console=["kirbyutils.py"],
options = {"py2exe": {"packages": ["encodings"],
"dll_excludes":["mfc71.dll"]}} )


The imports in kirbyutils.py are....
import os
import zipfileext
import zipfile
import sys
import xml.sax as sax
import xml.sax.handler
import fnmatch
import shutil
import binascii
import time
import filecmp




What am I missing??

Thanks in advance.


Ian Cook
(Freeware author of Kirby Alarm And Task Scheduler www.kirbyfooty.com)




More information about the Python-list mailing list