Bugs item #3419295, was opened at 2011-10-05 20:14
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3419295&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: Masao Takaku (tmasao)
>Assigned to: xqt (xqt)
Summary: Python 2.4 incompatibile at wikipedia.py
Initial Comment:
Hi,
I've been using pywikipediabot for maintenance of categories and geocoding etc at my wiki site for half a year.
Thanks for this nifty tool.
I'm using trunk HEAD of pywikipedia bot library for my own script.
I noticed several recent updates are incompatible for Python 2.4.
For example: my script stopped with the following error:
====
Traceback (most recent call last):
File "createpage.py", line 22, in ?
import wikipedia as pywikibot
File "/home/masao/cvswork/savemlak/../pywikipedia/wikipedia.py", line 4422
% (len(pages), u'via API ' if site.has_api() and debug else u'', site))
^
SyntaxError: invalid syntax
===
Similar syntax error occurs at pywikibot/plural.py as well.
This error is caused by a new conditional expression introduced in Python 2.5.
cf. http://docs.python.org/whatsnew/2.5.html#pep-308
When I run my script under Python2.7, it works well.
If Python 2.4 is no longer supported, documentation is needed.
My running environment are as follows:
Pywikipedia [http] trunk/pywikipedia (r9587, 2011/10/05, 06:06:07)
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
Best Regards,
Masao
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2011-11-04 07:51
Message:
fixed in r9725
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3419295&group_…
Bugs item #3433520, was opened at 2011-11-04 06:39
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3433520&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: Daniel Barrett (djbarrett)
>Assigned to: xqt (xqt)
Summary: Syntax error in wikipedia.py, r9724
Initial Comment:
$ 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 4440
% (len(pages), u'via API ' if site.has_api() and debug else u'', site))
^
SyntaxError: invalid syntax
$ python version.py
Pywikipedia [http] trunk/pywikipedia (r9724, 2011/11/03, 07:13:50)
Python 2.4.3 (#1, May 5 2011, 16:39:10)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-50)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2011-11-04 07:47
Message:
Duplicate to bug #3419295
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3433520&group_…
Bugs item #3433520, was opened at 2011-11-04 06:39
Message generated for change (Settings changed) made by djbarrett
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3433520&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: Daniel Barrett (djbarrett)
Assigned to: Nobody/Anonymous (nobody)
Summary: Syntax error in wikipedia.py, r9724
Initial Comment:
$ 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 4440
% (len(pages), u'via API ' if site.has_api() and debug else u'', site))
^
SyntaxError: invalid syntax
$ python version.py
Pywikipedia [http] trunk/pywikipedia (r9724, 2011/11/03, 07:13:50)
Python 2.4.3 (#1, May 5 2011, 16:39:10)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-50)]
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=3433520&group_…
Bugs item #3433520, was opened at 2011-11-04 06:39
Message generated for change (Tracker Item Submitted) made by djbarrett
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3433520&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: Daniel Barrett (djbarrett)
Assigned to: Nobody/Anonymous (nobody)
Summary: Syntax error in wikipedia.py, r9724
Initial Comment:
$ 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 4440
% (len(pages), u'via API ' if site.has_api() and debug else u'', site))
^
SyntaxError: invalid syntax
$ python version.py
Pywikipedia [http] trunk/pywikipedia (r9724, 2011/11/03, 07:13:50)
Python 2.4.3 (#1, May 5 2011, 16:39:10)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-50)]
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=3433520&group_…
Bugs item #3311532, was opened at 2011-06-04 16:24
Message generated for change (Comment added) made by malafaya
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3311532&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: -start:Category:! ending on letter B
Initial Comment:
I ran the command:
interwiki.py -family:wiktionary -lang:es -async -auto -cleanup -pt:1 -start:Category:!
but the bot stopped on categories starting with B, as if there was nothing else to process.
I'm not sure why it's doing that.
Pywikipedia [http] trunk/pywikipedia (r9287, 2011/06/04, 10:13:18)
Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
>Comment By: André Malafaya Baptista (malafaya)
Date: 2011-11-02 16:49
Message:
It still happens to me. It gets to some categories starting with D, and
then it stops. It seems to go/jump to Category:Árabe (which I believe
should be one of the last due to the diacritic) just before stopping.
Did you for example see any category starting with T while testing?
----------------------------------------------------------------------
Comment By: Nemo (nemobis)
Date: 2011-10-31 16:44
Message:
Works for me with last revision and python 2.7.2, same config.
----------------------------------------------------------------------
Comment By: André Malafaya Baptista (malafaya)
Date: 2011-06-04 23:01
Message:
I'm not sure if this helps but the categories retrieved seem to go back at
some point.
With -start:Category:D, I got this output at some stage, where it goes
back to categories starting with numbers:
======Post-processing [[es:Categor¡a:Dhivehi]]======
No changes needed on page [[pt:Categoria:Divehi]]
No changes needed on page [[en:Category:Dhivehi language]]
No changes needed on page [[el:Katigor¡a:Gl¢ssa ntibe?¡]]
No changes needed on page [[lt:Kategorija:Maldyvu kalba]]
No changes needed on page [[sv:Kategori:Divehi]]
No changes needed on page [[es:Categor¡a:Dhivehi]]
No changes needed on page [[ro:Categorie:Divehi]]
No changes needed on page [[fr:Cat'gorie:divehi]]
NOTE: The first unfinished subject is [[es:Categor¡a:Dan's]]
NOTE: Number of pages queued is 99, trying to add 60 more.
Getting 60 pages from wiktionary:es...
NOTE: [[es:Categor¡a:01 trazo]] does not have any interwiki links
NOTE: [[es:Categor¡a:02 trazos]] does not have any interwiki links
NOTE: [[es:Categor¡a:03 trazos]] does not have any interwiki links
NOTE: [[es:Categor¡a:04 trazos]] does not have any interwiki links
NOTE: [[es:Categor¡a:05 trazos]] does not have any interwiki links
NOTE: [[es:Categor¡a:06 trazos]] does not have any interwiki links
NOTE: [[es:Categor¡a:07 trazos]] does not have any interwiki links
NOTE: [[es:Categor¡a:08 trazos]] does not have any interwiki links
NOTE: [[es:Categor¡a:09 trazos]] does not have any interwiki links
NOTE: [[es:Categor¡a:10 letras]] does not have any interwiki links
NOTE: [[es:Categor¡a:10 trazos]] does not have any interwiki links
NOTE: [[es:Categor¡a:11 letras]] does not have any interwiki links
NOTE: [[es:Categor¡a:11 trazos]] does not have any interwiki links
NOTE: [[es:Categor¡a:12 trazos]] does not have any interwiki links
NOTE: [[es:Categor¡a:13 trazos]] does not have any interwiki links
NOTE: [[es:Categor¡a:14 trazos]] does not have any interwiki links
NOTE: [[es:Categor¡a:15 trazos]] does not have any interwiki links
NOTE: [[es:Categor¡a:17 trazos]] does not have any interwiki links
NOTE: [[es:Categor¡a:19 trazos]] does not have any interwiki links
NOTE: [[es:Categor¡a:20 trazos]] does not have any interwiki links
NOTE: [[es:Categor¡a:3 letras]] does not have any interwiki links
NOTE: [[es:Categor¡a:4 letras]] does not have any interwiki links
NOTE: [[es:Categor¡a:5 letras]] does not have any interwiki links
NOTE: [[es:Categor¡a:6 letras]] does not have any interwiki links
NOTE: [[es:Categor¡a:7 letras]] does not have any interwiki links
NOTE: [[es:Categor¡a:8 letras]] does not have any interwiki links
NOTE: [[es:Categor¡a:9 letras]] does not have any interwiki links
----------------------------------------------------------------------
Comment By: André Malafaya Baptista (malafaya)
Date: 2011-06-04 17:30
Message:
Actually, no. It stopped on E, curiously enough, after processing some
categories starting with A...
----------------------------------------------------------------------
Comment By: André Malafaya Baptista (malafaya)
Date: 2011-06-04 16:52
Message:
If I do -start:Category:B, then it seems to run ok from then on until the
end.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3311532&group_…
Bugs item #3431273, was opened at 2011-10-31 17:55
Message generated for change (Comment added) made by tgr_
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: Pending
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 21: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 18: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 #3431987, was opened at 2011-11-01 18:24
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3431987&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: David Crochet (crochet_david)
Assigned to: xqt (xqt)
Summary: Outated family for wikiversity
Initial Comment:
interwiki.py verbose :
WARNING: Outdated family file wikiversity: namespace['cs'][2] is 'Wikipedista', but should be 'Uživatel'
WARNING: Outdated family file wikiversity: namespace['cs'][3] is 'Diskuse s wikipedistou', but should be 'Diskuse s uživatelem'
WARNING: Outdated family file wikiversity: namespace['pt'][2] is 'Usuário', but should be 'Utilizador'
WARNING: Outdated family file wikiversity: namespace['pt'][3] is 'Usuário Discussão', but should be 'Utilizador Discussão'
Pywikipedia [http] trunk/pywikipedia (r9716, 2011/10/31, 18:56:33)
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-01 18:42
Message:
fixed in r9718
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3431987&group_…
Bugs item #3431275, was opened at 2011-10-31 18: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: Open
>Resolution: Later
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-01 18:43
Message:
partially fixed in r9718
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3431275&group_…
Bugs item #3431987, was opened at 2011-11-01 18:24
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3431987&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: David Crochet (crochet_david)
>Assigned to: xqt (xqt)
Summary: Outated family for wikiversity
Initial Comment:
interwiki.py verbose :
WARNING: Outdated family file wikiversity: namespace['cs'][2] is 'Wikipedista', but should be 'Uživatel'
WARNING: Outdated family file wikiversity: namespace['cs'][3] is 'Diskuse s wikipedistou', but should be 'Diskuse s uživatelem'
WARNING: Outdated family file wikiversity: namespace['pt'][2] is 'Usuário', but should be 'Utilizador'
WARNING: Outdated family file wikiversity: namespace['pt'][3] is 'Usuário Discussão', but should be 'Utilizador Discussão'
Pywikipedia [http] trunk/pywikipedia (r9716, 2011/10/31, 18:56:33)
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-01 18:42
Message:
fixed in r9718
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3431987&group_…
Bugs item #3431987, was opened at 2011-11-01 18:24
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=3431987&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: Outated family for wikiversity
Initial Comment:
interwiki.py verbose :
WARNING: Outdated family file wikiversity: namespace['cs'][2] is 'Wikipedista', but should be 'Uživatel'
WARNING: Outdated family file wikiversity: namespace['cs'][3] is 'Diskuse s wikipedistou', but should be 'Diskuse s uživatelem'
WARNING: Outdated family file wikiversity: namespace['pt'][2] is 'Usuário', but should be 'Utilizador'
WARNING: Outdated family file wikiversity: namespace['pt'][3] is 'Usuário Discussão', but should be 'Utilizador Discussão'
Pywikipedia [http] trunk/pywikipedia (r9716, 2011/10/31, 18:56:33)
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=3431987&group_…