https://bugzilla.wikimedia.org/show_bug.cgi?id=55996
Web browser: --- Bug ID: 55996 Summary: Gender-modified namespace problem in touch.py Product: Pywikibot Version: compat (1.0) Hardware: PC OS: Windows 7 Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: malafaya@clix.pt Classification: Unclassified Mobile Platform: ---
It seems this user (User:Elvire) has gender specified as "female", and it changes the default User namespace alias (Portuguese language: default is Utilizador; female is Utilizadora). The bot cannot find the gender-mapped page in the list of fetched pages:
touch.py -family:wiktionary -lang:pt Utilizador_discussão:Elvire
'git' is not recognized as an internal or external command, operable program or batch file. Getting 1 page via API from wiktionary:pt... BUG>> title Utilizadora Discussão:Elvire ([[pt:Utilizador Discussão:Elvire]]) no t found in list Expected one of: [[pt:Utilizadora Discussão:Elvire]] Traceback (most recent call last): File "D:\Work\pywikipedia\pagegenerators.py", line 1234, in __iter__ for loaded_page in self.preload(somePages): File "D:\Work\pywikipedia\pagegenerators.py", line 1253, in preload pywikibot.getall(site, pagesThisSite) File "D:\Work\pywikipedia\wikipedia.py", line 5512, in getall _GetAll(site, pages, throttle, force).run() File "D:\Work\pywikipedia\wikipedia.py", line 5128, in run self.oneDoneApi(vals) File "D:\Work\pywikipedia\wikipedia.py", line 5406, in oneDoneApi raise PageNotFound PageNotFound
Pywikibot: wikipedia.py (r-1 (unknown), 1b27881, 2013/10/14, 11:11:46, OUTDATED)
Release version: 1.0b1 Python: 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)] config-settings: use_api = True use_api_login = True unicode test: ok
https://bugzilla.wikimedia.org/show_bug.cgi?id=55996
JAn Dudík jan.dudik@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jan.dudik@gmail.com
--- Comment #1 from JAn Dudík jan.dudik@gmail.com --- same problem with other scripts (replace.py, template.py) and [[diskuse s wikipedistkou:Username]] (female user talk page) in cs.wiki
https://bugzilla.wikimedia.org/show_bug.cgi?id=55996
Merlijn van Deen valhallasw@arctus.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|Unprioritized |Lowest Summary|Gender-modified namespace |Bulk loading pages using |problem in touch.py |API broken due to namespace | |aliases
--- Comment #2 from Merlijn van Deen valhallasw@arctus.nl --- This should be fixed (inadvertently) due by https://gerrit.wikimedia.org/r/#/c/92068/ - pwb will use Special:Export again.
Keeping this bug open, however, as it's *really* strange to trigger behavior depending on a -debug flag...
Script to reproduce:
pywikibot.logger.setLevel(pywikibot.DEBUG) import pywikibot pywikibot.logger.setLevel(pywikibot.DEBUG) pywikibot.getall(pywikibot.Site('pt', 'wikipedia'), [pywikibot.Page('pt', u'Utilizador_discussão:Elvire')])
Getting 1 page via API from wikipedia:pt... BUG>> title Usuária Discussão:Elvire ([[pt:Usuário(a) Discussão:Elvire]]) not found in list Expected one of: [[pt:Usuária Discussão:Elvire]] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "wikipedia.py", line 5956, in getall _GetAll(site, pages, throttle, force).run() File "wikipedia.py", line 5528, in run self.oneDoneApi(vals) File "wikipedia.py", line 5829, in oneDoneApi raise PageNotFound pywikibot.exceptions.PageNotFound
pywikipedia-bugs@lists.wikimedia.org