On 19.01.2009, at 20:00, Bill wrote:
> I'm getting an error trying to get the mwlib.cgi to work for my wiki:
>
> ----
> Traceback (most recent call last):
> File "/var/www/cgi-bin/mwlib.cgi", line 43, in ?
> mwzip_logfile=MWZIP_LOGFILE,
> TypeError: __init__() takes at least 9 non-keyword arguments (6 given)
> ----
> This happens when I click on the 'PDF Version' link for a page on the
> wiki.
>
> I'm using Mediawiki 1.13.0 on CentOS
> I've got the 0.9.2 versions of mwlib and mwlib.rl installed.
Do you use the mwlib.cgi script of the same mwlib version? Are you
sure the web server (who executes the CGI script) uses this mwlib
version (i.e. has the correct PYTHONPATH)? Did you edit mwlib.cgi in
some way other than the configuration variables at the top?
In the current version of mwlib.cgi, the last lines look like this:
WSGIServer(serve.Application(
cache_dir=CACHE_DIR,
mwrender_cmd=MWRENDER,
mwrender_logfile=MWRENDER_LOGFILE,
mwzip_cmd=MWZIP,
mwzip_logfile=MWZIP_LOGFILE,
mwpost_cmd=MWPOST,
mwpost_logfile=MWPOST_LOGFILE,
queue_dir=QUEUE_DIR,
)).run()
So, the script does pass 9 arguments (not 6, as the traceback above
says) to server.Application.__init__(), which should be fine (in case
you wonder about 8 visible arguments: the 1st argument to a method
call is always the implicit argument "self").
-- Johannes Beigel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"mwlib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/mwlib?hl=en
-~----------~----~----~----~------~----~------~--~---