Bugs item #2865343, was opened at 2009-09-23 18:59
Message generated for change (Tracker Item Submitted) made by mu301
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2865343&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: mikeu (mu301)
Assigned to: Nobody/Anonymous (nobody)
Summary: welcome.py TypeError
Initial Comment:
...has enough edits to be welcomed
Traceback (most recent call last):
File "welcome.py", line 985, in ?
for number_user in main(settingsBot):
File "welcome.py", line 842, in main
welcom = welcomer % sign
TypeError: not all arguments converted during string formatting
Pywikipedia [http] trunk/pywikipedia (r7289, 2009/09/22, 13:27:15)
Python 2.4.4 (#1, Jan 10 2007, 01:25:01) [C]
editing on en.wikiversity.org
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2865343&group_…
Patches item #2864708, was opened at 2009-09-23 08:10
Message generated for change (Tracker Item Submitted) made by vinhtantran
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2864708&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: Tran Vinh Tan (vinhtantran)
Assigned to: Nobody/Anonymous (nobody)
Summary: Add new namespaces in vi.wikisource project
Initial Comment:
There are new 4 namespaces in vi.wikisource, so I have updated ~/pywikipedia/families/wikisource.py to include this.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2864708&group_…
Bugs item #2860737, was opened at 2009-09-17 11:18
Message generated for change (Comment added) made by russblau
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2860737&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: rewrite
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: NicDumZ — Nicolas Dumazet (nicdumz)
Assigned to: Russell Blau (russblau)
Summary: pywikibot should not alter the root logger
Initial Comment:
One of our users is using himself the builtin logging module for his bots. And the fact that we call logging.basicConfig interferes with external applications using the logging module.
We also change the root logger, removing all handlers.
Can we just initialize a "pywikibot.root" logger that would be the base logger for our framework instead?
----------------------------------------------------------------------
>Comment By: Russell Blau (russblau)
Date: 2009-09-22 19:45
Message:
Fixed in r7290
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2860737&group_…
Bugs item #2860934, was opened at 2009-09-17 22:39
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2860934&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: Daniel Bengtsson (cygnus78)
Assigned to: Nobody/Anonymous (nobody)
Summary: undefined variable in getTemplates()
Initial Comment:
python version.py
Pywikipedia [http] trunk/pywikipedia (r7268, 2009/09/17, 15:52:03)
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
[GCC 4.3.3]
Traceback (most recent call last):
File "fpc.py", line 1089, in <module>
main()
File "fpc.py", line 1078, in main
checkCandidates(Candidate.park,delistPage,delist=True);
File "fpc.py", line 869, in checkCandidates
candidates = findCandidates(page,delist)
File "fpc.py", line 847, in findCandidates
templates = page.getTemplates()
File "/home/yxi/svn/pywikipedia/wikipedia.py", line 949, in getTemplates
if limit > config.special_page_limit:
NameError: global name 'limit' is not defined
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2009-09-22 15:30
Message:
done in r7289 by alexsh
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-09-22 14:42
Message:
replace limit with tllimit at line 949 and 951 in wikipedia.py to solve
this
----------------------------------------------------------------------
Comment By: Daniel Bengtsson (cygnus78)
Date: 2009-09-17 22:44
Message:
Works in revision 7253.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2860934&group_…
Bugs item #2860934, was opened at 2009-09-17 22:39
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2860934&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: Daniel Bengtsson (cygnus78)
Assigned to: Nobody/Anonymous (nobody)
Summary: undefined variable in getTemplates()
Initial Comment:
python version.py
Pywikipedia [http] trunk/pywikipedia (r7268, 2009/09/17, 15:52:03)
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
[GCC 4.3.3]
Traceback (most recent call last):
File "fpc.py", line 1089, in <module>
main()
File "fpc.py", line 1078, in main
checkCandidates(Candidate.park,delistPage,delist=True);
File "fpc.py", line 869, in checkCandidates
candidates = findCandidates(page,delist)
File "fpc.py", line 847, in findCandidates
templates = page.getTemplates()
File "/home/yxi/svn/pywikipedia/wikipedia.py", line 949, in getTemplates
if limit > config.special_page_limit:
NameError: global name 'limit' is not defined
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2009-09-22 14:42
Message:
replace limit with tllimit at line 949 and 951 in wikipedia.py to solve
this
----------------------------------------------------------------------
Comment By: Daniel Bengtsson (cygnus78)
Date: 2009-09-17 22:44
Message:
Works in revision 7253.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2860934&group_…
Bugs item #2861676, was opened at 2009-09-18 21:49
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2861676&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: 4
Private: No
Submitted By: André Malafaya Baptista (malafaya)
Assigned to: Nobody/Anonymous (nobody)
Summary: "Edit token has failed" and crash when editing pages
Initial Comment:
Pywikipedia [http] trunk/pywikipedia (r7275, 2009/09/18, 13:44:52)
Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)]
------
NOTE: Performing a recursive query first to save time....
NOTE: Nothing left to do 2
NOTE: Updating live wiki...
Sleeping for 3.5 seconds, 2009-09-18 20:38:12
Updating page [[en:Category:fr:Anatomy]] via API
Updating links on page [[fr:Cat,gorie:Lexique en fran╪ais de l'anatomie]].
Changes to be made: Ajoute: [[pt:Categoria:Anatomia (Franc^s)]]
+ [[pt:Categoria:Anatomia (Franc^s)]]
NOTE: Performing a recursive query first to save time....
NOTE: Nothing left to do 2
NOTE: Updating live wiki...
Sleeping for 8.3 seconds, 2009-09-18 20:38:17
Updating page [[fr:Cat,gorie:Lexique en fran╪ais de l'anatomie]] via API
Edit token has failed. Retrying.
Getting a token.
Sleeping for 9.1 seconds, 2009-09-18 20:38:26
Updating page [[fr:Cat,gorie:Lexique en fran╪ais de l'anatomie]] via API
Edit token has failed. Giving up.
Dump pt (wiktionary) saved
Traceback (most recent call last):
File "D:\Work\pywikipedia\interwiki.py", line 2186, in <module>
bot.run()
File "D:\Work\pywikipedia\interwiki.py", line 1888, in run
self.queryStep()
File "D:\Work\pywikipedia\interwiki.py", line 1866, in queryStep
subj.finish(self)
File "D:\Work\pywikipedia\interwiki.py", line 1423, in finish
if self.replaceLinks(page, new, bot):
File "D:\Work\pywikipedia\interwiki.py", line 1599, in replaceLinks
status, reason, data = page.put(newtext, comment = mcomment)
File "D:\Work\pywikipedia\wikipedia.py", line 1434, in put
newPage, self.site().getToken(sysop = sysop), sysop = sysop, botflag=botflag
, maxTries=maxTries)
File "D:\Work\pywikipedia\wikipedia.py", line 1665, in _putPage
return self._putPage(text, comment, watchArticle, minorEdit, newPage, token=
self.site().getToken(sysop = sysop, getagain = True), newToken = True, sysop = s
ysop)
File "D:\Work\pywikipedia\wikipedia.py", line 1682, in _putPage
solve = self.site().solveCaptcha(data)
File "D:\Work\pywikipedia\wikipedia.py", line 4851, in solveCaptcha
data = data['edit']
KeyError: 'edit'
This has been happening randomly in any wiki it updates. I forced login in all wikis before running it but it doesn't help much: it eventually runs into this exception.
I use API login.
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2009-09-22 14:31
Message:
KeyError-Bug is fixed in r7283
but why does the Edit token has failed if the login comes from api?
----------------------------------------------------------------------
Comment By: André Malafaya Baptista (malafaya)
Date: 2009-09-21 18:59
Message:
I agree with xqt.
I changed my settings to:
use_api_login = False
2 days ago and had no more problems whatsoever.
I don't know if this is a Pywikipedia's (still, it should behave better)
or MW API's problem.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-09-21 11:41
Message:
Try
use_api_login = False
in your user_config.py
This may be only a work-around (and I haven't test it) and the bug
remains. But I've found login via api isn't as stable as requested an I
don't use it.
----------------------------------------------------------------------
Comment By: Mikko Silvonen (silvonen)
Date: 2009-09-20 04:40
Message:
The latest crash was a bit different from malafaya's example: no "Edit
token has failed" message but an "Unknown Error".
...
Updating links on page [[als:Amerika (Doppelkontinent)]].
Changes to be made: Ygfüegt: [[mwl:América]]
+ [[mwl:América]]
NOTE: Updating live wiki...
Updating page [[als:Amerika (Doppelkontinent)]] via API
Unknown Error. API Error code:hookaborted
Information:The modification you tried to make was aborted by an extension
hook
Dump fi (wikipedia) saved
Traceback (most recent call last):
File "interwiki.py", line 2186, in <module>
bot.run()
File "interwiki.py", line 1888, in run
self.queryStep()
File "interwiki.py", line 1866, in queryStep
subj.finish(self)
File "interwiki.py", line 1423, in finish
if self.replaceLinks(page, new, bot):
File "interwiki.py", line 1599, in replaceLinks
status, reason, data = page.put(newtext, comment = mcomment)
File "c:\svn\pywikipedia\wikipedia.py", line 1434, in put
newPage, self.site().getToken(sysop = sysop), sysop = sysop,
botflag=botflag, maxTries=maxTries)
File "c:\svn\pywikipedia\wikipedia.py", line 1682, in _putPage
solve = self.site().solveCaptcha(data)
File "c:\svn\pywikipedia\wikipedia.py", line 4851, in solveCaptcha
data = data['edit']
KeyError: 'edit'
>python version.py
Pywikipedia [http] trunk/pywikipedia (r7278, 2009/09/19, 13:00:22)
Python 2.5.4 (r254:67916, Jan 29 2009, 12:02:11) [MSC v.1310 32 bit
(Intel)]
----------------------------------------------------------------------
Comment By: Mikko Silvonen (silvonen)
Date: 2009-09-20 04:31
Message:
My usual "interwiki.py -autonomous -start:XXX" run is now always terminated
with this error.
----------------------------------------------------------------------
Comment By: André Malafaya Baptista (malafaya)
Date: 2009-09-18 21:55
Message:
I don't know if it's relevant but this account is a Wikimedia global bot.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2861676&group_…
Bugs item #2846484, was opened at 2009-08-28 21:15
Message generated for change (Settings changed) made by malafaya
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2846484&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: Vincent Vinet (vvinet)
Assigned to: Nobody/Anonymous (nobody)
Summary: syntax errors in simple_family.py
Initial Comment:
The file does not pass syntax checking.
Attached is a patch to fix it
python pywikipedia/version.py
Pywikipedia (r-1 (unknown), 0 (unknown))
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
[GCC 4.3.3]
----------------------------------------------------------------------
>Comment By: André Malafaya Baptista (malafaya)
Date: 2009-09-21 18:30
Message:
Fixed in r7285
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2846484&group_…
Bugs item #2862543, was opened at 2009-09-20 10:35
Message generated for change (Settings changed) made by malafaya
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2862543&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: Carsrac (carsrac)
Assigned to: Nobody/Anonymous (nobody)
Summary: Outdated family file wikipedia: namespace['crh'] 6 and 7
Initial Comment:
WARNING: Outdated family file wikipedia: namespace['crh'][6] is 'Resim', but should be 'Fayl'
WARNING: Outdated family file wikipedia: namespace['crh'][7] is 'Resim muzakeresi', but should be 'Fayl muzakeresi'
python version.py
Pywikipedia [http] trunk/pywikipedia (r7277, 2009/09/18, 22:45:30)
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
[GCC 4.3.3]
----------------------------------------------------------------------
>Comment By: André Malafaya Baptista (malafaya)
Date: 2009-09-21 18:13
Message:
Fixed in r7284
----------------------------------------------------------------------
Comment By: Carsrac (carsrac)
Date: 2009-09-20 14:27
Message:
WARNING: Outdated family file wikipedia: namespace['lmo'][6] is set to
default ('File'), but should be 'Archivi'
WARNING: Outdated family file wikipedia: namespace['lmo'][7] is
'Discussioni file', but should be 'Ciciarada Archivi'
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2862543&group_…
Bugs item #2862265, was opened at 2009-09-19 18:45
Message generated for change (Settings changed) made by malafaya
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2862265&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: Duplicate
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: interwiki.py stopped working for more then two days
Initial Comment:
I try to restart my pywikipedia bot, but after two days of trying I going to file a bug report.
Please tell me what I'm doing wrong. It is from the general patchday on the wikimedia projects.
jeroen@ubuntu:~/pywikipedia$ python interwiki.py -new -family:wiktionary -lang:br -wiktionary
Traceback (most recent call last):
File "interwiki.py", line 2122, in <module>
mainpagename = site.mediawiki_message('mainpage')
File "/home/jeroen/pywikipedia/wikipedia.py", line 5417, in mediawiki_message
tree = XML(decode)
File "<string>", line 85, in XML
SyntaxError: undefined entity : line 642, column 148
jeroen@ubuntu:~/pywikipedia$ python version.py
Pywikipedia [http] trunk/pywikipedia (r7277, 2009/09/18, 22:45:30)
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
[GCC 4.3.3]
jeroen@ubuntu:~/pywikipedia$
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-09-20 10:17
Message:
fixed in r7267
----------------------------------------------------------------------
Comment By: Carsrac (carsrac)
Date: 2009-09-19 18:53
Message:
Sorry, this can be closed. I have read the work around and it works.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2862265&group_…
Bugs item #2861676, was opened at 2009-09-18 20:49
Message generated for change (Comment added) made by malafaya
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2861676&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: 4
Private: No
Submitted By: André Malafaya Baptista (malafaya)
Assigned to: Nobody/Anonymous (nobody)
Summary: "Edit token has failed" and crash when editing pages
Initial Comment:
Pywikipedia [http] trunk/pywikipedia (r7275, 2009/09/18, 13:44:52)
Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)]
------
NOTE: Performing a recursive query first to save time....
NOTE: Nothing left to do 2
NOTE: Updating live wiki...
Sleeping for 3.5 seconds, 2009-09-18 20:38:12
Updating page [[en:Category:fr:Anatomy]] via API
Updating links on page [[fr:Cat,gorie:Lexique en fran╪ais de l'anatomie]].
Changes to be made: Ajoute: [[pt:Categoria:Anatomia (Franc^s)]]
+ [[pt:Categoria:Anatomia (Franc^s)]]
NOTE: Performing a recursive query first to save time....
NOTE: Nothing left to do 2
NOTE: Updating live wiki...
Sleeping for 8.3 seconds, 2009-09-18 20:38:17
Updating page [[fr:Cat,gorie:Lexique en fran╪ais de l'anatomie]] via API
Edit token has failed. Retrying.
Getting a token.
Sleeping for 9.1 seconds, 2009-09-18 20:38:26
Updating page [[fr:Cat,gorie:Lexique en fran╪ais de l'anatomie]] via API
Edit token has failed. Giving up.
Dump pt (wiktionary) saved
Traceback (most recent call last):
File "D:\Work\pywikipedia\interwiki.py", line 2186, in <module>
bot.run()
File "D:\Work\pywikipedia\interwiki.py", line 1888, in run
self.queryStep()
File "D:\Work\pywikipedia\interwiki.py", line 1866, in queryStep
subj.finish(self)
File "D:\Work\pywikipedia\interwiki.py", line 1423, in finish
if self.replaceLinks(page, new, bot):
File "D:\Work\pywikipedia\interwiki.py", line 1599, in replaceLinks
status, reason, data = page.put(newtext, comment = mcomment)
File "D:\Work\pywikipedia\wikipedia.py", line 1434, in put
newPage, self.site().getToken(sysop = sysop), sysop = sysop, botflag=botflag
, maxTries=maxTries)
File "D:\Work\pywikipedia\wikipedia.py", line 1665, in _putPage
return self._putPage(text, comment, watchArticle, minorEdit, newPage, token=
self.site().getToken(sysop = sysop, getagain = True), newToken = True, sysop = s
ysop)
File "D:\Work\pywikipedia\wikipedia.py", line 1682, in _putPage
solve = self.site().solveCaptcha(data)
File "D:\Work\pywikipedia\wikipedia.py", line 4851, in solveCaptcha
data = data['edit']
KeyError: 'edit'
This has been happening randomly in any wiki it updates. I forced login in all wikis before running it but it doesn't help much: it eventually runs into this exception.
I use API login.
----------------------------------------------------------------------
>Comment By: André Malafaya Baptista (malafaya)
Date: 2009-09-21 17:59
Message:
I agree with xqt.
I changed my settings to:
use_api_login = False
2 days ago and had no more problems whatsoever.
I don't know if this is a Pywikipedia's (still, it should behave better)
or MW API's problem.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-09-21 10:41
Message:
Try
use_api_login = False
in your user_config.py
This may be only a work-around (and I haven't test it) and the bug
remains. But I've found login via api isn't as stable as requested an I
don't use it.
----------------------------------------------------------------------
Comment By: Mikko Silvonen (silvonen)
Date: 2009-09-20 03:40
Message:
The latest crash was a bit different from malafaya's example: no "Edit
token has failed" message but an "Unknown Error".
...
Updating links on page [[als:Amerika (Doppelkontinent)]].
Changes to be made: Ygfüegt: [[mwl:América]]
+ [[mwl:América]]
NOTE: Updating live wiki...
Updating page [[als:Amerika (Doppelkontinent)]] via API
Unknown Error. API Error code:hookaborted
Information:The modification you tried to make was aborted by an extension
hook
Dump fi (wikipedia) saved
Traceback (most recent call last):
File "interwiki.py", line 2186, in <module>
bot.run()
File "interwiki.py", line 1888, in run
self.queryStep()
File "interwiki.py", line 1866, in queryStep
subj.finish(self)
File "interwiki.py", line 1423, in finish
if self.replaceLinks(page, new, bot):
File "interwiki.py", line 1599, in replaceLinks
status, reason, data = page.put(newtext, comment = mcomment)
File "c:\svn\pywikipedia\wikipedia.py", line 1434, in put
newPage, self.site().getToken(sysop = sysop), sysop = sysop,
botflag=botflag, maxTries=maxTries)
File "c:\svn\pywikipedia\wikipedia.py", line 1682, in _putPage
solve = self.site().solveCaptcha(data)
File "c:\svn\pywikipedia\wikipedia.py", line 4851, in solveCaptcha
data = data['edit']
KeyError: 'edit'
>python version.py
Pywikipedia [http] trunk/pywikipedia (r7278, 2009/09/19, 13:00:22)
Python 2.5.4 (r254:67916, Jan 29 2009, 12:02:11) [MSC v.1310 32 bit
(Intel)]
----------------------------------------------------------------------
Comment By: Mikko Silvonen (silvonen)
Date: 2009-09-20 03:31
Message:
My usual "interwiki.py -autonomous -start:XXX" run is now always terminated
with this error.
----------------------------------------------------------------------
Comment By: André Malafaya Baptista (malafaya)
Date: 2009-09-18 20:55
Message:
I don't know if it's relevant but this account is a Wikimedia global bot.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2861676&group_…