mod_python mptest.py works publisher not

P

Python_it

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:
http://www.modpython.org/live/mod_python-3.2.2b/doc-html/modpython.html
IT WORKS!

But if i try this:

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

http://www.modpython.org/live/mod_python-3.2.2b/doc-html/tut-pub.html

It don't work!

I Get the following message:

Mod_python error: "PythonHandler mod_python.publisher"

Traceback (most recent call last):

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

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

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

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

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

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

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


HELP?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top