Issue2526

classification
Title: Jython (standalone) fails to initialize certain os modules if the java.io.tmpdir directory does not exist or isn't permissioned properly
Type: Severity: normal
Components: Core Versions: Jython 2.7
Milestone:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: teeohhem, zyasoft
Priority: Keywords:

Created on 2016-10-19.16:29:19 by teeohhem, last changed 2016-10-19.17:29:21 by zyasoft.

Messages
msg10966 (view) Author: Tom Alexander (teeohhem) Date: 2016-10-19.16:29:18
This was tested on the 2.7.1 standalone. A quick repo is to pass in -Dpython.cachedir=this_doesnt_exist to java when initializing the jython standalone (and maybe export TMPDIR=this_doesnt_exist when not using the standalone). Then try:
from os import kill
from os import getpid

Notice that you'll get ImportErrors saying they do not exist.

After this, create the directory "this_doesnt_exist" and notice that those modules can be loaded just fine.
msg10967 (view) Author: Jim Baker (zyasoft) Date: 2016-10-19.17:29:21
Somewhat related: #2346
History
Date User Action Args
2016-10-19 17:29:21zyasoftsetmessages: + msg10967
2016-10-19 17:04:22zyasoftsetnosy: + zyasoft
2016-10-19 16:29:19teeohhemcreate