Home Download Buy Blog Forum Support

xml.parsers.expat is missing?

xml.parsers.expat is missing?

Postby decuman on Thu Aug 02, 2012 7:08 am

Hi Guys,

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

Code: Select all
import xml.dom.minidom as xml
dom = xml.parse('abc.xml')


which produces the following:

Code: Select all
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
decuman
 
Posts: 14
Joined: Tue Jul 10, 2012 11:53 pm

Re: xml.parsers.expat is missing?

Postby decuman on Thu Aug 02, 2012 7:48 am

Thanks all

found a solution

Code: Select all
import sys
sys.path.append("/usr/lib/python2.6/lib-dynload/")
decuman
 
Posts: 14
Joined: Tue Jul 10, 2012 11:53 pm


Return to Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 29 guests