[2.0.5] xlrd: ClassNotFoundException ( org.apache.xerces.parsers.SAXParser )
hello.
i'm on a sikuli 2.0.5, openJDK 8, windows 7 64.
i'm running the following function that is supposed to do a .xlsx file comparaison.
_______
def compare_xls1(xls1, xls2):
rb1 = xlrd.open_
rb2 = xlrd.open_
i = 1
sheet1 = rb1.sheet_
sheet2 = rb2.sheet_
for rownum in range(max(
if rownum < sheet1.nrows:
row_rb1 = sheet1.
row_rb2 = sheet2.
for colnum, (c1, c2) in enumerate(
if c1 != c2:
else:
i = 0
return i
_______
the thing is, when i call for that function on a sikuli 2.0.5, the compiler throws back the following errors:
[error] script [ xlsx_test ] stopped with error in line 5
[error] java.lang.
[error] --- Traceback --- error source first
line: module ( function ) statement
91: expat ( __init__ ) self._reader = XMLReaderFactor
59: expat ( ParserCreate ) return XMLParser(encoding, namespace_
1480: ElementTree ( __init__ ) parser = expat.ParserCre
1205: ElementTree ( iterparse ) parser = XMLParser(
55: xlsx ( ensure_
55: xlsx ( ensure_
792: xlsx ( open_workbook_
130: __init__ ( open_workbook ) bk = xlsx.open_
8412: fct ( compare_xls1 ) rb1 = xlrd.open_
5: main ( <module> ) if fct.compare_
ions\\conf_
[error] --- Traceback --- end --------------
but weirdly enough sikuli 1.1.2 seems to run it without any issues.
please, could it be a potential bug for 2.0.5 that induces such behaviour ? or there might be something in the function code that needs adjustment for 2.0.5?
looking forward to a reply , thank you in advance.
PS: i also tried upgrading OpenJDK to version 16 just in case, but it didn't seem to help much
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask reda benslal for more information if necessary.