Sublime Forum

Xml.parsers.expat is missing?

#1

Hi Guys,

I’d like to use a simple xml in my plugin and trying to parse it like that:

import xml.dom.minidom as xml dom = xml.parse('abc.xml')

which produces the following:

Traceback (most recent call last): File "<string>", line 1, in <module> File ".\xml\dom\minidom.py", line 1917, in parse File ".\xml\dom\expatbuilder.py", line 32, in <module> File ".\xml\parsers\expat.py", line 4, in <module>

Could anybody suggest any workaround for that missing module issue?
As far as I understand it is a standard python module.

Thanks in advance

0 Likes

#2

Thanks all

found a solution

import sys sys.path.append("/usr/lib/python2.6/lib-dynload/")

0 Likes