[mod_python] Anyone successfully running mod_python 3.1.3/PSP on FreeBSD?

PetterHolmström petter.holmstrom at abo.fi
Mon Apr 26 10:19:43 EST 2004


Is there anybody out there who's running mod_python 3.1.3/Python Server
Pages successfully on FreeBSD? If so, how did you install it? What
version of Python are you using? The reason I ask this is that I can't
get it to work properly. I've installed both Python 2.3 and mod_python
3.1.3 from the Ports collection (on FreeBSD 5.2.1). "Ordinary"
mod_python scripts work just fine, but everytime I try to use PSP I get
this error message:

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', '/']

Now, I've read somewhere that this might have something to do with
threads, but I haven't been able to find more information on the
subject. I'd like to know whether this is an OS, an Apache, a mod_python
or a python-bug, and how to fix it.

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/20040426/dc275e8a/attachment.bin

More information about the Mod_python mailing list