PROBLEM with MOD_PYTHON
J. Clifford Dyer
webmaster at cacradicalgrace.org
Sat Oct 28 11:53:33 EDT 2006
dan84 wrote:
> I don't understand this error , in the (Apache) errorlog I read this
> message :
>
> [Sat Oct 28 14:04:03 2006] [error] make_obcallback: could not import
> mod_python.apache.\n
> [Sat Oct 28 14:04:03 2006] [error] make_obcallback: Python path being
> used "['C:\\\\Python24\\\\python24.zip', '.\\\\DLLs', '.\\\\lib',
> '.\\\\lib\\\\plat-win', '.\\\\lib\\\\lib-tk',
> 'C:\\\\Programmi\\\\Apache Group\\\\Apache2\\\\bin']".
The four backslashes look okay to me, since there are "s outside the
list, viz:
>>> mylist = [ r'C:\Python24' ]
>>> mylist
['C:\\Python24']
>>> repr(mylist)
"['C:\\\\Python24']"
Back to your question: Where is mod_python located? Is it anywhere in
this path? Go to each directory/zip file, and see if you find
mod_python. If so, is your base directory where you think it is? (use
os.getcwd() to find out). If mod_python is still not in there, where is
it? Now add THAT directory to your Python path.
Cheers,
Cliff
More information about the Python-list
mailing list