anyone get one of the python apache modules to work with 2.1?

Brandon Long blong at fiction.net
Tue Aug 28 06:27:09 EDT 2001


I've tried PyApache 4.25, mod_python 2.7.6 and mod_snake 0.5.0 (and the
latest mod_snake from CVS yesterday), and none of them seem to work.

PyApache will work in SingleIntepreter mode, but without that on, it
only works the first time through the CGI per apache child process.
Ever follow on will fail to import some random module.

mod_python seems unable to keep the interpreters PyDict around, it 
aborts or core dumps because its NULL.

mod_snake works fine with the simple hello_world example, but trying to
the use the snake_lib/mod_snake_cgi doesn't even make it through apache
startup.  It appears that apache tries to import mod_snake_cgi twice,
and on the second time it segfaults attempting to load time.so

Redhat 6.1 / Linux 2.2.12
Apache 1.3.20
Python 2.1

I've tried with and without threads (for python).  PyApache I tried both
as a shared apache module and compiled in, all the others I've been
trying as shared modules.

I also noticed that none of these play nice enough such that you could
have two of them loaded into one apache server.  Its probably not that
important.

Any ideas?  Does anyone have a working configuration similar to this,
and if so, what was the magic incantation?

Brandon
-- 
  "I discovered that I can write code in my head while you complain
       about your job all night."  -- Dilbert 05/18/2001
                                         http://www.fiction.net/blong/




More information about the Python-list mailing list