Bugs item #2871750, was opened at 2009-10-02 09:12
Message generated for change (Comment added) made by filnik
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2871750&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: 7
Private: No
Submitted By: siebrand (siebrand)
Assigned to: Filnik (filnik)
Summary: Commonscat.py crashes with ValueError: too many values to un
Initial Comment:
Commonscat.py crashes after every edit.
Sample command:
commonscat.py -lang:ha -start:! -always
>>> Amurika <<<
+ {{Commonscat|United States}}
Updating page [[Amurika]] via API
Traceback (most recent call last):
File "C:\py\interwiki\commonscat.py", line 379, in <module>
main()
File "C:\py\interwiki\commonscat.py", line 375, in main
(status, always) = addCommonscat(page, summary, always)
File "C:\py\interwiki\commonscat.py", line 263, in addCommonscat
(success, always) = add_text.add_text(page, textToAdd, summary, None, None,
always);
ValueError: too many values to unpack
C:\py\interwiki>version.py
Pywikipedia [http] trunk/pywikipedia (r7343, 2009/10/02, 03:22:11)
Python 2.6 (r26:66721, Oct 2 2008, 11:35:03) [MSC v.1500 32 bit (Intel)]
----------------------------------------------------------------------
>Comment By: Filnik (filnik)
Date: 2009-10-13 18:37
Message:
Why is this bug assigned to me? I've not written that script :)
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-10-13 18:16
Message:
comes from r7046 and r7177
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2871750&group_…
Bugs item #2871750, was opened at 2009-10-02 11:12
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2871750&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: 7
Private: No
Submitted By: siebrand (siebrand)
>Assigned to: Filnik (filnik)
Summary: Commonscat.py crashes with ValueError: too many values to un
Initial Comment:
Commonscat.py crashes after every edit.
Sample command:
commonscat.py -lang:ha -start:! -always
>>> Amurika <<<
+ {{Commonscat|United States}}
Updating page [[Amurika]] via API
Traceback (most recent call last):
File "C:\py\interwiki\commonscat.py", line 379, in <module>
main()
File "C:\py\interwiki\commonscat.py", line 375, in main
(status, always) = addCommonscat(page, summary, always)
File "C:\py\interwiki\commonscat.py", line 263, in addCommonscat
(success, always) = add_text.add_text(page, textToAdd, summary, None, None,
always);
ValueError: too many values to unpack
C:\py\interwiki>version.py
Pywikipedia [http] trunk/pywikipedia (r7343, 2009/10/02, 03:22:11)
Python 2.6 (r26:66721, Oct 2 2008, 11:35:03) [MSC v.1500 32 bit (Intel)]
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2009-10-13 20:16
Message:
comes from r7046 and r7177
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2871750&group_…
Bugs item #2877789, was opened at 2009-10-13 13:23
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2877789&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: euku (eugo)
>Assigned to: xqt (xqt)
Summary: wikipedia.py: getReferences() returns first 500 pages only
Initial Comment:
Try this on German WP (rv7446):
python replace.py -ref:"Vorlage:Autoarchiv-Erledigt" "BLAbla12345##" "something"
you will just get the first 500 pages i.e. http://de.wikipedia.org/w/index.php?title=Spezial:Linkliste/Vorlage:Autoarc…
One can increase "special_page_limit" to get more pages but, I see the following (bad) hack in wikipedia.getReferences():
# Temporary bug-fix while researching more robust solution:
if config.special_page_limit > 999:
config.special_page_limit = 999
and I wonder what the limit is good for... Two weeks ago there was nothing like this.
ython version.py
---
Pywikipedia [http] trunk/pywikipedia (r7446, 2009/10/13, 06:34:21)
Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18) [GCC 4.3.3]
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2009-10-13 19:40
Message:
done in r7450
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2877789&group_…
Bugs item #2873605, was opened at 2009-10-06 17:58
Message generated for change (Settings changed) made by dmitrynikitin
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2873605&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: Dmitry Nikitin (dmitrynikitin)
Assigned to: xqt (xqt)
Summary: upload.py uploads an image several minutes
Initial Comment:
upload.py uploads image to site (MediaWiki version 1.15.1 = latest official release) very long ... several minutes
I thinks that the reason is the latest changes in mediawiki and hence in pywikipedia. But 1.16 is not released and 1.15.1 remains latest official release of MediaWiki. Now the latest pywikipedia version doesn't work properly with the latest official release of MediaWiki.
python /export/wiki/pywikipedia/upload.py "Dubno_set070_k0.jpg" -keep -noverify "{{Cc|Александр}} [[Категория:Без Клейма]] [[Категория:Ровенская cерия]]"
Reading file Dubno_set070_k0.jpg
The suggested description is:
{{Cc|Александр}}
[[Category:Без Клейма]]
[[Category:Ровенская серия]]
Uploading file to ...wiki:ru...
Error downloading data: Expecting , delimiter: line 1 column 199666 (char 199666)
Request ru:/gw/api.php?action=query&meta=allmessages&format=json
Retrying in 1 minutes...
Error downloading data: Invalid \uXXXX escape: line 1 column 376301 (char 376301)
Request ru:/gw/api.php?action=query&meta=allmessages&format=json
Retrying in 2 minutes...
Error downloading data: Invalid \uXXXX escape: line 1 column 276942 (char 276942)
Request ru:/gw/api.php?action=query&meta=allmessages&format=json
Retrying in 4 minutes...
Upload successful.
== python version.py ==
Pywikipedia [http] trunk/pywikipedia (r7379, 2009/10/06, 06:39:04)
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
[GCC 4.3.3]
MediaWiki version: 1.15.1
----------------------------------------------------------------------
Comment By: Dmitry Nikitin (dmitrynikitin)
Date: 2009-10-13 16:36
Message:
Tested in r7449 ... works perfect.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-10-13 16:03
Message:
might be done in r7448
----------------------------------------------------------------------
Comment By: Dmitry Nikitin (dmitrynikitin)
Date: 2009-10-13 06:09
Message:
xqt, I tried without API and had the same problem. There was no difference
with or without API.
And yes ... request is still valid.
multichill, r7382 works fine. And it's may be considered as workaround,
but ... I want to use the same pywikimedia installation for editing
wikipedia.org and my own site on MediaWiki 1.15.1. Now I have to switch
between latest version of pywikipedia for editing wikipedia and r7382 for
editing my site.
----------------------------------------------------------------------
Comment By: Multichill (multichill)
Date: 2009-10-12 20:48
Message:
Could you try running r7382 of upload.py (version before the big change)
and see how that one works?
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-10-10 10:35
Message:
The upload modules hast been changed a lot since r7379. The actual release
is 7416.
Is this request still valid?
You may try it without API as workaround but it is not recommented in
gerneral
----------------------------------------------------------------------
Comment By: Dmitry Nikitin (dmitrynikitin)
Date: 2009-10-09 17:58
Message:
May be someone could give me workaround?
It's awful to wait for 4 min while file uploading.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2873605&group_…
Bugs item #2873605, was opened at 2009-10-06 17:58
Message generated for change (Settings changed) made by dmitrynikitin
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2873605&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: Fixed
Priority: 5
Private: No
Submitted By: Dmitry Nikitin (dmitrynikitin)
Assigned to: xqt (xqt)
Summary: upload.py uploads an image several minutes
Initial Comment:
upload.py uploads image to site (MediaWiki version 1.15.1 = latest official release) very long ... several minutes
I thinks that the reason is the latest changes in mediawiki and hence in pywikipedia. But 1.16 is not released and 1.15.1 remains latest official release of MediaWiki. Now the latest pywikipedia version doesn't work properly with the latest official release of MediaWiki.
python /export/wiki/pywikipedia/upload.py "Dubno_set070_k0.jpg" -keep -noverify "{{Cc|Александр}} [[Категория:Без Клейма]] [[Категория:Ровенская cерия]]"
Reading file Dubno_set070_k0.jpg
The suggested description is:
{{Cc|Александр}}
[[Category:Без Клейма]]
[[Category:Ровенская серия]]
Uploading file to ...wiki:ru...
Error downloading data: Expecting , delimiter: line 1 column 199666 (char 199666)
Request ru:/gw/api.php?action=query&meta=allmessages&format=json
Retrying in 1 minutes...
Error downloading data: Invalid \uXXXX escape: line 1 column 376301 (char 376301)
Request ru:/gw/api.php?action=query&meta=allmessages&format=json
Retrying in 2 minutes...
Error downloading data: Invalid \uXXXX escape: line 1 column 276942 (char 276942)
Request ru:/gw/api.php?action=query&meta=allmessages&format=json
Retrying in 4 minutes...
Upload successful.
== python version.py ==
Pywikipedia [http] trunk/pywikipedia (r7379, 2009/10/06, 06:39:04)
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
[GCC 4.3.3]
MediaWiki version: 1.15.1
----------------------------------------------------------------------
>Comment By: Dmitry Nikitin (dmitrynikitin)
Date: 2009-10-13 16:36
Message:
Tested in r7449 ... works perfect.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-10-13 16:03
Message:
might be done in r7448
----------------------------------------------------------------------
Comment By: Dmitry Nikitin (dmitrynikitin)
Date: 2009-10-13 06:09
Message:
xqt, I tried without API and had the same problem. There was no difference
with or without API.
And yes ... request is still valid.
multichill, r7382 works fine. And it's may be considered as workaround,
but ... I want to use the same pywikimedia installation for editing
wikipedia.org and my own site on MediaWiki 1.15.1. Now I have to switch
between latest version of pywikipedia for editing wikipedia and r7382 for
editing my site.
----------------------------------------------------------------------
Comment By: Multichill (multichill)
Date: 2009-10-12 20:48
Message:
Could you try running r7382 of upload.py (version before the big change)
and see how that one works?
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-10-10 10:35
Message:
The upload modules hast been changed a lot since r7379. The actual release
is 7416.
Is this request still valid?
You may try it without API as workaround but it is not recommented in
gerneral
----------------------------------------------------------------------
Comment By: Dmitry Nikitin (dmitrynikitin)
Date: 2009-10-09 17:58
Message:
May be someone could give me workaround?
It's awful to wait for 4 min while file uploading.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2873605&group_…
Bugs item #2853934, was opened at 2009-09-08 00:10
Message generated for change (Comment added) made by malafaya
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2853934&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: André Malafaya Baptista (malafaya)
Assigned to: Nobody/Anonymous (nobody)
Summary: Global bot receives warning for not having local bot flag
Initial Comment:
My bot account currently has the global bot status.
Nevertheless, in wikis where a bot flag was not granted locally, I get the warning:
NOTE: Updating live wiki...
WARNING: Your account on wiktionary:uk does not have a bot flag. Its edits will
be visible in the recent changes and it may get blocked.
This becomes pretty annoying when there are lots of wikis in this situation to update.
The bot should be able to tell whether it's a global bot.
Thanks.
--------------------------------
Pywikipedia [http] trunk/pywikipedia (r7218, 2009/09/07, 09:12:09)
Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)]
----------------------------------------------------------------------
>Comment By: André Malafaya Baptista (malafaya)
Date: 2009-10-13 17:20
Message:
Nope, I was not aware of that setting.
Does it behave well with local accounts (the ones existing prior to
merging to SUL)?
If so, then I guess this can be closed.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-10-12 08:31
Message:
Did you set the following parameter in your user_config.py:
account_global = True
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2853934&group_…
Bugs item #2873605, was opened at 2009-10-06 19:58
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2873605&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: Pending
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Dmitry Nikitin (dmitrynikitin)
>Assigned to: xqt (xqt)
Summary: upload.py uploads an image several minutes
Initial Comment:
upload.py uploads image to site (MediaWiki version 1.15.1 = latest official release) very long ... several minutes
I thinks that the reason is the latest changes in mediawiki and hence in pywikipedia. But 1.16 is not released and 1.15.1 remains latest official release of MediaWiki. Now the latest pywikipedia version doesn't work properly with the latest official release of MediaWiki.
python /export/wiki/pywikipedia/upload.py "Dubno_set070_k0.jpg" -keep -noverify "{{Cc|Александр}} [[Категория:Без Клейма]] [[Категория:Ровенская cерия]]"
Reading file Dubno_set070_k0.jpg
The suggested description is:
{{Cc|Александр}}
[[Category:Без Клейма]]
[[Category:Ровенская серия]]
Uploading file to ...wiki:ru...
Error downloading data: Expecting , delimiter: line 1 column 199666 (char 199666)
Request ru:/gw/api.php?action=query&meta=allmessages&format=json
Retrying in 1 minutes...
Error downloading data: Invalid \uXXXX escape: line 1 column 376301 (char 376301)
Request ru:/gw/api.php?action=query&meta=allmessages&format=json
Retrying in 2 minutes...
Error downloading data: Invalid \uXXXX escape: line 1 column 276942 (char 276942)
Request ru:/gw/api.php?action=query&meta=allmessages&format=json
Retrying in 4 minutes...
Upload successful.
== python version.py ==
Pywikipedia [http] trunk/pywikipedia (r7379, 2009/10/06, 06:39:04)
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
[GCC 4.3.3]
MediaWiki version: 1.15.1
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2009-10-13 18:03
Message:
might be done in r7448
----------------------------------------------------------------------
Comment By: Dmitry Nikitin (dmitrynikitin)
Date: 2009-10-13 08:09
Message:
xqt, I tried without API and had the same problem. There was no difference
with or without API.
And yes ... request is still valid.
multichill, r7382 works fine. And it's may be considered as workaround,
but ... I want to use the same pywikimedia installation for editing
wikipedia.org and my own site on MediaWiki 1.15.1. Now I have to switch
between latest version of pywikipedia for editing wikipedia and r7382 for
editing my site.
----------------------------------------------------------------------
Comment By: Multichill (multichill)
Date: 2009-10-12 22:48
Message:
Could you try running r7382 of upload.py (version before the big change)
and see how that one works?
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-10-10 12:35
Message:
The upload modules hast been changed a lot since r7379. The actual release
is 7416.
Is this request still valid?
You may try it without API as workaround but it is not recommented in
gerneral
----------------------------------------------------------------------
Comment By: Dmitry Nikitin (dmitrynikitin)
Date: 2009-10-09 19:58
Message:
May be someone could give me workaround?
It's awful to wait for 4 min while file uploading.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2873605&group_…
Bugs item #2877789, was opened at 2009-10-13 13:23
Message generated for change (Tracker Item Submitted) made by eugo
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2877789&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: euku (eugo)
Assigned to: Nobody/Anonymous (nobody)
Summary: wikipedia.py: getReferences() returns first 500 pages only
Initial Comment:
Try this on German WP (rv7446):
python replace.py -ref:"Vorlage:Autoarchiv-Erledigt" "BLAbla12345##" "something"
you will just get the first 500 pages i.e. http://de.wikipedia.org/w/index.php?title=Spezial:Linkliste/Vorlage:Autoarc…
One can increase "special_page_limit" to get more pages but, I see the following (bad) hack in wikipedia.getReferences():
# Temporary bug-fix while researching more robust solution:
if config.special_page_limit > 999:
config.special_page_limit = 999
and I wonder what the limit is good for... Two weeks ago there was nothing like this.
ython version.py
---
Pywikipedia [http] trunk/pywikipedia (r7446, 2009/10/13, 06:34:21)
Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18) [GCC 4.3.3]
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2877789&group_…
Bugs item #2014962, was opened at 2008-07-10 13:53
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2014962&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: Works For Me
Priority: 5
Private: No
Submitted By: Multichill (multichill)
Assigned to: Nobody/Anonymous (nobody)
Summary: SyntaxError: mismatched tag: line 6, column 140
Initial Comment:
I'm getting this error in different wiki's when i run commonscat.
Pywikipedia [svn+ssh] multichill@trunk/pywikipedia (r5707, Jul 10 2008, 08:35:27
)
Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)]
Working on Kategorie:Házenkári
Sleeping for 3.2 seconds, 2008-07-09 15:55:11
Sleeping for 4.1 seconds, 2008-07-09 15:55:15
Sleeping for 3.8 seconds, 2008-07-09 15:55:20
Traceback (most recent call last):
File "D:\Wikipedia\pywikipedia\pagegenerators.py", line 763, in __iter__
yield loaded_page
GeneratorExit
Traceback (most recent call last):
File "D:\Wikipedia\pywikipedia\commonscat.py", line 322, in <module>
main()
File "D:\Wikipedia\pywikipedia\commonscat.py", line 318, in main
(status, always) = addCommonscat(page, summary, always)
File "D:\Wikipedia\pywikipedia\commonscat.py", line 237, in addCommonscat
if getTemplate(ipage.site().language()) in ipage.templates():
File "D:\Wikipedia\pywikipedia\wikipedia.py", line 1682, in templates
return [template for (template, param) in self.templatesWithParams(get_redir
ect=get_redirect)]
File "D:\Wikipedia\pywikipedia\wikipedia.py", line 1696, in templatesWithParam
s
thistxt = self.get(get_redirect=get_redirect)
File "D:\Wikipedia\pywikipedia\wikipedia.py", line 647, in get
self._contents = self._getEditPage(get_redirect = get_redirect, throttle = t
hrottle, sysop = sysop)
File "D:\Wikipedia\pywikipedia\wikipedia.py", line 705, in _getEditPage
if text.find(self.site().mediawiki_message('whitelistedittitle')) != -1:
File "D:\Wikipedia\pywikipedia\wikipedia.py", line 4598, in mediawiki_message
tree = XML(decode)
File "<string>", line 85, in XML
SyntaxError: mismatched tag: line 6, column 140
commonscat.py -lang:simple -start:Category:48
Working on Category:47 BC births
Sleeping for 3.9 seconds, 2008-07-10 12:26:52
Sleeping for 4.1 seconds, 2008-07-10 12:26:57
Sleeping for 3.9 seconds, 2008-07-10 12:27:02
Sleeping for 3.5 seconds, 2008-07-10 12:27:07
Sleeping for 4.1 seconds, 2008-07-10 12:27:12
Traceback (most recent call last):
File "D:\Wikipedia\pywikipedia\pagegenerators.py", line 763, in __iter__
yield loaded_page
GeneratorExit
Traceback (most recent call last):
File "D:\Wikipedia\pywikipedia\commonscat.py", line 322, in <module>
main()
File "D:\Wikipedia\pywikipedia\commonscat.py", line 318, in main
(status, always) = addCommonscat(page, summary, always)
File "D:\Wikipedia\pywikipedia\commonscat.py", line 237, in addCommonscat
if getTemplate(ipage.site().language()) in ipage.templates():
File "D:\Wikipedia\pywikipedia\wikipedia.py", line 1682, in templates
return [template for (template, param) in self.templatesWithParams(get_redir
ect=get_redirect)]
File "D:\Wikipedia\pywikipedia\wikipedia.py", line 1696, in templatesWithParam
s
thistxt = self.get(get_redirect=get_redirect)
File "D:\Wikipedia\pywikipedia\wikipedia.py", line 647, in get
self._contents = self._getEditPage(get_redirect = get_redirect, throttle = t
hrottle, sysop = sysop)
File "D:\Wikipedia\pywikipedia\wikipedia.py", line 705, in _getEditPage
if text.find(self.site().mediawiki_message('whitelistedittitle')) != -1:
File "D:\Wikipedia\pywikipedia\wikipedia.py", line 4598, in mediawiki_message
tree = XML(decode)
File "<string>", line 85, in XML
SyntaxError: mismatched tag: line 6, column 140
Working on Category:530 deaths
Sleeping for 4.1 seconds, 2008-07-10 13:43:39
Sleeping for 3.7 seconds, 2008-07-10 13:43:45
Sleeping for 4.0 seconds, 2008-07-10 13:43:49
Sleeping for 3.9 seconds, 2008-07-10 13:43:54
Sleeping for 4.0 seconds, 2008-07-10 13:43:59
Sleeping for 4.1 seconds, 2008-07-10 13:44:04
Sleeping for 3.3 seconds, 2008-07-10 13:44:10
Sleeping for 4.1 seconds, 2008-07-10 13:44:14
Sleeping for 4.3 seconds, 2008-07-10 13:44:19
Sleeping for 3.6 seconds, 2008-07-10 13:44:25
Sleeping for 3.8 seconds, 2008-07-10 13:44:29
Sleeping for 3.9 seconds, 2008-07-10 13:44:34
Sleeping for 3.9 seconds, 2008-07-10 13:44:39
Sleeping for 3.2 seconds, 2008-07-10 13:44:45
Sleeping for 3.8 seconds, 2008-07-10 13:44:50
Sleeping for 4.0 seconds, 2008-07-10 13:44:54
Sleeping for 3.1 seconds, 2008-07-10 13:45:00
Sleeping for 3.7 seconds, 2008-07-10 13:45:05
Sleeping for 4.1 seconds, 2008-07-10 13:45:09
Sleeping for 3.7 seconds, 2008-07-10 13:45:15
Sleeping for 3.8 seconds, 2008-07-10 13:45:19
Traceback (most recent call last):
File "D:\Wikipedia\pywikipedia\pagegenerators.py", line 763, in __iter__
yield loaded_page
GeneratorExit
Traceback (most recent call last):
File "D:\Wikipedia\pywikipedia\commonscat.py", line 323, in <module>
main()
File "D:\Wikipedia\pywikipedia\commonscat.py", line 319, in main
(status, always) = addCommonscat(page, summary, always)
File "D:\Wikipedia\pywikipedia\commonscat.py", line 238, in addCommonscat
if getTemplate(ipage.site().language()) in ipage.templates():
File "D:\Wikipedia\pywikipedia\wikipedia.py", line 1682, in templates
return [template for (template, param) in self.templatesWithParams(get_redi
ect=get_redirect)]
File "D:\Wikipedia\pywikipedia\wikipedia.py", line 1696, in templatesWithPara
s
thistxt = self.get(get_redirect=get_redirect)
File "D:\Wikipedia\pywikipedia\wikipedia.py", line 647, in get
self._contents = self._getEditPage(get_redirect = get_redirect, throttle =
hrottle, sysop = sysop)
File "D:\Wikipedia\pywikipedia\wikipedia.py", line 705, in _getEditPage
if text.find(self.site().mediawiki_message('whitelistedittitle')) != -1:
File "D:\Wikipedia\pywikipedia\wikipedia.py", line 4600, in mediawiki_message
tree = XML(decode)
File "<string>", line 85, in XML
SyntaxError: mismatched tag: line 6, column 140
commonscat.py -lang:cs -start:Category:I
Working on Kategorie:Narození 1171
Sleeping for 4.0 seconds, 2008-07-10 13:48:07
Sleeping for 3.8 seconds, 2008-07-10 13:48:12
Sleeping for 4.0 seconds, 2008-07-10 13:48:17
Sleeping for 3.2 seconds, 2008-07-10 13:48:22
Sleeping for 4.0 seconds, 2008-07-10 13:48:27
Sleeping for 3.9 seconds, 2008-07-10 13:48:32
Sleeping for 3.7 seconds, 2008-07-10 13:48:37
Sleeping for 4.0 seconds, 2008-07-10 13:48:42
Sleeping for 3.7 seconds, 2008-07-10 13:48:47
Sleeping for 4.1 seconds, 2008-07-10 13:48:51
Sleeping for 3.3 seconds, 2008-07-10 13:48:57
Sleeping for 4.0 seconds, 2008-07-10 13:49:02
Sleeping for 3.7 seconds, 2008-07-10 13:49:07
Sleeping for 3.7 seconds, 2008-07-10 13:49:12
Checked for running processes. 4 processes currently running, including the curr
ent process.
Sleeping for 3.0 seconds, 2008-07-10 13:49:37
Sleeping for 3.1 seconds, 2008-07-10 13:49:40
Traceback (most recent call last):
File "D:\Wikipedia\pywikipedia\pagegenerators.py", line 763, in __iter__
yield loaded_page
GeneratorExit
Traceback (most recent call last):
File "D:\Wikipedia\pywikipedia\commonscat.py", line 322, in <module>
try:
File "D:\Wikipedia\pywikipedia\commonscat.py", line 318, in main
for page in pregenerator:
File "D:\Wikipedia\pywikipedia\commonscat.py", line 237, in addCommonscat
#See if commonscat is present
File "D:\Wikipedia\pywikipedia\wikipedia.py", line 1682, in templates
return [template for (template, param) in self.templatesWithParams(get_redir
ect=get_redirect)]
File "D:\Wikipedia\pywikipedia\wikipedia.py", line 1696, in templatesWithParam
s
thistxt = self.get(get_redirect=get_redirect)
File "D:\Wikipedia\pywikipedia\wikipedia.py", line 647, in get
self._contents = self._getEditPage(get_redirect = get_redirect, throttle = t
hrottle, sysop = sysop)
File "D:\Wikipedia\pywikipedia\wikipedia.py", line 705, in _getEditPage
if text.find(self.site().mediawiki_message('whitelistedittitle')) != -1:
File "D:\Wikipedia\pywikipedia\wikipedia.py", line 4598, in mediawiki_message
if elementtree:
File "<string>", line 85, in XML
SyntaxError: mismatched tag: line 6, column 140
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2009-10-13 12:50
Message:
obsolete since mw 1.16
(r7354)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2014962&group_…
Bugs item #2062179, was opened at 2008-08-20 13:35
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2062179&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: category
Group: None
>Status: Closed
>Resolution: Out of Date
Priority: 5
Private: No
Submitted By: stanlekub (stanlekub)
Assigned to: Nobody/Anonymous (nobody)
Summary: catlib.py should handle error pages returned by servers
Initial Comment:
I think there should be a minimal check in catlib.py to be sure that the page the server returned is a valid mediawiki one and not a basic error page.
In the current behaviour (r5811 for me) it silently passes through as if the given category was empty (obviously finding no valid wikilinks).
Maybe just searching for something like the "pt-logout" id in the text just before all the regex stuff could do the trick ?
Don't no if it's better to go into a retrying loop or raise an exception, I let you do this in a consitent manner with other parts of the code... or maybe you'll just think it's a bad idea :)
And sorry for my english, it isn't as good as I wishes it to be. :( Hope you'll understand anyway.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2062179&group_…