[mod_python] session problem in win2k

ali rmangaliag at slu.edu.ph
Fri May 28 17:17:33 EDT 2004


i am quite new to mod_python and this is my first time to use session in
modpython...

using a simple index.psp file with these contents:

<%
from mod_python import Session
test = Session.Session(req)
%>

it produces this "500 Internal Server Error"... in the apache error log, it
shows this...

[Fri May 28 15:45:41 2004] [error] [client 127.0.0.1] PythonHandler
mod_python.psp: Traceback (most recent call last):, referer: http://localhost/
[Fri May 28 15:45:41 2004] [error] [client 127.0.0.1] PythonHandler
mod_python.psp:   File "F:\Python23\Lib\site-packages\mod_python\apache.py",
line 299, in HandlerDispatch
    result = object(req), referer: http://localhost/
[Fri May 28 15:45:41 2004] [error] [client 127.0.0.1] PythonHandler
mod_python.psp:   File "F:\Python23\Lib\site-packages\mod_python\psp.py", line
297, in handler
    p.run(), referer: http://localhost/
[Fri May 28 15:45:41 2004] [error] [client 127.0.0.1] PythonHandler
mod_python.psp:   File "F:\Python23\Lib\site-packages\mod_python\psp.py", line
208, in run
    exec code in global_scope, referer: http://localhost/
[Fri May 28 15:45:41 2004] [error] [client 127.0.0.1] PythonHandler
mod_python.psp:   File "F:/htdocs/test/index.psp", line 3, in ?
    test = Session.Session(req), referer: http://localhost/
[Fri May 28 15:45:42 2004] [error] [client 127.0.0.1] PythonHandler
mod_python.psp:   File "F:\Python23\Lib\site-packages\mod_python\Session.py",
line 386, in Session
    timeout=timeout, lock=lock), referer: http://localhost/
[Fri May 28 15:45:42 2004] [error] [client 127.0.0.1] PythonHandler
mod_python.psp:   File "F:\Python23\Lib\site-packages\mod_python\Session.py",
line 358, in __init__
    timeout=timeout, lock=lock), referer: http://localhost/
[Fri May 28 15:45:42 2004] [error] [client 127.0.0.1] PythonHandler
mod_python.psp:   File "F:\Python23\Lib\site-packages\mod_python\Session.py",
line 132, in __init__
    Cookie.add_cookie(self._req, self.make_cookie()), referer:
http://localhost/
[Fri May 28 15:45:42 2004] [error] [client 127.0.0.1] PythonHandler
mod_python.psp:   File "F:\Python23\Lib\site-packages\mod_python\Session.py",
line 160, in make_cookie
    c.path = dirpath[len(docroot):], referer: http://localhost/
[Fri May 28 15:45:42 2004] [error] [client 127.0.0.1] PythonHandler
mod_python.psp: TypeError: unsubscriptable object, referer: http://localhost/

what could be my mistake???

thanks...

by the way these are my computer details...
windows 2000 prof
apache 2.0.43
python 2.3
modpython 3.1.3

note: this is what the error log shows when apache is restarted...

[Fri May 28 15:52:30 2004] [notice] mod_python: Creating 32 session mutexes
based on 0 max processes and 250 max threads.
[Fri May 28 15:52:30 2004] [notice] Parent: Created child process 2692
[Fri May 28 15:52:31 2004] [notice] mod_python: Creating 32 session mutexes
based on 0 max processes and 250 max threads.
[Fri May 28 15:52:31 2004] [notice] Child 2692: Child process is running
(720123)The filename, directory name, or volume label syntax is incorrect.  :
mod_python: Failed to reinit global mutex <null>.
[Fri May 28 15:52:31 2004] [notice] Child 2692: Acquired the start mutex.
[Fri May 28 15:52:31 2004] [notice] Child 2692: Starting 250 worker threads.




----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


More information about the Mod_python mailing list