Public bug reported: Binary package hint: jython
After installing the jython package, attempts to import Java API functionality seem to fail: Jython 2.1 on java1.4.2 (JIT: null) >>> import urllib Traceback (innermost last): File "<console>", line 1, in ? File "/usr/share/jython/Lib-cpython/urllib.py", line 26, in ? File "/usr/share/jython/Lib/socket.py", line 12, in ? ImportError: no module named java Here, the code causing the failure is as follows: import java.net Although Jython works without the Java API, and although the jython-gcj package appears to provide the missing support, the disconnect here seems somewhat awkward: we are importing functionality provided in the package only to find that the underlying support for the functionality is missing. I suppose that people should install jython-gcj for a "full Jython", but it doesn't seem very obvious at a glance (from the package descriptions) which package provides this experience, and I would guess that people frequently choose the wrong thing at first, then choose all available packages just to be sure. I wonder whether the package granularity isn't just confusing for people, at least with the way the packages are described at present. "Python seamlessly integrated with Java" isn't really what the jython package provides, since the API libraries are missing. And the qualification "(native support for gij)" doesn't suggest a lot to people looking for the missing .jar files. ** Affects: jython (Ubuntu) Importance: Undecided Status: New -- Jython integration with Java API seems awkward https://bugs.launchpad.net/bugs/144154 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs