Bugs item #2971196, was opened at 2010-03-16 11:55
Message generated for change (Tracker Item Submitted) made by quistnix
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2971196&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: 7
Private: No
Submitted By: Anton (quistnix)
Assigned to: Nobody/Anonymous (nobody)
Summary: correct interwikilinks are being deleted
Initial Comment:
Since a couple of days interwiki.py is deleting correct interwikilinks. It hasn't done that for a long time, so something must have changed about three days ago.
Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)] on win32
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2971196&group_…
Bugs item #2970545, was opened at 2010-03-15 10:46
Message generated for change (Comment added) made by masti01
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: Open
Resolution: None
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: 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_…
Patches item #2970823, was opened at 2010-03-15 20:46
Message generated for change (Tracker Item Submitted) made by masti01
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2970823&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: masti (masti01)
Assigned to: Nobody/Anonymous (nobody)
Summary: patch for #2970545
Initial Comment:
changed pass to return
seems to be working :)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2970823&group_…
Bugs item #2970545, was opened at 2010-03-15 10:46
Message generated for change (Settings changed) 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: Open
Resolution: None
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-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 #2970264, was opened at 2010-03-14 15:37
Message generated for change (Settings changed) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2970264&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: Invalid
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Merlijn S. van Deen (valhallasw)
Summary: Unable to check blocks on IP
Initial Comment:
I have code to check blocks on users or IPs using userlib.py
Since r7979, userlib raises an exception when I try to check blocks on IPs.
Please allow this behavior again.
----------------------------------------------------------------------
>Comment By: Merlijn S. van Deen (valhallasw)
Date: 2010-03-15 14:11
Message:
No problem at all, and thanks for the report anyway :-). For future
reference, the change was as follows:
valhallasw@dorthonion:~/tmp$ svn diff -r 98:112
https://svn.toolserver.org/svnroot/nakor/almabot/unblock.py
Index: unblock.py
===================================================================
--- unblock.py (revision 98)
+++ unblock.py (revision 112)
@@ -66,7 +66,7 @@
user=userlib.User(site,username)
try:
blocked=user.isBlocked()
- except KeyError:
+ except userlib.InvalidUser:
params = {
'action' :'query',
'list' :'blocks',
Closing as invalid.
----------------------------------------------------------------------
Comment By: Nakor Wikipedia (nakor-wikipedia)
Date: 2010-03-15 04:09
Message:
Nevermind. I was tired. It is just the exception type that changed. You can
close.
----------------------------------------------------------------------
Comment By: Nakor Wikipedia (nakor-wikipedia)
Date: 2010-03-15 03:59
Message:
The script at https://svn.toolserver.org/svnroot/nakor/almabot/unblock.py
is broken since tat change.
Please either revert that change or provide a way to check blocks on IP
adresses.
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2010-03-14 23:05
Message:
if u'invalid' in user:
raise InvalidUser("User name '%s' is invalid. IP addresses
are not supported." % user['name'])
This is not a bug, this is correct behaviour. Could the reporter please
show how sensible data is found?
Closing as 'invalid' in two weeks.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2970264&group_…
Bugs item #2970545, was opened at 2010-03-15 10:46
Message generated for change (Tracker Item Submitted) made by masti01
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: Open
Resolution: None
Priority: 5
Private: No
Submitted By: masti (masti01)
Assigned to: Nobody/Anonymous (nobody)
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.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2970545&group_…
Bugs item #2970544, was opened at 2010-03-15 09:35
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2970544&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: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: cosmetic changes moves <noinclude>
Initial Comment:
using cosmetic_changes.py replaecs <noinclude> tags around interwiki, see
http://cs.wikipedia.org/w/index.php?title=Wikipedie:Vybran%C3%A1_v%C3%BDro%…
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2970544&group_…
Bugs item #2970417, was opened at 2010-03-14 23:46
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2970417&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: 5
Private: No
Submitted By: masti (masti01)
>Assigned to: xqt (xqt)
Summary: wikipedia.py error while running weblinkchecker
Initial Comment:
the following error occures while running weblinkcher on pl.wikipedia
masti@wikimedia ~/pw/pywikipedia $ python weblinkchecker.py -talk -namespace:0 -start:"I koncert fortepianowy Beethovena"
Getting 240 pages from wikipedia:pl via API...
Getting pages 1 - 125 of 240...
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 4041, 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 3907, in oneDoneApi
page2.editRestriction = editRestriction
UnboundLocalError: local variable 'editRestriction' referenced before assignment
local variable 'editRestriction' referenced before assignment
Saving history...
masti@wikimedia ~/pw/pywikipedia $ python version.py
Pywikipedia [http] trunk/pywikipedia (r8011, 2010/03/14, 18:08:34)
Python 2.6.2 (r262:71600, Oct 22 2009, 08:54:52)
[GCC 4.3.4]
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-03-15 04:21
Message:
done in r8012
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2970417&group_…
Bugs item #2970264, was opened at 2010-03-14 10:37
Message generated for change (Comment added) made by nakor-wikipedia
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2970264&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: Nobody/Anonymous (nobody)
Assigned to: Merlijn S. van Deen (valhallasw)
Summary: Unable to check blocks on IP
Initial Comment:
I have code to check blocks on users or IPs using userlib.py
Since r7979, userlib raises an exception when I try to check blocks on IPs.
Please allow this behavior again.
----------------------------------------------------------------------
Comment By: Nakor Wikipedia (nakor-wikipedia)
Date: 2010-03-14 23:09
Message:
Nevermind. I was tired. It is just the exception type that changed. You can
close.
----------------------------------------------------------------------
Comment By: Nakor Wikipedia (nakor-wikipedia)
Date: 2010-03-14 22:59
Message:
The script at https://svn.toolserver.org/svnroot/nakor/almabot/unblock.py
is broken since tat change.
Please either revert that change or provide a way to check blocks on IP
adresses.
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2010-03-14 18:05
Message:
if u'invalid' in user:
raise InvalidUser("User name '%s' is invalid. IP addresses
are not supported." % user['name'])
This is not a bug, this is correct behaviour. Could the reporter please
show how sensible data is found?
Closing as 'invalid' in two weeks.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2970264&group_…
Bugs item #2970264, was opened at 2010-03-14 10:37
Message generated for change (Comment added) made by nakor-wikipedia
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2970264&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: Nobody/Anonymous (nobody)
Assigned to: Merlijn S. van Deen (valhallasw)
Summary: Unable to check blocks on IP
Initial Comment:
I have code to check blocks on users or IPs using userlib.py
Since r7979, userlib raises an exception when I try to check blocks on IPs.
Please allow this behavior again.
----------------------------------------------------------------------
Comment By: Nakor Wikipedia (nakor-wikipedia)
Date: 2010-03-14 22:59
Message:
The script at https://svn.toolserver.org/svnroot/nakor/almabot/unblock.py
is broken since tat change.
Please either revert that change or provide a way to check blocks on IP
adresses.
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2010-03-14 18:05
Message:
if u'invalid' in user:
raise InvalidUser("User name '%s' is invalid. IP addresses
are not supported." % user['name'])
This is not a bug, this is correct behaviour. Could the reporter please
show how sensible data is found?
Closing as 'invalid' in two weeks.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2970264&group_…