On 9 October 2011 12:53, Bináris <wikiposta(a)gmail.com> wrote:
I think the problem is that my wiki is private and
therefore needs to be
logged in to use API.
In that case, you will get a *different* error, not the one
you
posted. It would be interesting to know which one, so people who try
to run generate_family_file.py on a private wiki get a slightly more
sensible error.
Perhaps generate_family_file.py is not prepared for
handling private wikis.
This is not what it was designed for, no. It needs the API
to get
certain variables that are hard to get otherwise. In addition, setting
up authentication is not so easy, so I'm not sure if it is worth the
effort.
If you're running locally, I would suggest turning 'private' on and
off again. For on-line wikis, I don't think it's easy to provide a
working generate_family_file.py. However, feel free to adapt the code,
it's not that hard to work with.
I tried to create the family file manually, but I get
the arror when
running:
You need read permission to use this module
Which probably means pywikipedia is not well suited to working on
private wikis at the moment - which could be a serious bug, I guess.
When running edit scripts, it tries to get some standard information
without logging in (you can see what queries it sends by running the
script with a -v flag) - things like messages and rights.
Maybe login.py /will/ work, as it has no reason to do much querying.
If that also fails, please post the output of
python login.py -v (please check for private information, but there
should be none)
and
python version.py
in a bug report.
Good luck!
Merlijn