This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: xml.sax.make_parser() returns "No parsers found"
Type: behavior Stage:
Components: XML Versions: Python 2.7
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: Arfrever, rkoziol7
Priority: normal Keywords:

Created on 2012-05-17 08:42 by rkoziol7, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg160954 - (view) Author: Robert Koziol (rkoziol7) Date: 2012-05-17 08:42
Hi all,

It seems a little weird for me but I can not find this bug created. So I create one.

Invoking xml.sax.make_parser() returns an Exception - as in the following example:

Python 2.7.3rc2 (default, Mar 21 2012, 06:59:11)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import xml.sax
>>> xml.sax.make_parser()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/xml/sax/__init__.py", line 93, in make_parser
    raise SAXReaderNotAvailable("No parsers found", None)
xml.sax._exceptions.SAXReaderNotAvailable: No parsers found


Kind regards,
Rob
msg160978 - (view) Author: Arfrever Frehtes Taifersar Arahesis (Arfrever) * (Python triager) Date: 2012-05-17 16:31
Your Python is missing pyexpat.so module, which is built only when expat library has been found. Check build log of Python to see why pyexpat.so is not available. (Maybe expat headers are not installed.)
History
Date User Action Args
2022-04-11 14:57:30adminsetgithub: 59044
2012-05-17 16:31:05Arfreversetstatus: open -> closed

nosy: + Arfrever
messages: + msg160978

resolution: not a bug
2012-05-17 08:42:52rkoziol7create