Issue1941

classification
Title: can't create package cache dir
Type: behaviour Severity: normal
Components: Any Versions: 2.7a2
Milestone:
process
Status: closed Resolution: invalid
Dependencies: Superseder:
Assigned To: fwierzbicki Nosy List: fwierzbicki, wbrana
Priority: Keywords:

Created on 2012-06-30.16:55:17 by wbrana, last changed 2012-07-02.00:35:54 by fwierzbicki.

Messages
msg7295 (view) Author: (wbrana) Date: 2012-06-30.16:55:16
Jython trunk is trying to create sub-directory in write protected directory

*sys-package-mgr*: can't create package cache dir, '/usr/local/lib64/jython-2.7/cachedir/packages'
java.lang.ExceptionInInitializerError
	at com.kenai.jffi.Foreign.getInstance(Foreign.java:95)
	at com.kenai.jffi.Type$BuiltinTypeInfo.<clinit>(Type.java:265)
	at com.kenai.jffi.Type$Builtin.size(Type.java:216)
	at jnr.ffi.provider.jffi.NativeRuntime$TypeDelegate.size(NativeRuntime.java:153)
	at jnr.ffi.provider.AbstractRuntime.<init>(AbstractRuntime.java:48)
	at jnr.ffi.provider.jffi.NativeRuntime.<init>(NativeRuntime.java:55)
	at jnr.ffi.provider.jffi.NativeRuntime.<init>(NativeRuntime.java:39)
	at jnr.ffi.provider.jffi.NativeRuntime$SingletonHolder.<clinit>(NativeRuntime.java:51)
	at jnr.ffi.provider.jffi.NativeRuntime.getInstance(NativeRuntime.java:47)
	at jnr.ffi.provider.jffi.Provider.<init>(Provider.java:31)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at java.lang.Class.newInstance0(Class.java:355)
	at java.lang.Class.newInstance(Class.java:308)
	at jnr.ffi.FFIProvider$SystemProviderSingletonHolder.getInstance(FFIProvider.java:75)
	at jnr.ffi.FFIProvider$SystemProviderSingletonHolder.<clinit>(FFIProvider.java:64)
	at jnr.ffi.FFIProvider.getSystemProvider(FFIProvider.java:33)
	at jnr.ffi.Runtime$SingletonHolder.<clinit>(Runtime.java:37)
	at jnr.ffi.Runtime.getSystemRuntime(Runtime.java:32)
	at jnr.posix.NativePOSIX.<init>(NativePOSIX.java:9)
	at jnr.posix.BaseNativePOSIX.<init>(BaseNativePOSIX.java:29)
	at jnr.posix.LinuxPOSIX.<init>(LinuxPOSIX.java:18)
	at jnr.posix.POSIXFactory.loadLinuxPOSIX(POSIXFactory.java:81)
	at jnr.posix.POSIXFactory.loadPOSIX(POSIXFactory.java:42)
	at jnr.posix.LazyPOSIX.loadPOSIX(LazyPOSIX.java:32)
	at jnr.posix.LazyPOSIX.posix(LazyPOSIX.java:28)
	at jnr.posix.LazyPOSIX.isatty(LazyPOSIX.java:178)
	at org.python.core.io.StreamIO.isatty(StreamIO.java:234)
	at org.python.core.io.BufferedIOMixin.isatty(BufferedIOMixin.java:90)
	at org.python.core.io.TextIOBase.isatty(TextIOBase.java:175)
	at org.python.core.PyFile.file_isatty(PyFile.java:485)
	at org.python.core.PyFile.isatty(PyFile.java:480)
	at org.python.core.PySystemState.initEncoding(PySystemState.java:273)
	at org.python.core.PySystemState.<init>(PySystemState.java:216)
	at org.python.core.PySystemState.doInitialize(PySystemState.java:918)
	at org.python.core.PySystemState.initialize(PySystemState.java:828)
	at org.python.core.PySystemState.initialize(PySystemState.java:778)
	at org.python.core.PySystemState.initialize(PySystemState.java:771)
	at org.python.util.jython.run(jython.java:205)
	at org.python.util.jython.main(jython.java:137)
msg7306 (view) Author: Frank Wierzbicki (fwierzbicki) Date: 2012-07-02.00:35:53
This is expected behavior if the cache directory is readonly. If you want the cache directory somewhere other than the default, you can set the "python.cachedir" property to some other location. If you don't want caching at all you can set "python.cachedir.skip = true". More here: http://www.jython.org/jythonbook/en/1.0/ModulesPackages.html#how-jython-finds-the-jars-and-classes-to-scan
History
Date User Action Args
2012-07-02 00:35:54fwierzbickisetstatus: open -> closed
assignee: fwierzbicki
resolution: invalid
messages: + msg7306
nosy: + fwierzbicki
2012-06-30 16:55:17wbranacreate