Menu ▾ ▴

#12 mod_python examples broken

open
None
5
2003-02-11
2003-02-11
No

Mod_python error: "PythonFixupHandler pso.modpython::fixup"

Traceback (most recent call last):

File
"/usr/local/lib/python2.2/site-packages/mod_python/apache.py",
line 181, in Dispatch
module = import_module(module_name, _req)

File
"/usr/local/lib/python2.2/site-packages/mod_python/apache.py",
line 338, in import_module
module = imp.load_module(mname, f, p, d)

File
"/usr/home/thanos/public_html/pso/tests/guide/mp/pso/modpython.py",
line 26, in ?
from pso import service

File "./pso/service.py", line 31, in ?

File "./pso/request.py", line 36, in ?

File
"/usr/home/thanos/public_html/pso/tests/guide/mp/pso/url.py",
line 31, in ?
from urllib import urlencode

ImportError: cannot import name urlencode

Mod_python error: "PythonLogHandler pso.modpython::cleanup"

Traceback (most recent call last):

File
"/usr/local/lib/python2.2/site-packages/mod_python/apache.py",
line 193, in Dispatch
result = object(req)

File
"/usr/home/thanos/public_html/pso/tests/guide/mp/pso/modpython.py",
line 36, in cleanup
service.cleanup(req)

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

Discussion


Log in to post a comment.