Oliver Mellet
oliver at mellet.net
Tue Jan 27 06:28:04 EST 2004
I'm running the latest (3.12b) against the fink distribution of python, on Apache2 (mpm-worker). Like you, I had the same issue of the missing dso in the Apple distribution of python. One problem I had was that even though it was linked against the fink version of python, it was still starting the apple version in /usr/bin; you might try moving the apple version out of the way and adding a symlink to yours. > -----Original Message----- > From: mod_python-bounces at modpython.org > [mailto:mod_python-bounces at modpython.org] On Behalf Of michael geary > Sent: Monday, January 26, 2004 10:00 PM > To: mod_python at modpython.org > Subject: [mod_python] running mod_python on Panther? > > is anyone doing it? > > I had some problems with a missing libpython file in the > Apple Python install, so I downloaded 2.3 source and compiled > that with no problems. > Installed it to /usr/local/. Then compiled mod_python from > source with no problems. It installed to my apache running at > /usr/local/apache/. > > However, I'm getting a different error in my Apache log: > > make_obcallback(): could not import mod_python.apache. > make_obcallback(): could not call init > > I naively thought that mod_python was pretty much like > mod_php, and I'm finding it's rather more complex. Not that > this is a bad thing, but I'm struggling to get my feet under > me, and I'd appreciate a hand up. > > I've got these lines in my httpd.conf, is this correct: > > AddType application/x-httpd-py .py > AddHandler python-program .py > > I've also got this in a .htaccess file in the test directory: > > PythonHandler mptest > PythonDebug On > > and this test file (mptest.py): > > from mod_python import apache > > def handler(req): > req.send_http_header() > req.write("Hello World!") > return apache.OK > > anyone have any ideas where to look for a solution...? I'd > appreciate it, > > michael > > _______________________________________________ > Mod_python mailing list > Mod_python at modpython.org > http://mailman.modpython.org/mailman/listinfo/mod_python >
|