Bugs item #3605745, was opened at 2013-02-23 02:30 Message generated for change (Tracker Item Submitted) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3605745...
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: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: wikidata error
Initial Comment: 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
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3605745...
pywikipedia-bugs@lists.wikimedia.org