xercesImpl.jar missing from classpath on jython 2.5.2-1 start script

Bug #1089418 reported by Jussi Malinen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
jython (Ubuntu)
New
Undecided
Unassigned

Bug Description

If I install jython from aptitude the xml.etree will not work.

Steps to reproduce:

execute jython
> from xml.etree import ElementTree as ET
> ET.iterparse('some_xml_file.xml')
-> result is a traceback that says that xerces is not found.

If I install jython from installer jar distributed at jython.org, this same command sequence will work.

I managed to get this working, by adding the following line to /usr/bin/jython:

appendJar('/usr/share/java/xercesImpl.jar');

So it seems to me that the jython script created at installation is missing a jar that is needed for etree xml operations.

Versions where confirmed:
Ubuntu 12.04.1 LTS
Mint 14

Package version 2.5.2-1

Revision history for this message
Jussi Malinen (jussi-ao-malinen) wrote :

Oh, my mistake, I reported wrong ubuntu version there.

This problem is verified on these platforms:
Ubuntu 12.10
Mint 14

On Ubuntu 12.04.1 the jython version was 2.5.1-2 where this problem is not present.

Sorry for the confusion.

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.