Bugs item #3431273, was opened at 2011-10-31 17:55
Message generated for change (Comment added) 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: 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: 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 #3431275, was opened at 2011-10-31 18:00
Message generated for change (Tracker Item Submitted) made by nemobis
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: None
Priority: 5
Private: No
Submitted By: Nemo (nemobis)
Assigned to: Nobody/Anonymous (nobody)
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
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3431275&group_…
Bugs item #3431273, was opened at 2011-10-31 17:55
Message generated for change (Tracker Item Submitted) 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: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Tgr (tgr_)
Assigned to: Nobody/Anonymous (nobody)
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
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3431273&group_…
Bugs item #3311532, was opened at 2011-06-04 17:24
Message generated for change (Comment added) made by nemobis
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: Nemo (nemobis)
Date: 2011-10-31 17:44
Message:
Works for me with last revision and python 2.7.2, same config.
----------------------------------------------------------------------
Comment By: André Malafaya Baptista (malafaya)
Date: 2011-06-05 00: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 18: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 17: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 #3426312, was opened at 2011-10-20 12:10
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3426312&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: Nakor Wikipedia (nakor-wikipedia)
>Assigned to: xqt (xqt)
Summary: interwiki is broken in pywikibot
Initial Comment:
$ python interwiki.py Pop rock
Retrieving 1 pages from wikipedia:fr.
[[fr:Pop rock]]: [[fr:Pop rock]] gives new interwiki [[ar:بوب روك]]
[[fr:Pop rock]]: [[fr:Pop rock]] gives new interwiki [[be-x-old:Поп-рок]]
[[fr:Pop rock]]: [[fr:Pop rock]] gives new interwiki [[bg:Поп рок]]
[[fr:Pop rock]]: [[fr:Pop rock]] gives new interwiki [[ca:Pop rock]]
[[fr:Pop rock]]: [[fr:Pop rock]] gives new interwiki [[cs:Pop rock]]
[[fr:Pop rock]]: [[fr:Pop rock]] gives new interwiki [[da:Poprock]]
[[fr:Pop rock]]: [[fr:Pop rock]] gives new interwiki [[de:Pop-Rock]]
[[fr:Pop rock]]: [[fr:Pop rock]] gives new interwiki [[en:Pop rock]]
[[fr:Pop rock]]: [[fr:Pop rock]] gives new interwiki [[es:Pop rock]]
[[fr:Pop rock]]: [[fr:Pop rock]] gives new interwiki [[eu:Pop rock]]
Retrieving 1 pages from wikipedia:en.
[[fr:Pop rock]]: [[en:Pop rock]] gives new interwiki [[fa:پاپ-راک]]
Retrieving 1 pages from wikipedia:fa.
Retrieving 1 pages from wikipedia:ca.
Retrieving 1 pages from wikipedia:eu.
Retrieving 1 pages from wikipedia:da.
Retrieving 1 pages from wikipedia:bg.
Retrieving 1 pages from wikipedia:be-x-old.
Retrieving 1 pages from wikipedia:de.
Retrieving 1 pages from wikipedia:es.
Retrieving 1 pages from wikipedia:cs.
Retrieving 1 pages from wikipedia:ar.
======Post-processing [[fr:Pop rock]]======
Dump fr (wikipedia) appended.
Traceback (most recent call last):
File "/home/nakor/sources/pywikipediabot/pywikibot/scripts/interwiki.py", line 2455, in <module>
main()
File "/home/nakor/sources/pywikipediabot/pywikibot/scripts/interwiki.py", line 2429, in main
bot.run()
File "/home/nakor/sources/pywikipediabot/pywikibot/scripts/interwiki.py", line 2193, in run
self.queryStep()
File "/home/nakor/sources/pywikipediabot/pywikibot/scripts/interwiki.py", line 2171, in queryStep
subj.finish(self)
File "/home/nakor/sources/pywikipediabot/pywikibot/scripts/interwiki.py", line 1630, in finish
if self.replaceLinks(page, new, bot):
File "/home/nakor/sources/pywikipediabot/pywikibot/scripts/interwiki.py", line 1744, in replaceLinks
insite=page.site)
File "/home/nakor/sources/pywikipediabot/pywikibot/scripts/interwiki.py", line 2229, in compareLanguages
if not pywikibot.unicode_error:
AttributeError: 'module' object has no attribute 'unicode_error'
$ python version.py
python: can't open file 'version.py': [Errno 2] No such file or directory
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2011-10-30 21:35
Message:
fixed in r9703
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-10-25 00:27
Message:
depends rewrite branch only. there is no initial unicode check.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3426312&group_…
Bugs item #3428890, was opened at 2011-10-26 22:35
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3428890&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: confirmed
Status: Open
Resolution: None
Priority: 3
Private: No
Submitted By: Merlijn S. van Deen (valhallasw)
Assigned to: Nobody/Anonymous (nobody)
Summary: Using non-ascii file path causes UnicodeDecodeError
Initial Comment:
[user@denix eskarcha]$ python2 login.py
unicode test: triggers problem #3081100
Password for user Eskarcha on chakra:en:
Logging in to chakra:en as Eskarcha via API.
Traceback (most recent call last):
File "login.py", line 436, in <module>
main()
File "login.py", line 432, in main
loginMan.login()
File "login.py", line 319, in login
cookiedata = self.getCookie(api)
File "login.py", line 243, in getCookie
self.site.updateCookies(L, self.sysop)
File "/home/user/proxectos/chakra/documentación/eskarcha/wikipedia.py", line 5193, in updateCookies
self._setupCookies(self._cookies[index], sysop)
File "/home/user/proxectos/chakra/documentación/eskarcha/wikipedia.py", line 5164, in _setupCookies
f = open(config.datafilepath('login-data', filename), 'w')
File "/home/user/proxectos/chakra/documentación/eskarcha/config.py", line 505, in datafilepath
return makepath(os.path.join(base_dir, *filename))
File "/usr/lib/python2.7/posixpath.py", line 71, in join
path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 39: ordinal not in range(128)
[user@denix eskarcha]$ python2 version.py
Pywikipedia [http] trunk/pywikipedia (r9675, 2011/10/26, 08:57:14)
Python 2.7.1 (r271:86832, Jul 24 2011, 00:49:56)
[GCC 4.5.3]
config-settings:
use_api = True
use_api_login = True
unicode test: triggers problem #3081100
Moving the pywikipediabot directory to an ascii path works as workaround.
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2011-10-29 14:36
Message:
Looks like a python bug and not ours
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3428890&group_…
Feature Requests item #3429209, was opened at 2011-10-27 10:25
Message generated for change (Comment added) made by reza1615
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3429209&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: reza (reza1615)
Assigned to: Nobody/Anonymous (nobody)
Summary: adding -recentchange -nobot argument
Initial Comment:
Hi,
in interwiki.py when we set it to -recentchange some times 80% of its result is other bot's interwiki so it is not useful spicily in crowded wikis
please add item like recenchange in wiki that can filter bots
----------------------------------------------------------------------
>Comment By: reza (reza1615)
Date: 2011-10-27 10:25
Message:
I mean -recentpage argument
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3429209&group_…
Feature Requests item #3429209, was opened at 2011-10-27 10:25
Message generated for change (Tracker Item Submitted) made by reza1615
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3429209&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: reza (reza1615)
Assigned to: Nobody/Anonymous (nobody)
Summary: adding -recentchange -nobot argument
Initial Comment:
Hi,
in interwiki.py when we set it to -recentchange some times 80% of its result is other bot's interwiki so it is not useful spicily in crowded wikis
please add item like recenchange in wiki that can filter bots
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3429209&group_…
Bugs item #3428890, was opened at 2011-10-26 22:35
Message generated for change (Tracker Item Submitted) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3428890&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: confirmed
Status: Open
Resolution: None
Priority: 3
Private: No
Submitted By: Merlijn S. van Deen (valhallasw)
Assigned to: Nobody/Anonymous (nobody)
Summary: Using non-ascii file path causes UnicodeDecodeError
Initial Comment:
[user@denix eskarcha]$ python2 login.py
unicode test: triggers problem #3081100
Password for user Eskarcha on chakra:en:
Logging in to chakra:en as Eskarcha via API.
Traceback (most recent call last):
File "login.py", line 436, in <module>
main()
File "login.py", line 432, in main
loginMan.login()
File "login.py", line 319, in login
cookiedata = self.getCookie(api)
File "login.py", line 243, in getCookie
self.site.updateCookies(L, self.sysop)
File "/home/user/proxectos/chakra/documentación/eskarcha/wikipedia.py", line 5193, in updateCookies
self._setupCookies(self._cookies[index], sysop)
File "/home/user/proxectos/chakra/documentación/eskarcha/wikipedia.py", line 5164, in _setupCookies
f = open(config.datafilepath('login-data', filename), 'w')
File "/home/user/proxectos/chakra/documentación/eskarcha/config.py", line 505, in datafilepath
return makepath(os.path.join(base_dir, *filename))
File "/usr/lib/python2.7/posixpath.py", line 71, in join
path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 39: ordinal not in range(128)
[user@denix eskarcha]$ python2 version.py
Pywikipedia [http] trunk/pywikipedia (r9675, 2011/10/26, 08:57:14)
Python 2.7.1 (r271:86832, Jul 24 2011, 00:49:56)
[GCC 4.5.3]
config-settings:
use_api = True
use_api_login = True
unicode test: triggers problem #3081100
Moving the pywikipediabot directory to an ascii path works as workaround.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3428890&group_…
Support Requests item #3428321, was opened at 2011-10-25 18:33
Message generated for change (Settings changed) made by reza1615
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=3428321&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: reza (reza1615)
Assigned to: Nobody/Anonymous (nobody)
Summary: add_text.py has problems in windows CMD
Initial Comment:
add_text.py arguments (-text -exception -summary -newimages ) doesn't support percentage characters specially for CMD in windows.
for example this example doesn't work correctly in windows CMD
python add_text.py -links%3A%22%D8%A7%D9%84%DA%AF%D9%88%3A%D9%81%D9%84%D8%A7%D9%86%22 -text%3A%7B%7B%D8%A7%D9%84%DA%AF%D9%88%3A%D9%81%D9%84%D8%A7%D9%86%7D%7D
is it possible to change their Unicode setting like pagegenerator.py arguments?
p.s. for percentage characters i use http://meyerweb.com/eric/tools/dencoder/
----------------------------------------------------------------------
>Comment By: reza (reza1615)
Date: 2011-10-26 13:28
Message:
-text: argument doesn't encode to Unicode text so it puts this percentage
text to pages! instead of {{فلان}}
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2011-10-25 19:36
Message:
You shouldn't encode the :, only the page title. So the correct command
would be:
python add_text.py
-links:%22%D8%A7%D9%84%DA%AF%D9%88%3A%D9%81%D9%84%D8%A7%D9%86%22
-text:%7B%7B%D8%A7%D9%84%DA%AF%D9%88%3A%D9%81%D9%84%D8%A7%D9%86%7D%7D
which should work.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=3428321&group_…