473,378 Members | 1,413 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

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:
http://www.modpython.org/live/mod_py...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_py...l/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?

Oct 12 '05 #1
0 1761

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Rolfe | last post by:
Hi, I struggled, and got mod_python running on Apache/Win2k. Follow these instructions verbatim and you shouldn't have any trouble. These instructions are based on...
2
by: digidalmation | last post by:
Hello all. I've been trying to get my linux server to run mod_python. It's a Mandrake 10 linux box, and apache/mod_python are installed from rpms. apache2-mod_python-2.0.48_3.1.3-1mdk...
3
by: Anthony Papillion II | last post by:
Hello Everyone, I have downloaded and installed mod_python and it doesn't seem to be working. I am hoping someone can give me some pointers as to what I am doing wrong. Here are the steps I've...
1
by: Manuel Pellecer | last post by:
i want to use mod_python with Apache2 and i made a .htaccess in the subdirectory where i have all my scripts: The .htacces goes like this: AddHandler mod_python .py PythonHandler mptest ...
2
by: Robert J. Hansen | last post by:
I'm not entirely certain comp.lang.python is the proper newsgroup for mod_python questions, but "comp.lang.python.web" doesn't seem to exist, so... my apologies in advance if this is considered...
4
by: Python_it | last post by:
Today I was busy to install mod_python. I have put the line LoadModule python_module libexec/mod_python.so into the httpd.conf file. It Works! Apache load mod_python /3.2.2.b Python2.4
3
by: joe jacob | last post by:
I configured apache to execute python scripts using mod_python handler. I followed below mentioned steps to configure apache. 1. In http.conf I added <Directory...
5
by: Johan | last post by:
Hi I have installed and tested this on centos, fedora and freebsd all give the same problem so I guess I missed some steps. I have compiled bot apache (2.2.4) and mod_python (3.3.1) according...
1
by: jpuopolo | last post by:
Hi, all... I am hoping that someone can help me with the magic incantation to get mod_python working on my local machine. Set up: Apache 2.2.9, mod_python 3.3.1 on Windows Vista (yes, pity...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.