[mod_python] PSP and unusable temporary directory

PetterHolmström petter.holmstrom at abo.fi
Wed Apr 14 12:01:01 EST 2004

Greetings from Finland,

This could be a python-problem, but as it appeared in mod_python I'll
ask here first.

We're running mod_python 3.1.3, Apache 2.0.48 and Python 2.3.3 on
FreeBSD 5.2. mod_python works fine, except for PSP, which I cannot get
to work at all. When I try to access a PSP-page, I get the following

Mod_python error: "PythonHandler mod_python.psp"

Traceback (most recent call last):

  File "/usr/local/lib/python2.3/site-packages/mod_python/apache.py", line 287, in HandlerDispatch

  File "/usr/local/lib/python2.3/site-packages/mod_python/apache.py", line 457, in import_module
    module = imp.load_module(mname, f, p, d)

  File "/usr/local/lib/python2.3/site-packages/mod_python/psp.py", line 20, in ?
    import apache, Session, util, _psp

  File "/usr/local/lib/python2.3/site-packages/mod_python/Session.py", line 35, in ?
    tempdir = tempfile.gettempdir()

  File "/usr/local/lib/python2.3/tempfile.py", line 242, in gettempdir
    tempdir = _get_default_tempdir()

  File "/usr/local/lib/python2.3/tempfile.py", line 188, in _get_default_tempdir
    raise IOError, (_errno.ENOENT,

IOError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/']

This I don't understand. /tmp is a perfectly usable temporary directory
(777 + sticky bit). Could anybody here help me or am I in the wrong

Thanks in advance,


Petter Holmström
Civare, Åbo Akademi University
Axelia, Biskopsgatan 8, Room 339
Tel: +358 2 215 3508   GSM: +358 40 8395765 
Email: petter.holmstrom at abo.fi
Having a bad day? - http://www.murphys-laws.com
Get my public GnuPG-key from http://www.keyserver.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://mailman.modpython.org/pipermail/mod_python/attachments/20040414/2189338d/attachment.bin

More information about the Mod_python mailing list