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