[mod_python] servlets and sessions tutorial...

Sharky (PTNet) sharky at codezone.ath.cx
Thu Jun 24 10:55:59 EDT 2004


Maybe this error tell you anything?

Mod_python error: "PythonHandler mod_python.servlet"

Traceback (most recent call last):

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

  File "/usr/lib/python2.3/site-packages/mod_python/servlet.py", line
1454, in handler
    servlet.prep()

  File "/home/sharky/public_html/mps_tutorial/_TutorialBase.py", line 28,
in prep
    HTMLPage.prep(self)

  File "/usr/lib/python2.3/site-packages/mod_python/servlet.py", line 593,
in prep
    timeout=self.session_timeout)

  File "/usr/lib/python2.3/site-packages/mod_python/Session.py", line 389,
in Session
    timeout=timeout, lock=lock)

  File "/usr/lib/python2.3/site-packages/mod_python/Session.py", line 294,
in __init__
    timeout=timeout, lock=lock)

  File "/usr/lib/python2.3/site-packages/mod_python/Session.py", line 124,
in __init__
    if self.load():

  File "/usr/lib/python2.3/site-packages/mod_python/Session.py", line 185,
in load
    dict = self.do_load()

  File "/usr/lib/python2.3/site-packages/mod_python/Session.py", line 315,
in do_load
    dbm = self._get_dbm()

  File "/usr/lib/python2.3/site-packages/mod_python/Session.py", line 302,
in _get_dbm
    result = self._dbmtype.open(self._dbmfile, 'c')

  File "/usr/lib/python2.3/anydbm.py", line 80, in open
    raise error, "db type could not be determined"

error: db type could not be determined


> Yes, many times...    :(
>
>> have you tried restarting apache?
>>
>>
>> Sharky @ Code Zone wrote:
>>
>>> Hi,
>>>
>>>     I have install mod_python and servlets to begin building some web
>>> python aplications.
>>>
>>>     I try read servlets tutorial but when i go to sessions tutorial
>>> (page 13) have some errors and the browser dont stop loading...
>>>
>>>     You can see tutorial working at
>>> http://sharky.homelinux.net/mps_tutorial/
>>>     You can see sutorial sessions error at
>>> http://sharky.homelinux.net/mps_tutorial/sessions
>>>
>>> Thanks for all
>>> Sharky @ PTNet
>>>
>>> PS.: Sorry my english, i'm from Portugal :P
>>>
>>>------------------------------------------------------------------------
>>>
>>>_______________________________________________
>>>Mod_python mailing list
>>>Mod_python at modpython.org
>>>http://mailman.modpython.org/mailman/listinfo/mod_python
>>>
>>>
>>
>
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
>



More information about the Mod_python mailing list