[mod_python] Sessions on Mac OS X

Asif Jan asif.jan at epfl.ch
Fri Jun 3 05:20:11 EDT 2005


hi ,

Does someone on this list have experience using session (in psp or in  
scripts) on Mac OS X  10.3.9 , Python 2.3  (Apple) and mod_python  
3.1.4.

I have had problems with it ; where as the same code works fine on  
linux machine with same configuration.  Is this some MAC specific  
problem?

Mod_python error: "PythonHandler mod_python.psp"

Traceback (most recent call last):

   File  
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ 
python2.3/site-packages/mod_python/apache.py", line 299, in  
HandlerDispatch
     result = object(req)

   File  
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ 
python2.3/site-packages/mod_python/psp.py", line 297, in handler
     p.run()

   File  
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ 
python2.3/site-packages/mod_python/psp.py", line 191, in run
     session = Session.Session(req)

   File  
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ 
python2.3/site-packages/mod_python/Session.py", line 389, in Session
     timeout=timeout, lock=lock)

   File  
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ 
python2.3/site-packages/mod_python/Session.py", line 294, in __init__
     timeout=timeout, lock=lock)

   File  
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ 
python2.3/site-packages/mod_python/Session.py", line 131, in __init__
     self.lock()                 # lock new sid

   File  
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ 
python2.3/site-packages/mod_python/Session.py", line 215, in lock
     _apache._global_lock(self._req.server, self._sid)

ValueError: Failed to acquire global mutex lock

Thanks in advance
Asif


Asif Jan
Research Assistant
Brain Mind Institute
Ecole Polytechnique Federale De Lausanne (EPFL)
Lausanne Switzerland

Tel +41216939529



More information about the Mod_python mailing list