[mod_python] Error using Session

jalil jalil at securia.com
Fri Jan 9 15:41:23 EST 2004


Today I upgraded to Python 2.3.3 and mod_python 3.1.2b fine. I am trying to use the Session
class now and when in my request handler I do something simple like:

sess = Session.Session(req)
req.write (sess.id())

I get the following error. Any idea why this happens and why python2.2 is still being 
used in mod_python? The 2.3.3 is installed in /usr/local/lib which comes first in my PATH.
I am using Redhad which seems to depend on 2.2!


Traceback (most recent call last):

  File "/usr/lib/python2.2/site-packages/mod_python/apache.py", line 338, in HandlerDispatch
    result = object(req)

  File "/development/webnotes/src/pylib/dispatch.py", line 54, in handler
    ses = Session.Session(req)

  File "/usr/lib/python2.2/site-packages/mod_python/Session.py", line 411, in Session
    timeout=timeout)

  File "/usr/lib/python2.2/site-packages/mod_python/Session.py", line 316, in __init__
    secret=secret, timeout=timeout)

  File "/usr/lib/python2.2/site-packages/mod_python/Session.py", line 170, in __init__
    self.lock()                 # lock new sid

  File "/usr/lib/python2.2/site-packages/mod_python/Session.py", line 241, in lock
    _apache._global_lock(self._req.server, self._sid)

ValueError: Failed to acquire global mutex lock

Thanks,

-Jalil




More information about the Mod_python mailing list