Bugs item #2897243, was opened at 2009-11-13 15:05 Message generated for change (Settings changed) made by xqt You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2897243...
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: None Group: None Status: Open
Resolution: Duplicate Priority: 8
Private: No Submitted By: JAn (jandudik) Assigned to: Nobody/Anonymous (nobody) Summary: continue of bug 2896087
Initial Comment: continue of bug 2896087 r7643 didn't fix it
Microsoft Windows XP [Verze 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp.
C:\Dokumenty\py>interwiki.py Traceback (most recent call last): File "C:\Dokumenty\py\interwiki.py", line 2164, in <module> mainpagename = site.mediawiki_message('mainpage') File "c:\Dokumenty\py\wikipedia.py", line 5948, in mediawiki_message datas = query.GetData(params, self)['query']['allmessages'][0] File "c:\Dokumenty\py\query.py", line 124, in GetData jsontext = site.getUrl( path, retry=True, sysop=sysop, data=data) File "c:\Dokumenty\py\wikipedia.py", line 5565, in getUrl if self.cookies(sysop = sysop) and not no_hostname: File "c:\Dokumenty\py\wikipedia.py", line 5198, in cookies self._loadCookies(sysop = sysop) File "c:\Dokumenty\py\wikipedia.py", line 5241, in _loadCookies if k not in self._cookies[index]: TypeError: argument of type 'NoneType' is not iterable
C:\Dokumenty\py>version.py Pywikipedia [http] trunk/pywikipedia (r7643, 2009/11/13, 12:58:33) Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]
C:\Dokumenty\py>
----------------------------------------------------------------------
Comment By: masti (masti01) Date: 2009-11-13 16:38
Message: It happens also with other scripts like basic.py or category.py example:
python pywikipedia/category.py listify -from:Warszawa -to:"Wikipedysta:mastiBot/wawtest" Reading dump from category.dump.bz2 Getting [[Kategoria:Warszawa]]... Dumping to category.dump.bz2, please wait... Traceback (most recent call last): File "pywikipedia/category.py", line 1020, in <module> bot.run() File "pywikipedia/category.py", line 524, in run listOfArticles = self.cat.articlesList(recurse = self.recurse) File "/home/mst/pw/pywikipedia/catlib.py", line 420, in articlesList for article in self.articles(recurse): File "/home/mst/pw/pywikipedia/catlib.py", line 405, in articles for tag, page in gen(recurse=recurse, startFrom=startFrom): File "/home/mst/pw/pywikipedia/catlib.py", line 162, in _getContentsNaive for tag, page in self._parseCategory(startFrom=startFrom): File "/home/mst/pw/pywikipedia/catlib.py", line 219, in _parseCategory data = query.GetData(params, self.site()) File "/home/mst/pw/pywikipedia/query.py", line 124, in GetData jsontext = site.getUrl( path, retry=True, sysop=sysop, data=data) File "/home/mst/pw/pywikipedia/wikipedia.py", line 5565, in getUrl if self.cookies(sysop = sysop) and not no_hostname: File "/home/mst/pw/pywikipedia/wikipedia.py", line 5198, in cookies self._loadCookies(sysop = sysop) File "/home/mst/pw/pywikipedia/wikipedia.py", line 5241, in _loadCookies if k not in self._cookies[index]: TypeError: argument of type 'NoneType' is not iterable
python pywikipedia/version.py Pywikipedia (r7643 (wikipedia.py), 2009/11/13, 12:58:33) Python 2.6 (r26:66714, Jun 8 2009, 16:07:26) [GCC 4.4.0 20090506 (Red Hat 4.4.0-4)]
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2897243...