Bugs item #3433609, was opened at 2011-11-04 10:49
Message generated for change (Comment added) made by djbarrett
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: Open
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: 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 #3433609, was opened at 2011-11-04 10:49
Message generated for change (Comment added) made by valhallasw
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: 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 #3433609, was opened at 2011-11-04 10:49
Message generated for change (Comment added) made by xqt
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: 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 #3424327, was opened at 2011-10-16 02:30
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3424327&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: Invalid
Priority: 5
Private: No
Submitted By: Snaevar (snaevar)
Assigned to: xqt (xqt)
Summary: Bot adds an non-existent category
Initial Comment:
Pywikipedia bot adds an non-existent category, instead of ignoring it as it should do: http://ch.wikipedia.org/w/index.php?title=Category:Plantiyas&diff=prev&oldi… .
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-10-16 05:00
Message:
Namespaces of kbd-wiki has been changed in mw 1.18 and it is recommendet to
use bot framework release 9590 or newer. Your bot seems out of date. Please
update it.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3424327&group_…
Bugs item #3431273, was opened at 2011-10-31 09:55
Message generated for change (Settings changed) made by xqt
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: 5
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: 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 #3433676, was opened at 2011-11-04 14:17
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3433676&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: Duplicate
Priority: 7
Private: No
Submitted By: Bertrand Grondin (grondin85)
>Assigned to: xqt (xqt)
Summary: Not enough arguments for format string pagegenerators.py
Initial Comment:
When launching interwiki.py or replace.py by exemple, I"ve the following message.
Traceback (most recent call last):
File "/home/bertrand/pywikipedia/pagegenerators.py", line 1193, in __iter__
for loaded_page in self.preload(somePages):
File "/home/bertrand/pywikipedia/pagegenerators.py", line 1212, in preload
pywikibot.getall(site, pagesThisSite)
File "/home/bertrand/pywikipedia/wikipedia.py", line 4440, in getall
% (len(pages), (u'', u'via API ')[site.has_api() and debug]))
TypeError: not enough arguments for format string
not enough arguments for format string
For replace.by, this bug crashes it.
Pywikipedia version :
>python version.py
Python 2.7.2+ (default, Oct 4 2011, 15:44:37)
[GCC 4.6.1]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2011-11-06 20:41
Message:
Duplicate of bug #3433520, fixed in r9727
----------------------------------------------------------------------
Comment By: hiw (hiw)
Date: 2011-11-04 19:36
Message:
same here with interwiki.py
doesn't crash, just echos the error message and continues
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3433676&group_…
Bugs item #3433676, was opened at 2011-11-04 14:17
Message generated for change (Comment added) made by hiw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3433676&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: 7
Private: No
Submitted By: Bertrand Grondin (grondin85)
Assigned to: Nobody/Anonymous (nobody)
Summary: Not enough arguments for format string pagegenerators.py
Initial Comment:
When launching interwiki.py or replace.py by exemple, I"ve the following message.
Traceback (most recent call last):
File "/home/bertrand/pywikipedia/pagegenerators.py", line 1193, in __iter__
for loaded_page in self.preload(somePages):
File "/home/bertrand/pywikipedia/pagegenerators.py", line 1212, in preload
pywikibot.getall(site, pagesThisSite)
File "/home/bertrand/pywikipedia/wikipedia.py", line 4440, in getall
% (len(pages), (u'', u'via API ')[site.has_api() and debug]))
TypeError: not enough arguments for format string
not enough arguments for format string
For replace.by, this bug crashes it.
Pywikipedia version :
>python version.py
Python 2.7.2+ (default, Oct 4 2011, 15:44:37)
[GCC 4.6.1]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
Comment By: hiw (hiw)
Date: 2011-11-04 19:36
Message:
same here with interwiki.py
doesn't crash, just echos the error message and continues
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3433676&group_…
Bugs item #3433676, was opened at 2011-11-04 14:17
Message generated for change (Settings changed) made by grondin85
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3433676&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: 7
Private: No
Submitted By: Bertrand Grondin (grondin85)
Assigned to: Nobody/Anonymous (nobody)
Summary: Not enough arguments for format string pagegenerators.py
Initial Comment:
When launching interwiki.py or replace.py by exemple, I"ve the following message.
Traceback (most recent call last):
File "/home/bertrand/pywikipedia/pagegenerators.py", line 1193, in __iter__
for loaded_page in self.preload(somePages):
File "/home/bertrand/pywikipedia/pagegenerators.py", line 1212, in preload
pywikibot.getall(site, pagesThisSite)
File "/home/bertrand/pywikipedia/wikipedia.py", line 4440, in getall
% (len(pages), (u'', u'via API ')[site.has_api() and debug]))
TypeError: not enough arguments for format string
not enough arguments for format string
For replace.by, this bug crashes it.
Pywikipedia version :
>python version.py
Python 2.7.2+ (default, Oct 4 2011, 15:44:37)
[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=3433676&group_…
Bugs item #3433676, was opened at 2011-11-04 14:17
Message generated for change (Tracker Item Submitted) made by grondin85
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3433676&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: Bertrand Grondin (grondin85)
Assigned to: Nobody/Anonymous (nobody)
Summary: Not enough arguments for format string pagegenerators.py
Initial Comment:
When launching interwiki.py or replace.py by exemple, I"ve the following message.
Traceback (most recent call last):
File "/home/bertrand/pywikipedia/pagegenerators.py", line 1193, in __iter__
for loaded_page in self.preload(somePages):
File "/home/bertrand/pywikipedia/pagegenerators.py", line 1212, in preload
pywikibot.getall(site, pagesThisSite)
File "/home/bertrand/pywikipedia/wikipedia.py", line 4440, in getall
% (len(pages), (u'', u'via API ')[site.has_api() and debug]))
TypeError: not enough arguments for format string
not enough arguments for format string
For replace.by, this bug crashes it.
Pywikipedia version :
>python version.py
Python 2.7.2+ (default, Oct 4 2011, 15:44:37)
[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=3433676&group_…
Bugs item #3433609, was opened at 2011-11-04 10:49
Message generated for change (Tracker Item Submitted) made by djbarrett
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: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Daniel Barrett (djbarrett)
Assigned to: Nobody/Anonymous (nobody)
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
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3433609&group_…