Feature Requests item #3441423, was opened at 2011-11-23 03:06
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3441423&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
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Very difficult pages
Initial Comment:
In some sport articles there is used many flagicons, inserted templates etc. Bot have problems with editing those pages and freeze for half a hour for each.
Is there any way for quicker skipping this pages?
======Post-processing [[cs:Sportovní aktuality červenec 2011]]======
Updating links on page [[cs:Sportovní aktuality červenec 2011]].
Changes to be made: Robot: Adding [[en:July 2011 in sports]]
+
+ [[en:July 2011 in sports]]
NOTE: Updating live wiki...
Updating page [[Sportovní aktuality červenec 2011]] via API
Updating links on page [[en:July 2011 in sports]].
Changes to be made: Robot: Adding [[cs:Sportovní aktuality červenec 2011]]
+
+ [[cs:Sportovní aktuality červenec 2011]]
NOTE: Updating live wiki...
Updating page [[en:July 2011 in sports]] via API
HTTPError: 504 Gateway Time-out
WARNING: Could not open 'http://en.wikipedia.org/w/api.php'.
Maybe the server is down. Retrying in 1 minutes...
HTTPError: 504 Gateway Time-out
WARNING: Could not open 'http://en.wikipedia.org/w/api.php'.
Maybe the server is down. Retrying in 2 minutes...
HTTPError: 504 Gateway Time-out
WARNING: Could not open 'http://en.wikipedia.org/w/api.php'.
Maybe the server is down. Retrying in 4 minutes...
HTTPError: 504 Gateway Time-out
WARNING: Could not open 'http://en.wikipedia.org/w/api.php'.
Maybe the server is down. Retrying in 8 minutes...
HTTPError: 504 Gateway Time-out
WARNING: Could not open 'http://en.wikipedia.org/w/api.php'.
Maybe the server is down. Retrying in 16 minutes...
HTTPError: 504 Gateway Time-out
ERROR putting page: ()
WARNING: wikipedia: [[en:July 2011 in sports]] does not link to [[cs:Sportovní a
ktuality červenec 2011]]
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3441423&group_…
Feature Requests item #3440654, was opened at 2011-11-21 01:21
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3440654&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
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: last user exception
Initial Comment:
please add -lastUserExeption to PageGenarator.py .this argument will useful to have list of pages that specific user didn't have last revision on them
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3440654&group_…
Bugs item #3440423, was opened at 2011-11-20 02:46
Message generated for change (Tracker Item Submitted) made by crochet_david
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3440423&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: David Crochet (crochet_david)
Assigned to: Nobody/Anonymous (nobody)
Summary: replace.py and require even number of replacements
Initial Comment:
crochet@dcrochet-desktop:~/Robots/pywikipedia$ python version.py
Pywikipedia [http] trunk/pywikipedia (r9773, 2011/11/16, 21:21:14)
Python 2.7.2+ (default, Oct 4 2011, 20:03:08)
[GCC 4.6.1]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
dcrochet@dcrochet-desktop:~/Robots/pywikipedia$ python replace.py -family:"commons" -lang:"commons" -subcat:"Palace and park of Versailles" "{{fr|Jardins et Parc du château de Versailles}}" "{{eu|Lorategiak eta jauregia, Versailles Parkea}}{{fr|Jardins et Parc du château de Versailles}}"
Traceback (most recent call last):
File "replace.py", line 838, in <module>
main()
File "replace.py", line 666, in main
raise pywikibot.Error, 'require even number of replacements.'
pywikibot.exceptions.Error: require even number of replacements.
dcrochet@dcrochet-desktop:~/Robots/pywikipedia$
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3440423&group_…
Bugs item #3437586, was opened at 2011-11-13 19:01
Message generated for change (Comment added) made by reza1615
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3437586&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: reza (reza1615)
Assigned to: Nobody/Anonymous (nobody)
Summary: bug with shakti family
Initial Comment:
Traceback (most recent call last):
File "interwiki.py", line 2573, in <module>
main()
File "interwiki.py", line 2547, in main
bot.run()
File "interwiki.py", line 2287, in run
self.queryStep()
File "interwiki.py", line 2260, in queryStep
self.oneQuery()
File "interwiki.py", line 2256, in oneQuery
subject.batchLoaded(self)
File "interwiki.py", line 1255, in batchLoaded
redirectTargetPage = page.getRedirectTarget()
File "/home/reza/pywikipediagermany/wikipedia.py", line 2612, in getRedirectTarget
% target, Warning)
File "/home/reza/pywikipediagermany/wikipedia.py", line 376, in __init__
% (title, self._site, familyName))
pywikibot.exceptions.NoPage: Shakti: The Power is not a local page on wikipedia:sh, and the shakti family is
not supported by PyWikipediaBot!
----------------------------------------------------------------------
>Comment By: reza (reza1615)
Date: 2011-11-18 04:03
Message:
would you please add sh family it stops bot!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3437586&group_…
Bugs item #3431275, was opened at 2011-10-31 10:00
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3431275&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: other
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Nemo (nemobis)
Assigned to: xqt (xqt)
Summary: Family wikiquote outdated
Initial Comment:
This is what I get:
WARNING: Outdated family file wikiquote: namespace['cs'][2] is 'Wikipedista', but should be 'Uživatel'
WARNING: Outdated family file wikiquote: namespace['cs'][3] is 'Diskuse s wikipedistou', but should be 'Diskuse s uživatelem'
WARNING: Outdated family file wikiquote: namespace['ja'][3] is set to default ('User talk'), but should be '利用者・トーク'
WARNING: Outdated family file wikiquote: namespace['pl'][2] is set to default ('User'), but should be 'Użytkownik'
WARNING: Outdated family file wikiquote: namespace['pl'][3] is 'Dyskusja wikipedysty', but should be 'Dyskusja użytkownika'
WARNING: Outdated family file wikiquote: namespace['pt'][2] is 'Usuário', but should be 'Utilizador'
WARNING: Outdated family file wikiquote: namespace['pt'][3] is 'Usuário Discussão', but should be 'Utilizador Discussão'
__________________
Pywikipedia [http] trunk/pywikipedia (r9675, 2011/10/26, 08:57:14)
Python 2.7.2+ (default, Oct 4 2011, 20:03:08)
[GCC 4.6.1]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2011-11-17 22:01
Message:
fixes in r9772
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-11-01 10:43
Message:
partially fixed in r9718
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3431275&group_…
Bugs item #3433609, was opened at 2011-11-04 10:49
Message generated for change (Comment added) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3433609&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: Wont Fix
Priority: 5
Private: No
Submitted By: Daniel Barrett (djbarrett)
Assigned to: xqt (xqt)
Summary: Patch 3419295 did not fix python 2.4 compatibility
Initial Comment:
After the change from 3419295, there is still a syntax error:
sudo python redirect.py double
Traceback (most recent call last):
File "redirect.py", line 66, in ?
import wikipedia as pywikibot
File "/usr/local/pywikipedia/wikipedia.py", line 142, in ?
from pywikibot import *
File "/usr/local/pywikipedia/pywikibot/__init__.py", line 16, in ?
from i18n import translate
File "/usr/local/pywikipedia/pywikibot/i18n.py", line 14, in ?
from plural import plural_rules
File "/usr/local/pywikipedia/pywikibot/plural.py", line 17
0 if (n == 0) else
^
SyntaxError: invalid syntax
$ python version.py
Pywikipedia [http] trunk/pywikipedia (r9725, 2011/11/04, 14:50:26)
Python 2.4.3 (#1, Sep 21 2011, 19:55:41)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-51)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2011-11-17 19:22
Message:
vM54A6 <a href="http://maeecyucheeo.com/">maeecyucheeo</a>,
[url=http://ysczhyiatpnf.com/]ysczhyiatpnf[/url],
[link=http://xfkahjmyzirv.com/]xfkahjmyzirv[/link],
http://xolamjvmfgdp.com/
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-11-10 09:13
Message:
patch for pre 2.5 python version applied with r9740
----------------------------------------------------------------------
Comment By: Daniel Barrett (djbarrett)
Date: 2011-11-07 09:23
Message:
Yes, your sys.version_info command returns True.
Python 2.4 is still supplied with CentOS 5. CentOS 6 is out but only
recently (it has Python 2.6).
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-11-07 09:12
Message:
We could not give a recommended release because there are some updates like
family files depending which are needed for some stuff that have changed.
On the other hand there are some script releases who are 2.4 clean. Plural
support was introduced with r9464 thus pre-r9464 might work with py 2.4.
Could you pleace check via idle whether the folowing statements gives
true:
>>> import sys
>>> sys.version_info < (2,5)
True
I could change the i18n methods for 2.4 to a older release and _default
state which gives no full plural support but enables it for py 2.4. This is
for the moment. py 2.7.2 would be recommended ;)
----------------------------------------------------------------------
Comment By: Daniel Barrett (djbarrett)
Date: 2011-11-07 06:50
Message:
Thanks. If you are deprecating Python 2.4 officially, could you please
document your recommended version number that is the most stable and works
with 2.4?
If you don't have access to a 2.4 system I would be happy to help. Just
send me a list of POSSIBLE version numbers and I will let you know which
ones break.
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2011-11-07 04:46
Message:
However, please feel free to submit a patch that fully fixes 2.4
compatibility. The problem is neither xqt nor me have access to a python
2.4 install anymore, so it's very hard for us to fix it.
Unfortunately, it's not possible to use a __future__ import for this - the
operators will have to be rewritten:
a if b else c -> [c,a][b] - even though this is horrible in terms of
readability. Please mark the locations you change it with a comment with
the original ternary operator, and possible a fixed #IIF mark, or something
like that (so it could be removed in the future).
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-11-06 20:54
Message:
Depends i18n PLURAL support of some scripts and I won't fix since python
2.4 had it last fix more than 3 years ago and we should declare it as
deprecated release for pywikibot support. Upuntu itself no longer bundles
2.4. Please update to 2.7.2 if possible or use an older pywikibot release.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3433609&group_…
Bugs item #3438381, was opened at 2011-11-15 08:49
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3438381&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: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Marc-Etienne Vargenau (vargenau)
>Assigned to: xqt (xqt)
Summary: interwiki stops with pywikibot.exceptions.NoPage
Initial Comment:
python interwiki.py nso:Oceania
stops with:
No changes needed on page [[lv:Okeānija]]
Dump fr (wikipedia) appended.
Traceback (most recent call last):
File "interwiki.py", line 2573, in <module>
main()
File "interwiki.py", line 2547, in main
bot.run()
File "interwiki.py", line 2287, in run
self.queryStep()
File "interwiki.py", line 2265, in queryStep
subj.finish(self)
File "interwiki.py", line 1713, in finish
if self.replaceLinks(page, new, bot):
File "interwiki.py", line 1781, in replaceLinks
ignorepage = pywikibot.Page(page.site(), iw.groups()[0])
File "/home/mvargena/svn/pywikipedia/wikipedia.py", line 376, in __init__
% (title, self._site, familyName))
pywikibot.exceptions.NoPage
mvargena@ubuntix 95 > python version.py
Pywikipedia [http] trunk/pywikipedia (r9762, 2011/11/13, 11:52:35)
Python 2.7.2+ (default, Oct 4 2011, 20:03:08)
[GCC 4.6.1]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2011-11-16 05:26
Message:
fixed in r9764
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3438381&group_…
Bugs item #3438381, was opened at 2011-11-15 08:49
Message generated for change (Tracker Item Submitted) made by vargenau
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3438381&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: Marc-Etienne Vargenau (vargenau)
Assigned to: Nobody/Anonymous (nobody)
Summary: interwiki stops with pywikibot.exceptions.NoPage
Initial Comment:
python interwiki.py nso:Oceania
stops with:
No changes needed on page [[lv:Okeānija]]
Dump fr (wikipedia) appended.
Traceback (most recent call last):
File "interwiki.py", line 2573, in <module>
main()
File "interwiki.py", line 2547, in main
bot.run()
File "interwiki.py", line 2287, in run
self.queryStep()
File "interwiki.py", line 2265, in queryStep
subj.finish(self)
File "interwiki.py", line 1713, in finish
if self.replaceLinks(page, new, bot):
File "interwiki.py", line 1781, in replaceLinks
ignorepage = pywikibot.Page(page.site(), iw.groups()[0])
File "/home/mvargena/svn/pywikipedia/wikipedia.py", line 376, in __init__
% (title, self._site, familyName))
pywikibot.exceptions.NoPage
mvargena@ubuntix 95 > python version.py
Pywikipedia [http] trunk/pywikipedia (r9762, 2011/11/13, 11:52:35)
Python 2.7.2+ (default, Oct 4 2011, 20:03:08)
[GCC 4.6.1]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3438381&group_…
Bugs item #3431273, was opened at 2011-10-31 09:55
Message generated for change (Comment added) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3431273&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: Open
Resolution: None
>Priority: 3
Private: No
Submitted By: Tgr (tgr_)
Assigned to: xqt (xqt)
Summary: AddCategory bot uses default language instead of site lang
Initial Comment:
This might be a more general problem, I did not check. I created a custom generator and used it to construct the AddCategory bot from category.py. Apparently the bot uses the default settings for language purposes instead of either accepting such options in the constructor or (more conveniently) checking the site of the first page returned by the generator and using the language of that. For example, running the bot on Commons resulted in edits like this:
http://commons.wikimedia.org/w/index.php?title=File:Ungar-Mayer-palace_Szeg…
- both the summary and the category namespace name are in Hungarian.
version:
Pywikipedia [http] trunk/pywikipedia (r9710, 2011/10/31, 05:19:34)
Python 2.7.2+ (default, Aug 16 2011, 09:23:59)
[GCC 4.6.1]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
>Comment By: Merlijn S. van Deen (valhallasw)
Date: 2011-11-14 15:28
Message:
Yes, you are correct it's a bad design. However, this is what happens when
software grows ;-)
If you can fix it, you are vey welcome to submit a patch. For now, you
could use the setSite() workaround, which should be OK (but ugly) as long
as you're running a single-threaded app.
>>> wikipedia.getSite()
wikipedia:en
>>> wikipedia.setSite(wikipedia.getSite('nl', 'wikipedia')
>>> wikipedia.getSite()
wikipedia:nl
you can get the site from a page object:
>>> p = wikipedia.Page(wikipedia.getSite(), 'nl:test')
>>> p.site()
wikipedia:nl
----------------------------------------------------------------------
Comment By: Tgr (tgr_)
Date: 2011-11-01 13:33
Message:
xqt, I understand that's how it works, but that seems like bad design to
me. The category adder bot is constructed with a generator which yields
Page objects. A Page object already references a Site object; it makes no
sense to do something with it and use the settings from a different site.
Also, I think it is a reasonable expectation that upon creating an object,
you can pass all the relevant settings to it in the constructor, or maybe a
few additional function calls, and it will not be influenced by (the lack
of) command line arguments which are handled by a totally different module.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-10-31 10:51
Message:
This message is from "category-adding" and the code for i18n.twtranslate()
comes from self.site attribute which is assigned with pywikibot.getSite()
by constructor. getSite() gives the site your start the bot. For commons
you must run the -lang:commons -family:commons options which gives an
english text by default. Since this is your own script, could you check
whether your lang code isn't commons on commons site?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3431273&group_…
Bugs item #3437586, was opened at 2011-11-13 19:01
Message generated for change (Tracker Item Submitted) made by reza1615
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3437586&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: reza (reza1615)
Assigned to: Nobody/Anonymous (nobody)
Summary: bug with shakti family
Initial Comment:
Traceback (most recent call last):
File "interwiki.py", line 2573, in <module>
main()
File "interwiki.py", line 2547, in main
bot.run()
File "interwiki.py", line 2287, in run
self.queryStep()
File "interwiki.py", line 2260, in queryStep
self.oneQuery()
File "interwiki.py", line 2256, in oneQuery
subject.batchLoaded(self)
File "interwiki.py", line 1255, in batchLoaded
redirectTargetPage = page.getRedirectTarget()
File "/home/reza/pywikipediagermany/wikipedia.py", line 2612, in getRedirectTarget
% target, Warning)
File "/home/reza/pywikipediagermany/wikipedia.py", line 376, in __init__
% (title, self._site, familyName))
pywikibot.exceptions.NoPage: Shakti: The Power is not a local page on wikipedia:sh, and the shakti family is
not supported by PyWikipediaBot!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3437586&group_…