Justin Ryan
jryan at qutang.net
Tue Jun 8 17:33:17 EDT 2004
Nick - thanks.. As you suggested on IM, I added the directory containing the mod_python module to PythonPath in my httpd.conf. I even went so far as to rebuild mod_python against fink's python b/c psycopg needs threading. The only thing that I noticed of any significance is that when I first tried your fix of putting the pythonpath in, I'm pretty sure the error_log message changed from an ImportError to an error about PyThread_somethingorother. Not 100% sure, but this error (which also occurs w/ cmdline python) eventually led me to rebuild against fink python. So, to sum up my current setup: Darwin OSX/Panther 10.3.3 apache2 + python23 from fink.sf.net mod_python 3.1.3 from modpython.org ./configure --with-python=/sw/bin/python --with-apxs2=/sw/sbin/apxs2 make sudo make install -=JR On Jun 7, 2004, at 8:57 AM, Nick wrote: > It looks like either a mod_python installation problem, or else Python > is not looking in your site-packages directory under the python lib. > The indication here is that Python can't import apache from > mod_python, which is the apache.py file under mod_python directory in > site-packages. > > Nick > > Justin Ryan wrote: > >> and in error_log I get: >> [Sat Jun 05 23:16:30 2004] [error] make_obcallback: could not import >> mod_python.apache. >> ImportError: No module named mod_python.apache > >
|