PyApache and mxDateTime
Ben Darnell
bgdarnel at my-deja.com
Sat Apr 15 21:44:37 EDT 2000
When I use the following trivial script under PyApache, it fails:
#!/usr/bin/python
print "Content-type: text/plain"
print
try:
import DateTime
except:
import traceback
import sys
sys.stderr=sys.stdout
traceback.print_exc()
Output:
Traceback (innermost last):
File "/usr/lib/cgi-bin/foo.py", line 7, in ?
import DateTime
File "/usr/lib/python1.5/site-packages/DateTime/__init__.py", line 20, in ?
from DateTime import *
File "/usr/lib/python1.5/site-packages/DateTime/DateTime.py", line 817, in ?
def add_century(year,
TypeError: call of non-function (type None)
Going without the DateTime module is not an option, as it is required for
MySQLdb. At this time, I can get by without PyApache, but I would like
to have the option of switching to a more efficient processing model
when the need arises. Is there any workaround for this problem?
-Ben
--
Ben Darnell bgdarnel at unity.nc su.edu
http://thoughtstream.org
More information about the Python-list
mailing list