https://bugzilla.wikimedia.org/show_bug.cgi?id=55150
Web browser: --- Bug ID: 55150 Summary: wikidata error Product: Pywikibot Version: unspecified Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: interwiki.py Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: legoktm.wikipedia@gmail.com Classification: Unclassified Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1586/ Reported by: Anonymous user Created on: 2013-02-23 10:30:20 Subject: wikidata error Original description: Some script says they might work with wikidata, but:
E:\Pywikipedia>interwiki.py -cleanup cs:wikipedie:wikidata -repository Getting 1 page from wikipedia:cs... [[cs:Wikipedie:Wikidata]]: [[cs:Wikipedie:Wikidata]] gives new interwiki [[simpl e:Wikipedia:Wikidata]] [[cs:Wikipedie:Wikidata]]: [[cs:Wikipedie:Wikidata]] gives new interwiki [[en:Wi kipedia:Wikidata]] [[cs:Wikipedie:Wikidata]]: [[cs:Wikipedie:Wikidata]] gives new interwiki [[fr:Wi kipédia:Wikidata]] [[cs:Wikipedie:Wikidata]]: [[cs:Wikipedie:Wikidata]] gives new interwiki [[de:Wi kipedia:Wikidata]] [[cs:Wikipedie:Wikidata]]: [[cs:Wikipedie:Wikidata]] gives new interwiki [[hu:Wi kipédia:Wikidata]] [[cs:Wikipedie:Wikidata]]: [[cs:Wikipedie:Wikidata]] gives new interwiki [[sv:Wi kipedia:Wikidata]] Getting 1 page from wikipedia:simple... Getting 1 page from wikidata:wikidata... Traceback (most recent call last): File "E:\Pywikipedia\pagegenerators.py", line 1222, in __iter__ for loaded_page in self.preload(somePages): File "E:\Pywikipedia\pagegenerators.py", line 1241, in preload pywikibot.getall(site, pagesThisSite) File "E:\Pywikipedia\wikipedia.py", line 5289, in getall _GetAll(site, pages, throttle, force).run() File "E:\Pywikipedia\wikipedia.py", line 4908, in run data = self.getData() File "E:\Pywikipedia\wikipedia.py", line 5078, in getData pagenames = u'\r\n'.join(pagenames) TypeError: sequence item 0: expected string or Unicode, NoneType found sequence item 0: expected string or Unicode, NoneType found Dump cs (wikipedia) appended. Traceback (most recent call last): File "E:\Pywikipedia\interwiki.py", line 2602, in <module> main() File "E:\Pywikipedia\interwiki.py", line 2576, in main bot.run() File "E:\Pywikipedia\interwiki.py", line 2309, in run self.queryStep() File "E:\Pywikipedia\interwiki.py", line 2282, in queryStep self.oneQuery() File "E:\Pywikipedia\interwiki.py", line 2278, in oneQuery subject.batchLoaded(self) File "E:\Pywikipedia\interwiki.py", line 1338, in batchLoaded (skip, alternativePage) = self.disambigMismatch(page, counter) File "E:\Pywikipedia\interwiki.py", line 1122, in disambigMismatch elif not self.originPage.isDisambig() and page.isDisambig(): File "E:\Pywikipedia\wikipedia.py", line 1563, in isDisambig self.templates()) File "E:\Pywikipedia\wikipedia.py", line 2799, in templates get_redirect=get_redirect)])) File "E:\Pywikipedia\wikipedia.py", line 2818, in templatesWithParams thistxt = removeDisabledParts(thistxt) File "E:\Pywikipedia\pywikibot\textlib.py", line 225, in removeDisabledParts return toRemoveR.sub('', text) TypeError: expected string or buffer
E:\Pywikipedia>version.py Pywikipedia trunk/pywikipedia/ (r11103, 2013/02/22, 16:14:56, ok) Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] config-settings: use_api = True use_api_login = True unicode test: ok
https://bugzilla.wikimedia.org/show_bug.cgi?id=55150
Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://sourceforge.net/p/p | |ywikipediabot/bugs/1586
https://bugzilla.wikimedia.org/show_bug.cgi?id=55150
Nemo federicoleva@tiscali.it changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|interwiki.py |Wikidata
https://bugzilla.wikimedia.org/show_bug.cgi?id=55150
Max Klein isalix@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|Unprioritized |Normal CC| |isalix@gmail.com Hardware|All |PC Version|unspecified |compat (1.0) Severity|normal |minor
https://bugzilla.wikimedia.org/show_bug.cgi?id=55150
Andre Klapper aklapper@wikimedia.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|wikidata error |wikidata error "expected | |string or Unicode, NoneType | |found"
https://bugzilla.wikimedia.org/show_bug.cgi?id=55150
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |testme Hardware|PC |All Summary|wikidata error "expected |textlib.removeDisabledParts |string or Unicode, NoneType |"expected string or |found" |Unicode" on wikidata
https://bugzilla.wikimedia.org/show_bug.cgi?id=55150
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugzilla.wikimedia. | |org/show_bug.cgi?id=69664
pywikipedia-bugs@lists.wikimedia.org