Nmap Development mailing list archives

Re: zenmap crash in NmapParser.py


From: Daniel Miller <bonsaiviking () gmail com>
Date: Tue, 20 May 2014 22:56:07 -0500

All,

I believe I have addressed this issue in r32868. If you cannot check out
the latest revision from SVN, you can try adding these lines to the top of
the zenmap/zenmapCore/NmapParser.py file:

# Prevent loading PyXML
import xml
xml.__path__ = [x for x in xml.__path__ if "_xmlplus" not in x]



On Tue, May 20, 2014 at 9:14 PM, Daniel Miller <bonsaiviking () gmail com>wrote:

On Tue, May 20, 2014 at 9:05 PM, Daniel Miller <bonsaiviking () gmail com>wrote:


Jiří, Chris, and Etienne,

Thank you for your bug reports. This crash is happening because you have
PyXML installed. Python 2's standard library provides XML support through
the xml library [1], but for legacy reasons if it detects PyXML installed,
it will import that instead [2]. The two codebases have diverged, since
PyXML has not been actively developed for over 10 years and has been
abandoned by its maintainers. Crashes of this sort are common with code
that was written for Python 2.4 (as PyXML was).

For now, your best option is to uninstall PyXML. I will continue to
research and see if there is a solution to prevent Python from importing it
if it is present. Your bug reports are appreciated.

Happy scanning,

Dan


Sorry, forgot the references:

[1] https://docs.python.org/2/library/xml.html
[2] https://fedoraproject.org/wiki/Features/RemovePyXML

_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/

Current thread: