|
Tim Bellefy
tbellefy at yahoo.com
Tue Sep 6 15:24:36 EDT 2005
Hi All,
I just installed mod_python so please bear with me...
Steps I've done:
OS: FreeBSD 4.7
Installed Python 2.4.1
Installed Apache 2.0.54
Installed mod_python 3.1.4
MOD PYTHON CONFIG:
./configure --with-apxs=/usr/local/apache2/bin/apxs --with-python=/usr/local/bin/python2.4
make
make install
Everything installed fine.
However, When I try the simple example found on modpyhon.org, I get an error.
from mod_python import apache
def handler(req):
req.write("Hello World!")
return apache.OK
APACHE http.conf
<Directory /usr/local/apache2/htdocs/test/>
Options ExecCGI
AllowOverride All
AddHandler mod_python .py
PythonHandler mptest
PythonDebug On
</Directory>
APACHE ERROR:
[Tue Sep 06 19:09:39 2005] [error] make_obcallback: could not import mod_python.apache.
WHEN RAN FROM COMMAND LINE:
Traceback (most recent call last):
File "test.py", line 2, in ?
from mod_python import apache
File "/usr/local/lib/python2.4/site-packages/mod_python/apache.py", line 28, in ?
import _apache
ImportError: No module named _apache
Any Help????
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20050906/119405b7/attachment.html
|