Issue1023671

classification
Title: Cache Dir Permission Problem XP
Type: Severity: normal
Components: Jythonc compiler Versions:
Milestone:
process
Status: closed Resolution: invalid
Dependencies: Superseder:
Assigned To: Nosy List: amak
Priority: low Keywords:

Created on 2004-09-07.13:20:55 by anonymous, last changed 2007-05-19.18:00:49 by amak.

Messages
msg933 (view) Author: Nobody/Anonymous (nobody) Date: 2004-09-07.13:20:55
While compiling from Grinder 3 on XP box:
*sys-package-mgr*: can't create package cache 
dir, 'C:\Program Files\Java\jython\cachedir\packages'

System: Sun Microsystems Inc. Java HotSpot(TM) Client 
VM 1.4.2_04-b05 on Windows XP x86 5.1

I have provided instructions from 
http://support.microsoft.com/default.aspx?scid=kb;EN-
US;326549.

Attrib on cachedir and packages dir is not showing R 
attributes. Think this is system specyfic problem.
msg934 (view) Author: Alan Kennedy (amak) Date: 2007-05-19.18:00:49
This looks like an OS specific problem, and not a jython problem. You can test this by trying  to create the cachedir directory manually from a command prompt, like so 

C:\>mkdir "C:\Program Files\Java\jython\cachedir"

If Windows won't let you do that, then there's nothing jython can do to help.

However, there should be a simple workaround.

Edit the jython registry file and change the setting 

python.cachedir = cachedir

to a directory to which you *know* you have write access. You should probably set this to an absolute path, such as

python.cachedir = C:\\temp\\cachedir

or whatever is appropriate for your local environment.

From the registry file

"""
# Set the directory to use for caches (currently just package information)
# This directory should be writable by the user
# If this is an absolute path it is used as given
# Otherwise it is interpreted relative to sys.prefix
# (typically the directory of this file)
python.cachedir = cachedir
"""
History
Date User Action Args
2004-09-07 13:20:55anonymouscreate