[2.0.5] IDE: java.lang.ClassNotFoundException (org.apache.xerces.parsers.SAXParser) --- fixed in 2.0.6

Bug #1917722 reported by Rolf Siebeneick
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SikuliX
Fix Committed
Critical
RaiMan

Bug Description

********* tracked on GitHub
https://github.com/RaiMan/SikuliX1/issues/426
--------------------------------

Hello,

the following program generates an error in version 2.0.5 :

import xml.etree.ElementTree as ET
data="<food><item name='breakfast'>Idly</item><price>$2.5</price><description> Two idlys with chutney </description><calories>553</calories></food>"
myroot = ET.fromstring(data)

print(myroot.tag)

Version 2.0.4 works as expected.

Regards
Rolf

Revision history for this message
Rolf Siebeneick (sevenoak) wrote :

Sorry, I forgot to add the error-message:

[error] script [ T13 ] stopped with error in line 3
[error] java.lang.ClassNotFoundException ( org.apache.xerces.parsers.SAXParser )
[error] --- Traceback --- error source first
line: module ( function ) statement
91: expat ( __init__ ) self._reader = XMLReaderFactory.createXMLReader(_xerces_parser_name)
59: expat ( ParserCreate ) return XMLParser(encoding, namespace_separator)
1480: ElementTree ( __init__ ) parser = expat.ParserCreate(encoding, "}")
1312: ElementTree ( XML ) parser = XMLParser(target=TreeBuilder())
3: main ( <module> ) myroot = ET.fromstring(data)
[error] --- Traceback --- end --------------

RaiMan (raimund-hocke)
summary: - myroot = ET.fromstring(data) generates an error using SikuliX 2.0.5 IDE
+ [2.0.5] IDE: java.lang.ClassNotFoundException
+ (org.apache.xerces.parsers.SAXParser)
Revision history for this message
RaiMan (raimund-hocke) wrote : Re: [2.0.5] IDE: java.lang.ClassNotFoundException (org.apache.xerces.parsers.SAXParser)

Sorry, no solution currently.

You have to stick with 2.0.4 and watch the issue on GitHub.

description: updated
Changed in sikuli:
status: New → Confirmed
assignee: nobody → RaiMan (raimund-hocke)
importance: Undecided → Low
RaiMan (raimund-hocke)
Changed in sikuli:
milestone: none → 2.0.6
RaiMan (raimund-hocke)
Changed in sikuli:
status: Confirmed → Fix Committed
importance: Low → Critical
summary: [2.0.5] IDE: java.lang.ClassNotFoundException
- (org.apache.xerces.parsers.SAXParser)
+ (org.apache.xerces.parsers.SAXParser) --- fixed in 2.0.6
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.