Thomas Waldmann wrote:
> On Tue, 2009-07-28 at 15:08 +0100, Jim Wight wrote:
>> 1.9.0beta3 is not compatible with Python 2.4. I'm getting this from 
>> run_server 
>> in flup_frontend.py:
>>
>>      mod = __import__(mod, fromlist=['WSGIServer'])
>> TypeError: __import__() takes no keyword arguments
>> Premature end of script headers: moin.cgi
>>
> 
> Can you please try whether this works for you:
> 
>     mod = __import__(mod) # when we require python 2.5, use:
>                           # __import__(mod, fromlist=['WSGIServer'])

It fails immediately at the next line with:

     WSGIServerWrapped = mod.WSGIServer
AttributeError: 'module' object has no attribute 'WSGIServer'

But

    mod = __import__(mod, None, None, ['WSGIServer'])

works - and presumably would continue to work with 2.5.

Jim

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user

Reply via email to