Hi, On Thu, 16 Mar 2017 12:25:46 +0100 Ole Streicher <[email protected]> wrote: > Package: jython > Version: 2.5.3-15 > Severity: normal > > when I use jython to import from a jar as a user, I get the following > messages: > > >>> import sys > >>> sys.path.append('/usr/share/java/adql.jar') > >>> import adql > *sys-package-mgr*: processing new jar, '/usr/share/java/adql-1.3.jar' > *sys-package-mgr*: can't write cache file for '/usr/share/java/adql-1.3.jar' > *sys-package-mgr*: can't write index file > > since the cache dir is not writeable for the ordinary user. > Maybe this should have been set to the user's home dir if started by a user?
Doh! This was supposed to be fixed by release 2.5.3-12. Big fail /o\ My mistake was to change CACHEDIR_DEFAULT_NAME only. The problem is that when the cachedir path is not absolute, it is considered relative to the installation prefix: /usr/share/jython. How about considering it relative to - say - $HOME/.jython instead? Thanks, _g.
signature.asc
Description: OpenPGP digital signature
__ This is the maintainer address of Debian's Java team <http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers>. Please use [email protected] for discussions and questions.

