I found this errror message.
Mod_python error: "PythonHandler mod_python.psp"
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch
result = object(req)
File "/usr/lib/python2.4/site-packages/mod_python/psp.py", line 297, in handler
p.run()
File "/usr/lib/python2.4/site-packages/mod_python/psp.py", line 208, in run
exec code in global_scope
File "/var/www/html/ch25/clock2.psp", line 1, in ?
NameError: name 'time' is not defined
Below code is psp sourcecode that I copy from the book
Code:
<%-- import time module --%>
<%@ page imports = "time"%>
<table>
<tr>
<td style = "background-color: black">
<p class = "big" style = "color: cyan; font-size: 3em;
font-weight: bold">
<%= time.ctime() %>
</p>
</td>
</tr>
</table>
And code below is contained in my .htacess file
AddHandler mod_python .psp
PythonHandler mod_python.psp
PythonDebug On
For simple code like <%="Hello world!"%> is Ok
I use mod_python from FC4 package.
How to solve this problem.
Thanks in advance.