mod_python mptest.py works publisher not

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Python_it

    #1

    mod_python mptest.py works publisher not

    I'm going to work with mod_python.

    I install mod_python 3.2.2b for python 2.4.

    If i test my install with
    mptest.py
    see this link:

    IT WORKS!

    But if i try this:

    <Directory "C:\....... ">
    AddHandler mod_python .py
    PythonHandler mod_python.publ isher
    PythonDebug On
    </Directory>



    It don't work!

    I Get the following message:

    Mod_python error: "PythonHand ler mod_python.publ isher"

    Traceback (most recent call last):

    File "C:\Program
    Files\Python24\ Lib\site-packages\mod_py thon\apache.py" , line 299, in
    HandlerDispatch
    result = object(req)

    File "C:\Program
    Files\Python24\ Lib\site-packages\mod_py thon\publisher. py", line 204, in
    handler
    module = page_cache[req]

    File "C:\Program
    Files\Python24\ Lib\site-packages\mod_py thon\cache.py", line 77, in
    __getitem__
    return self._checkitem (name)[2]

    File "C:\Program
    Files\Python24\ Lib\site-packages\mod_py thon\cache.py", line 119, in
    _checkitem
    value = self.build(key, name, opened, entry)

    File "C:\Program
    Files\Python24\ Lib\site-packages\mod_py thon\publisher. py", line 77, in
    build
    return ModuleCache.bui ld(self, key, req, opened, entry)

    File "C:\Program
    Files\Python24\ Lib\site-packages\mod_py thon\cache.py", line 367, in
    build
    module = new.module(re_n ot_word.sub('_' ,key))

    AttributeError: 'module' object has no attribute 'module'


    HELP?

Working...