fastcgi and python

Gordon McMillan gmcm at hypernet.com
Thu Oct 28 19:51:57 EDT 1999


Sunil Tripathy wrote:

>   I am trying use python for fastcgi applications on Windows NT.
>   I
> downloaded fastcgi development kit from www.fastcgi.com and also
> I downloaded the python/c api fastcgiappmodule from
> http://www.digicool.com/releases/fcgi/. When I try to build the
> fastapp.dll using MSVC++ 6.0, this is the error message I get.
> D:\fcgiappmodule.c(505) : error C2099: initializer is not a
> constant. 
[typeobject snipped]
> I would appreciate if anyone could help me to resolve the
> problem. in place of  PyObject_HEAD_INIT(&PyType_Type) i tried to
> use 0, 0, 1, NULL, 0, and I initialized Fcgietype.ob_type =
> &PyType_Type; in the initfcgiapp function. This seems to work as
> for as the compilation problem is concerned but this does not do
> anything

Yes it does. It fixes the compilation problem. (Your other 
option is to tell MSVC to compile it as C++, in which case it 
doesn't complain.)

> (i feel it exits when I invoke fcgiapp.Accept() method) 
> when I import the module fcgiapp in my python program. 

That's a different problem, and it requires a much better 
description.

one-at-a-time-ly y'rs

- Gordon




More information about the Python-list mailing list