https://bugzilla.wikimedia.org/show_bug.cgi?id=55141
Web browser: --- Bug ID: 55141 Summary: WikiData: error for non-main namespace item Product: Pywikibot Version: unspecified Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: legoktm.wikipedia@gmail.com Classification: Unclassified Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1630/ Reported by: beta16 Created on: 2013-04-29 15:30:25 Subject: WikiData: error for non-main namespace item Original description: Hi! Following the istructions in [[:mw:Manual:Pywikipediabot/Wikidata]], I try this simple program:
import pywikibot site = pywikibot.getSite('en', 'wikipedia') repo = site.data_repository() page = pywikibot.Page(site, "Wikipedia:Unchi Bassi") data = pywikibot.DataPage(page) dictionary = data.get()
But the system return this error: pywikibot.exceptions.NoSuchSite: Language wikidata does not exist in family wikipedia
Version: Pywikipedia [http] trunk/pywikipedia (r11483, 2013/04/28, 17:04:21, OUTDATED) Python 2.6.5 (r265:79063, Oct 1 2012, 22:04:36) [GCC 4.4.3] config-settings: use_api = True use_api_login = True unicode test: ok
https://bugzilla.wikimedia.org/show_bug.cgi?id=55141
--- Comment #1 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- - **summary**: WikiData: error for non-mainnamespace item --> WikiData: error for non-main namespace item
https://bugzilla.wikimedia.org/show_bug.cgi?id=55141
--- Comment #2 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- You did it in a very bad way you simply must use: page = pywikibot.Page(site, "Wikipedia:Unchi Bassi") data = pywikibot.DataPage(page) data.get()
https://bugzilla.wikimedia.org/show_bug.cgi?id=55141
--- Comment #3 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- You're right. But this is only a very simple example which follows strictly the instructions to reproduce the error.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55141
--- Comment #4 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- instructions said you can use one of two ways I'll correct that and I'll make a more clear documentation
https://bugzilla.wikimedia.org/show_bug.cgi?id=55141
Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://sourceforge.net/p/p | |ywikipediabot/bugs/1630
https://bugzilla.wikimedia.org/show_bug.cgi?id=55141
Nemo federicoleva@tiscali.it changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|General |Wikidata
https://bugzilla.wikimedia.org/show_bug.cgi?id=55141
Max Klein isalix@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |isalix@gmail.com Resolution|--- |FIXED Assignee|Pywikipedia-bugs@lists.wiki |ladsgroup@gmail.com |media.org |
pywikipedia-bugs@lists.wikimedia.org