Bugs item #3467493, was opened at 2011-12-30 07:30
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=346749…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: interwiki
Group: None
Status: Open
Resolution: Wont Fix
Priority: 5
Private: No
Submitted By:
https://www.google.com/accounts ()
Assigned to: xqt (xqt)
Summary: interwiki.py crashes if bot is blocked
Initial Comment:
I have python v2.7.2
I run a bot that operates on every wiki so it is painful to modify user-config file every
time there is a problem.
Every now and then I get all of bots interwiki operations disrupted if a wikipedia
language edition decides to block. The bot running interwiki.py crashes after trying to
edit that wiki. This is a problem because any block on any wiki effectively disables the
bot until that block is lifted.
I thought this was a feature (somehow) until I was told this could be a bug.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-12-30 08:56
Message:
You cannot know the reason of the blocking and indeed the bot itself
doesn't know it. New mediawiki release as could cause problems with the bot
as well as wrong python code, some python interpreters doesn't work well,
unicode errors are found etc. pp. Most of the smaller wikis doesn't have
sysops and blocking a bot is a emergency shut down. My bot is running on
all wikis with multiple continous tasks too. Where is the problem? First
ask for permission than run the job. My thought.
----------------------------------------------------------------------
Comment By:
https://www.google.com/accounts ()
Date: 2011-12-30 08:12
Message:
In my case my user-config.py just loops all wikis rather than me typing
them individually so that is a lot of work. Also that is unhelpful if one
is having multiple continuous interwiki.py runs which can take weeks. It is
a logistical nightmare to try to figure out which runs crashed and etc.
The bot is blocked due to it not having a bot flag (due to wiki policy
change or oversight on my part), not because of a malfunction. Indeed it is
a serious problem but does not have a technical solution. It requires me to
apply for a bot flag locally which can be a lengthy process. The point here
is all other wikis aside from the wikis blocking should have bot continuing
with its edits.
Indeed a global block would be needed in the event of a catastrophic
malfunction of interwiki.py but this would be for all bots running
interwiki.py not just for my bot as I use the latest svn repositories.
---------------
Dump of error
Updating links on page [[it:Utente:???? robot]].
Changes to be made: Robot: Adding [[ksh:Metmaacher:???? robot]]
+ [[ksh:Metmaacher:???? robot]]
NOTE: Updating live wiki...
WARNING: Your account on wikipedia:it is blocked by False.
Reason: unauthorized bot, user contacted multiple times
Editing using this account will stop the run.
NOTE: You have new messages on wikipedia:it
WARNING: Your account on wikipedia:it does not have a bot flag. Its edits
will be visible in the recent changes and it may get blocked.
Dump en (wikipedia) appended.
Traceback (most recent call last):
File "C:\Dev\SVN\pywikipedia\interwiki.py", line 2573, in <module>
main()
File "C:\Dev\SVN\pywikipedia\interwiki.py", line 2547, in main
bot.run()
File "C:\Dev\SVN\pywikipedia\interwiki.py", line 2287, in run
self.queryStep()
File "C:\Dev\SVN\pywikipedia\interwiki.py", line 2265, in queryStep
subj.finish(self)
File "C:\Dev\SVN\pywikipedia\interwiki.py", line 1713, in finish
if self.replaceLinks(page, new, bot):
File "C:\Dev\SVN\pywikipedia\interwiki.py", line 1952, in replaceLinks
status, reason, data = page.put(newtext, comment=mcomment)
File "C:\Dev\SVN\pywikipedia\wikipedia.py", line 1713, in put
self.site().checkBlocks(sysop = sysop)
File "C:\Dev\SVN\pywikipedia\wikipedia.py", line 5023, in checkBlocks
raise UserBlocked('User is blocked in site %s' % self)
pywikibot.exceptions.UserBlocked: User is blocked in site wikipedia:it
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-12-30 07:57
Message:
If a bot is blocked on a wiki, just remove it from your user-config.py. I
find it not a good idea to run a blocked bot without checking the cause.
This indeed could be a malfunction and it is a good idea to stop it in
general until this has been veryfied.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=346749…