Robert Lilly
rclilly at lvcm.com
Tue Aug 6 18:49:53 EST 2002
I figured it out! So, for the sake of the archives, here's what I did. It turns out that there's a second mod_python folder buried several levels down inside the first one. THIS is the one that needs to go into python/Lib, as it contains the necessary libraries. I moved it out from it's hiding place and put it into python/Lib and it's "Hello world!" I've decided to ignore the EAPI warning, since I can't figure out how to re-compile mod_python.dll for Windows. The source code I downloaded from modpython.org compiles for *nix and Cygwin. Thanks, Robert -----Original Message----- From: mod_python-admin at modpython.org [mailto:mod_python-admin at modpython.org]On Behalf Of Robert Lilly Sent: Saturday, August 03, 2002 10:05 PM To: Mod_python List Subject: [mod_python] Mod_python and Apache problems Hello all, I'm trying to get Mod_python to work with Apache/1.3.26 (Win32) mod_python/2.7.6 Python/2.2.1 PHP/4.22 on Windows 2000 Professional. I get the following error when I try to access the mptest.py page: -- [Sat Aug 03 21:19:55 2002] [warn] Loaded DSO modules/mod_python.dll uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI) make_obcallback(): could not import mod_python.apache. make_obcallback(): could not call init. make_obcallback(): could not import mod_python.apache. make_obcallback(): could not call init. make_obcallback(): could not import mod_python.apache. make_obcallback(): could not call init. make_obcallback(): could not import mod_python.apache. make_obcallback(): could not call init. make_obcallback(): could not import mod_python.apache. make_obcallback(): could not call init. [Sat Aug 03 21:20:07 2002] [error] [client 192.168.123.116] python_handler: make_obcallback returned no obCallBack! -- My httpd.conf contains the following: LoadModule python_module modules/mod_python.dll AddModule mod_python.c <Directory "E:/My Documents/RCL Enterprises/Web/htdocs/python"> AddHandler python-program .py PythonHandler mptest PythonDebug on </Directory> I try to access it using http://localhost/python/mptest.py and I get a 505 Internal Server Error. The error log contains the above. Any clues about what I'm doing wrong? Does anyone have any pointers on getting Python to work under Apache on Windows 2000? TIA, Robert Lilly Apache/Python/PHP newbie! --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002 _______________________________________________ Mod_python mailing list Mod_python at modpython.org http://www.modpython.org/mailman/listinfo/mod_python --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002
|