jython can't find standard libraries
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
jython (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: jython
Using The Grinder, we came up to a quirk in jython 2.2.1 on Intrepid 32-bit. When using jython scripts from The Grinder, we use standard jython (2.2.1-1ubuntu3) and java (sun-java6-jre, jdk and bin, version 6-07-3ubuntu2) libraries, but in some cases jython cannot find these libraries.
jython.jar itself is located in /usr/share/java, whereas its libraries are located in /usr/share/
me@mylaptop:
Jython 2.2.1 on java1.6.0_07
>>> import random
Traceback (innermost last):
File "<console>", line 1, in ?
ImportError: no module named random
We also found a workaround by creating a symlink to /usr/share/