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: 6
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-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 #2675814, was opened at 2009-03-09 18:46
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2675814&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: Invalid
Priority: 5
Private: No
Submitted By: Daniel Barrett (djbarrett)
Assigned to: Nobody/Anonymous (nobody)
Summary: SyntaxError: undefined entity : line 14789, column 89
Initial Comment:
When I run "python redirect.py double", after the first redirect gets fixed, I get:
Changing page [[My article name]]
Traceback (most recent call last):
File "redirect.py", line 840, in <module>
main()
File "redirect.py", line 836, in main
bot.run()
File "redirect.py", line 757, in run
self.fix_double_redirects()
File "redirect.py", line 611, in fix_double_redirects
self.fix_1_double_redirect(mysite, redir_name, summary)
File "redirect.py", line 707, in fix_1_double_redirect
redir.put(text)
File "c:\temp\pywikipedia\wikipedia.py", line 1419, in put
newPage, self.site().getToken(sysop = sysop), sysop = sysop)
File "c:\temp\pywikipedia\wikipedia.py", line 1549, in _putPage
if self.site().has_mediawiki_message("spamprotectiontitle")\
File "c:\temp\pywikipedia\wikipedia.py", line 4983, in has_mediawiki_message
v = self.mediawiki_message(key)
File "c:\temp\pywikipedia\wikipedia.py", line 4951, in mediawiki_message
tree = XML(decode)
File "<string>", line 85, in XML
SyntaxError: undefined entity : line 14789, column 89
Likewise for "python category.py move -from:"name" -to:"name2":
Traceback (most recent call last):
File "category.py", line 974, in <module>
bot.run()
File "category.py", line 446, in run
comment=self.editSummary, inPlace=self.inPlace)
File "c:\temp\pywikipedia\catlib.py", line 506, in change_category
article.put(text, comment)
File "c:\temp\pywikipedia\wikipedia.py", line 1419, in put
newPage, self.site().getToken(sysop = sysop), sysop = sysop)
File "c:\temp\pywikipedia\wikipedia.py", line 1549, in _putPage
if self.site().has_mediawiki_message("spamprotectiontitle")\
File "c:\temp\pywikipedia\wikipedia.py", line 4983, in has_mediawiki_message
v = self.mediawiki_message(key)
File "c:\temp\pywikipedia\wikipedia.py", line 4951, in mediawiki_message
tree = XML(decode)
File "<string>", line 85, in XML
SyntaxError: undefined entity : line 14789, column 89
Output of version.py:
Pywikipedia [http] trunk/pywikipedia (r6503, Mar 09 2009, 14:43:57)
Python 2.6 (r26:66721, Oct 2 2008, 11:35:03) [MSC v.1500 32 bit (Intel)]
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2009-09-21 11:25
Message:
This looks like #2860410 fixed in r7267
----------------------------------------------------------------------
Comment By: Soulk33p3r (soulk33p3r)
Date: 2009-09-20 18:04
Message:
I have this problem with interwiki.py and solve_disambiguation.py on
no.wikipedia.org ...
SyntaxError: undefined entity : line 649, column 147
...
I've tried with both 1.11 and 1.16alpha (the version for nowiki) in my
family.py file. The XHTML header on no.wiki:
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
html xmlns="http://www.w3.org/1999/xhtml" xml:lang="no" lang="no"
dir="ltr"
Is there a problem somewhere or am I just a bit slow? :)
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-03-25 07:20
Message:
Well it probably means that you haven't specified the good MW version in
your family file ?
def version(self, code):
return "1.11"
The XML is only used if MW version is >= 1.12 ...
----------------------------------------------------------------------
Comment By: Daniel Barrett (djbarrett)
Date: 2009-03-24 21:13
Message:
I tried accessing index.php?title=Special:AllMessages&ot=xml, but XML
doesn't appear to be a valid choice for the output format. This is
MediaWiki 1.11.0, which seems to support only HTML and PHP as output
formats.
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-03-24 03:27
Message:
Daniel?
Have you checked your wiki messages?
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-03-10 01:44
Message:
And... it's not because you're looking from Spamprotectionttitle that this
message in particular is wrong: since ll messages are loaded at once, any
wrong message can trigger that behavior.
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-03-10 01:19
Message:
I know this bug =)
Can you double-check index.php?title=Special:AllMessages&ot=xml for us ?
I'm pretty sure that your browser will output the same error. The last time
I saw this bug, firefox was confused too.
Then, check the source of the page. I think that the first line will be an
empty line. If it is, the XML is non-standard. The first line should be
something like <?xml version="1.0" encoding="utf-8" ?>
Check your mediawiki extensions, one of them is, I think, inserting a new
line everytime that index.php is called. This is okay for HTML, but this is
wrong for XML. (To check which one is doing that, disable all extensions,
and activate them one by one, until the behavior is triggerred. Please
report the bugged extension so I can fix it in Mediawiki SVN, or file a bug
report to their authors...)
----------------------------------------------------------------------
Comment By: Daniel Barrett (djbarrett)
Date: 2009-03-09 21:43
Message:
[[MediaWiki:Spamprotectiontitle]] contains only the default text:
Spam protection filter
----------------------------------------------------------------------
Comment By: Russell Blau (russblau)
Date: 2009-03-09 21:19
Message:
Probably you want to escape the "undefined entity" by changing " " to
"&nbsp;" in the text on [[MediaWiki:Spamprotectiontitle]].
----------------------------------------------------------------------
Comment By: Daniel Barrett (djbarrett)
Date: 2009-03-09 20:36
Message:
This is on our own MediaWiki site, running 1.11.0.
How can I provide you with the source text?
----------------------------------------------------------------------
Comment By: Russell Blau (russblau)
Date: 2009-03-09 19:50
Message:
What site does this occur on? It could be a problem with the site's
formatting of the message, or it could be in the XML parser. We need to
see the source text to know which.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2675814&group_…
Bugs item #2675814, was opened at 2009-03-09 18:46
Message generated for change (Comment added) made by soulk33p3r
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2675814&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: Invalid
Priority: 5
Private: No
Submitted By: Daniel Barrett (djbarrett)
Assigned to: Nobody/Anonymous (nobody)
Summary: SyntaxError: undefined entity : line 14789, column 89
Initial Comment:
When I run "python redirect.py double", after the first redirect gets fixed, I get:
Changing page [[My article name]]
Traceback (most recent call last):
File "redirect.py", line 840, in <module>
main()
File "redirect.py", line 836, in main
bot.run()
File "redirect.py", line 757, in run
self.fix_double_redirects()
File "redirect.py", line 611, in fix_double_redirects
self.fix_1_double_redirect(mysite, redir_name, summary)
File "redirect.py", line 707, in fix_1_double_redirect
redir.put(text)
File "c:\temp\pywikipedia\wikipedia.py", line 1419, in put
newPage, self.site().getToken(sysop = sysop), sysop = sysop)
File "c:\temp\pywikipedia\wikipedia.py", line 1549, in _putPage
if self.site().has_mediawiki_message("spamprotectiontitle")\
File "c:\temp\pywikipedia\wikipedia.py", line 4983, in has_mediawiki_message
v = self.mediawiki_message(key)
File "c:\temp\pywikipedia\wikipedia.py", line 4951, in mediawiki_message
tree = XML(decode)
File "<string>", line 85, in XML
SyntaxError: undefined entity : line 14789, column 89
Likewise for "python category.py move -from:"name" -to:"name2":
Traceback (most recent call last):
File "category.py", line 974, in <module>
bot.run()
File "category.py", line 446, in run
comment=self.editSummary, inPlace=self.inPlace)
File "c:\temp\pywikipedia\catlib.py", line 506, in change_category
article.put(text, comment)
File "c:\temp\pywikipedia\wikipedia.py", line 1419, in put
newPage, self.site().getToken(sysop = sysop), sysop = sysop)
File "c:\temp\pywikipedia\wikipedia.py", line 1549, in _putPage
if self.site().has_mediawiki_message("spamprotectiontitle")\
File "c:\temp\pywikipedia\wikipedia.py", line 4983, in has_mediawiki_message
v = self.mediawiki_message(key)
File "c:\temp\pywikipedia\wikipedia.py", line 4951, in mediawiki_message
tree = XML(decode)
File "<string>", line 85, in XML
SyntaxError: undefined entity : line 14789, column 89
Output of version.py:
Pywikipedia [http] trunk/pywikipedia (r6503, Mar 09 2009, 14:43:57)
Python 2.6 (r26:66721, Oct 2 2008, 11:35:03) [MSC v.1500 32 bit (Intel)]
----------------------------------------------------------------------
Comment By: Soulk33p3r (soulk33p3r)
Date: 2009-09-20 18:04
Message:
I have this problem with interwiki.py and solve_disambiguation.py on
no.wikipedia.org ...
SyntaxError: undefined entity : line 649, column 147
...
I've tried with both 1.11 and 1.16alpha (the version for nowiki) in my
family.py file. The XHTML header on no.wiki:
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
html xmlns="http://www.w3.org/1999/xhtml" xml:lang="no" lang="no"
dir="ltr"
Is there a problem somewhere or am I just a bit slow? :)
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-03-25 07:20
Message:
Well it probably means that you haven't specified the good MW version in
your family file ?
def version(self, code):
return "1.11"
The XML is only used if MW version is >= 1.12 ...
----------------------------------------------------------------------
Comment By: Daniel Barrett (djbarrett)
Date: 2009-03-24 21:13
Message:
I tried accessing index.php?title=Special:AllMessages&ot=xml, but XML
doesn't appear to be a valid choice for the output format. This is
MediaWiki 1.11.0, which seems to support only HTML and PHP as output
formats.
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-03-24 03:27
Message:
Daniel?
Have you checked your wiki messages?
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-03-10 01:44
Message:
And... it's not because you're looking from Spamprotectionttitle that this
message in particular is wrong: since ll messages are loaded at once, any
wrong message can trigger that behavior.
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-03-10 01:19
Message:
I know this bug =)
Can you double-check index.php?title=Special:AllMessages&ot=xml for us ?
I'm pretty sure that your browser will output the same error. The last time
I saw this bug, firefox was confused too.
Then, check the source of the page. I think that the first line will be an
empty line. If it is, the XML is non-standard. The first line should be
something like <?xml version="1.0" encoding="utf-8" ?>
Check your mediawiki extensions, one of them is, I think, inserting a new
line everytime that index.php is called. This is okay for HTML, but this is
wrong for XML. (To check which one is doing that, disable all extensions,
and activate them one by one, until the behavior is triggerred. Please
report the bugged extension so I can fix it in Mediawiki SVN, or file a bug
report to their authors...)
----------------------------------------------------------------------
Comment By: Daniel Barrett (djbarrett)
Date: 2009-03-09 21:43
Message:
[[MediaWiki:Spamprotectiontitle]] contains only the default text:
Spam protection filter
----------------------------------------------------------------------
Comment By: Russell Blau (russblau)
Date: 2009-03-09 21:19
Message:
Probably you want to escape the "undefined entity" by changing " " to
"&nbsp;" in the text on [[MediaWiki:Spamprotectiontitle]].
----------------------------------------------------------------------
Comment By: Daniel Barrett (djbarrett)
Date: 2009-03-09 20:36
Message:
This is on our own MediaWiki site, running 1.11.0.
How can I provide you with the source text?
----------------------------------------------------------------------
Comment By: Russell Blau (russblau)
Date: 2009-03-09 19:50
Message:
What site does this occur on? It could be a problem with the site's
formatting of the message, or it could be in the XML parser. We need to
see the source text to know which.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2675814&group_…
Bugs item #2862543, was opened at 2009-09-20 11:35
Message generated for change (Comment added) made by carsrac
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: Open
Resolution: None
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: Carsrac (carsrac)
Date: 2009-09-20 15: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 #2862543, was opened at 2009-09-20 11:35
Message generated for change (Tracker Item Submitted) made by carsrac
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: Open
Resolution: None
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]
----------------------------------------------------------------------
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 19:45
Message generated for change (Settings changed) made by xqt
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: None
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 11:17
Message:
fixed in r7267
----------------------------------------------------------------------
Comment By: Carsrac (carsrac)
Date: 2009-09-19 19: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 22:49
Message generated for change (Comment added) made by silvonen
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: 6
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: Mikko Silvonen (silvonen)
Date: 2009-09-20 05: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 05: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 22: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 #2861676, was opened at 2009-09-18 22:49
Message generated for change (Comment added) made by silvonen
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: 6
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: Mikko Silvonen (silvonen)
Date: 2009-09-20 05: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 22: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 #2862265, was opened at 2009-09-19 19:45
Message generated for change (Comment added) made by carsrac
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: Open
Resolution: None
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: Carsrac (carsrac)
Date: 2009-09-19 19: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 #2862265, was opened at 2009-09-19 17:45
Message generated for change (Tracker Item Submitted) made by nobody
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: Open
Resolution: None
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$
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2862265&group_…