Bugs item #2973717, was opened at 2010-03-20 10:57
Message generated for change (Comment added) made by silvonen
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2973717&group_…
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: General
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Mikko Silvonen (silvonen)
Assigned to: Nobody/Anonymous (nobody)
Summary: Throttle mechanism broken?
Initial Comment:
When I ran this command on the Finnish Wikipedia, my bot made more than 20 edits per minute (instead of max. 12):
>template.py -pt:5 -always -namespace:0 "Tynkä/Ranskalainen jalkapalloilija" "Tynkä/Jalkapalloilija"
See http://fi.wikipedia.org/wiki/Toiminnot:Muokkaukset/SilvonenBot
Is the throttle mechanism broken? I don't know if this is significant, but I had also another bot run in progress at the same time.
>python version.py
Pywikipedia [http] trunk/pywikipedia (r8029, 2010/03/19, 06:06:48)
Python 2.5.4 (r254:67916, Jan 29 2009, 12:02:11) [MSC v.1310 32 bit (Intel)]
----------------------------------------------------------------------
>Comment By: Mikko Silvonen (silvonen)
Date: 2010-03-20 11:18
Message:
The bot seems to sleep the correct number of seconds upon the first edit,
but thereafter it just runs in a tight loop.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2973717&group_…
Bugs item #2973717, was opened at 2010-03-20 10:57
Message generated for change (Tracker Item Submitted) made by silvonen
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2973717&group_…
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: General
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Mikko Silvonen (silvonen)
Assigned to: Nobody/Anonymous (nobody)
Summary: Throttle mechanism broken?
Initial Comment:
When I ran this command on the Finnish Wikipedia, my bot made more than 20 edits per minute (instead of max. 12):
>template.py -pt:5 -always -namespace:0 "Tynkä/Ranskalainen jalkapalloilija" "Tynkä/Jalkapalloilija"
See http://fi.wikipedia.org/wiki/Toiminnot:Muokkaukset/SilvonenBot
Is the throttle mechanism broken? I don't know if this is significant, but I had also another bot run in progress at the same time.
>python version.py
Pywikipedia [http] trunk/pywikipedia (r8029, 2010/03/19, 06:06:48)
Python 2.5.4 (r254:67916, Jan 29 2009, 12:02:11) [MSC v.1310 32 bit (Intel)]
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2973717&group_…
Bugs item #2973428, was opened at 2010-03-19 20:50
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2973428&group_…
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: None
Priority: 5
Private: No
Submitted By: aindrij Bondarenko (paleozavr)
Assigned to: Nobody/Anonymous (nobody)
Summary: interwiki writes "blocked" while it's not true
Initial Comment:
Account of my bot isn't blocked on en-wiki, neverthelles it writes the next:
WARNING: Your account on wikipedia:en is blocked. Editing using this account wil
l stop the run.
NOTE: You have new messages on wikipedia:en
Dump uk (wikipedia) appended.
Traceback (most recent call last):
File "C:\bot3\interwiki.py", line 2400, in <module>
main()
File "C:\bot3\interwiki.py", line 2374, in main
bot.run()
File "C:\bot3\interwiki.py", line 2134, in run
self.queryStep()
File "C:\bot3\interwiki.py", line 2112, in queryStep
subj.finish(self)
File "C:\bot3\interwiki.py", line 1637, in finish
if self.replaceLinks(page, new, bot):
File "C:\bot3\interwiki.py", line 1818, in replaceLinks
status, reason, data = page.put(newtext, comment = mcomment)
File "C:\bot3\wikipedia.py", line 1528, in put
self.site().checkBlocks(sysop = sysop)
File "C:\bot3\wikipedia.py", line 4594, in checkBlocks
raise UserBlocked('User is blocked in site %s' % self)
pywikibot.exceptions.UserBlocked: User is blocked in site wikipedia:en
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-03-19 21:09
Message:
I found mw API was confusing today. It returns pages as deleted but they
where not. Maybe these bugs came from mw and are not inherited in pwb.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2973428&group_…
Bugs item #2973428, was opened at 2010-03-19 21:50
Message generated for change (Tracker Item Submitted) made by paleozavr
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2973428&group_…
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: None
Priority: 5
Private: No
Submitted By: aindrij Bondarenko (paleozavr)
Assigned to: Nobody/Anonymous (nobody)
Summary: interwiki writes "blocked" while it's not true
Initial Comment:
Account of my bot isn't blocked on en-wiki, neverthelles it writes the next:
WARNING: Your account on wikipedia:en is blocked. Editing using this account wil
l stop the run.
NOTE: You have new messages on wikipedia:en
Dump uk (wikipedia) appended.
Traceback (most recent call last):
File "C:\bot3\interwiki.py", line 2400, in <module>
main()
File "C:\bot3\interwiki.py", line 2374, in main
bot.run()
File "C:\bot3\interwiki.py", line 2134, in run
self.queryStep()
File "C:\bot3\interwiki.py", line 2112, in queryStep
subj.finish(self)
File "C:\bot3\interwiki.py", line 1637, in finish
if self.replaceLinks(page, new, bot):
File "C:\bot3\interwiki.py", line 1818, in replaceLinks
status, reason, data = page.put(newtext, comment = mcomment)
File "C:\bot3\wikipedia.py", line 1528, in put
self.site().checkBlocks(sysop = sysop)
File "C:\bot3\wikipedia.py", line 4594, in checkBlocks
raise UserBlocked('User is blocked in site %s' % self)
pywikibot.exceptions.UserBlocked: User is blocked in site wikipedia:en
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2973428&group_…
Bugs item #2972774, was opened at 2010-03-18 21:47
Message generated for change (Settings changed) made by paleozavr
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2972774&group_…
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: None
Priority: 5
Private: No
Submitted By: aindrij Bondarenko (paleozavr)
Assigned to: Nobody/Anonymous (nobody)
Summary: interwiki -links doing bad
Initial Comment:
C:\bot3>interwiki.py -links
Links from which page should be processed? Користувач:Rar/Interwiki
WARNING: Could not open 'http://uk.wikipedia.org/w/api.php?action=query&meta=sit
einfo&siprop=general%7Cnamespaces%7Cstatistics%7Cfileextensions%7Crightsinfo&for
mat=json'. Maybe the server or
your connection is down. Retrying in 1 minutes...
NOTE: Number of pages queued is 0, trying to add 60 more.
Dump uk (wikipedia) appended.
Traceback (most recent call last):
File "C:\bot3\interwiki.py", line 2400, in <module>
main()
File "C:\bot3\interwiki.py", line 2374, in main
bot.run()
File "C:\bot3\interwiki.py", line 2134, in run
self.queryStep()
File "C:\bot3\interwiki.py", line 2107, in queryStep
self.oneQuery()
File "C:\bot3\interwiki.py", line 2075, in oneQuery
site = self.selectQuerySite()
File "C:\bot3\interwiki.py", line 2048, in selectQuerySite
self.generateMore(globalvar.maxquerysize - mycount)
File "C:\bot3\interwiki.py", line 1956, in generateMore
page = self.pageGenerator.next()
File "C:\bot3\pagegenerators.py", line 804, in DuplicateFilterPageGenerator
for page in generator:
File "C:\bot3\pagegenerators.py", line 442, in LinkedPageGenerator
for page in linkingPage.linkedPages():
File "C:\bot3\wikipedia.py", line 2192, in linkedPages
thistxt = removeLanguageLinks(self.get(get_redirect=True),
File "C:\bot3\wikipedia.py", line 618, in get
self._contents = self._getEditPage(get_redirect = get_redirect, throttle = t
hrottle, sysop = sysop)
File "C:\bot3\wikipedia.py", line 686, in _getEditPage
raise NoPage(self.site(), self.aslink(forceInterwiki = True),"Page does not
exist. In rare cases, if you are certain the page does exist, look into overridi
ng family.RversionTab" )
pywikibot.exceptions.NoPage: (wikipedia:uk, u'[[uk:\u0409\xae\u0430\u0401\u0431\
u0432\u0433\u045e\xa0\u0437:Rar/Interwiki]]', 'Page does not exist. In rare case
s, if you are certain the page does exist, look into overriding family.RversionT
ab')
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2972774&group_…
Bugs item #2970545, was opened at 2010-03-15 10:46
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2970545&group_…
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: None
Group: None
Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: masti (masti01)
Assigned to: xqt (xqt)
Summary: wikipedia.py - oneDoneAPI further errors
Initial Comment:
it looks that there are some more erros in thin function. After fixing problems with editRestriction variables in # 2970417 other variables generate simmilar error:
File "/usr/home/masti/pw/pywikipedia/pagegenerators.py", line 879, in __iter__
for loaded_page in self.preload(somePages):
File "/usr/home/masti/pw/pywikipedia/pagegenerators.py", line 904, in preload
pywikibot.getall(site, pagesThisSite)
File "/usr/home/masti/pw/pywikipedia/wikipedia.py", line 4036, in getall
_GetAll(site, k, throttle, force).run()
File "/usr/home/masti/pw/pywikipedia/wikipedia.py", line 3689, in run
self.oneDoneApi(vals)
File "/usr/home/masti/pw/pywikipedia/wikipedia.py", line 3911, in oneDoneApi
page2._permalink = revisionId
UnboundLocalError: local variable 'revisionId' referenced before assignment
local variable 'revisionId' referenced before assignment
when I fixed that other appear:
Traceback (most recent call last):
File "/usr/home/masti/pw/pywikipedia/pagegenerators.py", line 879, in __iter__
for loaded_page in self.preload(somePages):
File "/usr/home/masti/pw/pywikipedia/pagegenerators.py", line 904, in preload
pywikibot.getall(site, pagesThisSite)
File "/usr/home/masti/pw/pywikipedia/wikipedia.py", line 4037, in getall
_GetAll(site, k, throttle, force).run()
File "/usr/home/masti/pw/pywikipedia/wikipedia.py", line 3689, in run
self.oneDoneApi(vals)
File "/usr/home/masti/pw/pywikipedia/wikipedia.py", line 3913, in oneDoneApi
page2._userName = username
UnboundLocalError: local variable 'username' referenced before assignment
local variable 'username' referenced before assignment
I think all of this is generate due to the fact that when an exceptio occurs there is no action and the procedure contiunues without variables beein set. So the real problem is in line 3887:
except KeyError:
pass
I think instead of pass the procedure should return.
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-03-19 07:53
Message:
fixed in r8019
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-03-17 18:40
Message:
I reverted r8011 reading pages on bulk via api for now until I found the
reason why there is no revison found for a page.
----------------------------------------------------------------------
Comment By: masti (masti01)
Date: 2010-03-15 20:49
Message:
I've submitted a patch for that #2970823
star line for pl.wikipedia is:
python weblinkchecker.py -talk -namespace:0 -start:"Lista obserwatoriów
astronomicznych"
it crashed on this article.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-03-15 19:49
Message:
you're right. Could you give me the command line you have used? I would
like to examine the reason why this exception occurs. thx.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2970545&group_…
Bugs item #2972962, was opened at 2010-03-19 05:59
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2972962&group_…
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: General
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 8
Private: No
Submitted By: Mikko Silvonen (silvonen)
>Assigned to: xqt (xqt)
Summary: Syntax error in getall() in wikipedia.py
Initial Comment:
>python version.py
Pywikipedia [http] trunk/pywikipedia (r8027, 2010/03/18, 16:52:31)
Python 2.5.4 (r254:67916, Jan 29 2009, 12:02:11) [MSC v.1310 32 bit (Intel)]
>interwiki.py -start:A
Traceback (most recent call last):
File "C:\svn\pywikipedia\interwiki.py", line 331, in <module>
import wikipedia as pywikibot
File "C:\svn\pywikipedia\wikipedia.py", line 4030
% (len(pages), iif(site.has_api(), u'via API', u'') site))
^
SyntaxError: invalid syntax
This line of code was introduced in r8027 yesterday.
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-03-19 07:18
Message:
fixed in r8029. sorry.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2972962&group_…
Bugs item #2972962, was opened at 2010-03-19 06:59
Message generated for change (Settings changed) made by silvonen
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2972962&group_…
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: General
Group: None
Status: Open
Resolution: None
>Priority: 8
Private: No
Submitted By: Mikko Silvonen (silvonen)
Assigned to: Nobody/Anonymous (nobody)
Summary: Syntax error in getall() in wikipedia.py
Initial Comment:
>python version.py
Pywikipedia [http] trunk/pywikipedia (r8027, 2010/03/18, 16:52:31)
Python 2.5.4 (r254:67916, Jan 29 2009, 12:02:11) [MSC v.1310 32 bit (Intel)]
>interwiki.py -start:A
Traceback (most recent call last):
File "C:\svn\pywikipedia\interwiki.py", line 331, in <module>
import wikipedia as pywikibot
File "C:\svn\pywikipedia\wikipedia.py", line 4030
% (len(pages), iif(site.has_api(), u'via API', u'') site))
^
SyntaxError: invalid syntax
This line of code was introduced in r8027 yesterday.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2972962&group_…
Bugs item #2972962, was opened at 2010-03-19 06:59
Message generated for change (Tracker Item Submitted) made by silvonen
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2972962&group_…
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: General
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Mikko Silvonen (silvonen)
Assigned to: Nobody/Anonymous (nobody)
Summary: Syntax error in getall() in wikipedia.py
Initial Comment:
>python version.py
Pywikipedia [http] trunk/pywikipedia (r8027, 2010/03/18, 16:52:31)
Python 2.5.4 (r254:67916, Jan 29 2009, 12:02:11) [MSC v.1310 32 bit (Intel)]
>interwiki.py -start:A
Traceback (most recent call last):
File "C:\svn\pywikipedia\interwiki.py", line 331, in <module>
import wikipedia as pywikibot
File "C:\svn\pywikipedia\wikipedia.py", line 4030
% (len(pages), iif(site.has_api(), u'via API', u'') site))
^
SyntaxError: invalid syntax
This line of code was introduced in r8027 yesterday.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2972962&group_…
Bugs item #2972774, was opened at 2010-03-18 21:47
Message generated for change (Tracker Item Submitted) made by paleozavr
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2972774&group_…
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: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: aindrij Bondarenko (paleozavr)
Assigned to: Nobody/Anonymous (nobody)
Summary: interwiki -links doing bad
Initial Comment:
C:\bot3>interwiki.py -links
Links from which page should be processed? Користувач:Rar/Interwiki
WARNING: Could not open 'http://uk.wikipedia.org/w/api.php?action=query&meta=sit
einfo&siprop=general%7Cnamespaces%7Cstatistics%7Cfileextensions%7Crightsinfo&for
mat=json'. Maybe the server or
your connection is down. Retrying in 1 minutes...
NOTE: Number of pages queued is 0, trying to add 60 more.
Dump uk (wikipedia) appended.
Traceback (most recent call last):
File "C:\bot3\interwiki.py", line 2400, in <module>
main()
File "C:\bot3\interwiki.py", line 2374, in main
bot.run()
File "C:\bot3\interwiki.py", line 2134, in run
self.queryStep()
File "C:\bot3\interwiki.py", line 2107, in queryStep
self.oneQuery()
File "C:\bot3\interwiki.py", line 2075, in oneQuery
site = self.selectQuerySite()
File "C:\bot3\interwiki.py", line 2048, in selectQuerySite
self.generateMore(globalvar.maxquerysize - mycount)
File "C:\bot3\interwiki.py", line 1956, in generateMore
page = self.pageGenerator.next()
File "C:\bot3\pagegenerators.py", line 804, in DuplicateFilterPageGenerator
for page in generator:
File "C:\bot3\pagegenerators.py", line 442, in LinkedPageGenerator
for page in linkingPage.linkedPages():
File "C:\bot3\wikipedia.py", line 2192, in linkedPages
thistxt = removeLanguageLinks(self.get(get_redirect=True),
File "C:\bot3\wikipedia.py", line 618, in get
self._contents = self._getEditPage(get_redirect = get_redirect, throttle = t
hrottle, sysop = sysop)
File "C:\bot3\wikipedia.py", line 686, in _getEditPage
raise NoPage(self.site(), self.aslink(forceInterwiki = True),"Page does not
exist. In rare cases, if you are certain the page does exist, look into overridi
ng family.RversionTab" )
pywikibot.exceptions.NoPage: (wikipedia:uk, u'[[uk:\u0409\xae\u0430\u0401\u0431\
u0432\u0433\u045e\xa0\u0437:Rar/Interwiki]]', 'Page does not exist. In rare case
s, if you are certain the page does exist, look into overriding family.RversionT
ab')
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2972774&group_…