mod_python problem :-(

Denis S. Otkidach ods at strana.ru
Wed Oct 9 11:44:37 EDT 2002


On Wed, 9 Oct 2002, Daniel Harik wrote:

DH> I've installed everything according to manual, compiled via
DH> apache apsx,a dn
DH> added LoadModule, apache loads ok and show correct
DH> signature, but when i
DH> try to run simple script from mod_perl tutorial (from
DH> doc-html dir), i get
DH> floowing output:
DH>
DH> Mod_python error: "PythonHandler welcome_test"
DH>
DH> Traceback (most recent call last):
DH>
DH>   File
DH> "/usr/lib/python2.2/site-packages/mod_python/apache.py",
DH> line 181, in
DH> Dispatch
DH>     module = import_module(module_name, _req)
DH>
DH>   File
DH> "/usr/lib/python2.2/site-packages/mod_python/apache.py",
DH> line 332, in
DH> import_module
DH>     f, p, d = imp.find_module(parts[i], path)
DH>
DH> ImportError: No module named welcome_test

Try this in apache config:
PythonPath "['/path/to/welcome_test/dir']+sys.path"

-- 
Denis S. Otkidach
http://www.python.ru/      [ru]





More information about the Python-list mailing list