Bugs item #3587728, was opened at 2012-11-15 19:23 Message generated for change (Comment added) made by hazard-sj You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3587728...
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: General Group: trunk Status: Open Resolution: None Priority: 7 Private: No Submitted By: Hazard-SJ (hazard-sj) Assigned to: Nobody/Anonymous (nobody) Summary: Non-items on Wikidata cannot be edited
Initial Comment: I've been trying to run the archivebot.py script on Wikidata, but due to a number of things, the first of which is a KeyError from wikipedia.py, it fails. I've done a number of things, including removing and modification of code from wikipedia.py to try to get into the archivebot.py script, and I believe that the error(s) I get from there are from my removals. At the moment, the problem after what I've tried is with getting the text of the page. I changed "lines = self.get().split('\n')" to "pg = pywikibot.Page(Site, self.title())" followed by "lines = pg.get().split('\n')", but pg.get() returns NoneType, and obviously as a result the splitting can't even take place. It seems PyWikipedia was only changed for editing queries, or is part of the problem from the server's end? Thanks.
----------------------------------------------------------------------
Comment By: Hazard-SJ (hazard-sj)
Date: 2012-11-20 19:34
Message: Nope, just checked out r10745 and ran "python archivebot.py -S User:Hazard-Bot/Archiver" and got the error attached.
----------------------------------------------------------------------
Comment By: Amir (amird) Date: 2012-11-20 05:32
Message: Is it ok now?
----------------------------------------------------------------------
Comment By: xqt (xqt) Date: 2012-11-18 03:24
Message: This bug is caused by r10615 http://www.mediawiki.org/w/index.php?title=Special:Code/pywikipedia/10615&am...
----------------------------------------------------------------------
Comment By: Hazard-SJ (hazard-sj) Date: 2012-11-15 19:23
Message: Pywikipedia [http] trunk/pywikipedia (r10732, 2012/11/14, 21:06:52) Python 2.7.1 (r271:86832, Jan 4 2011, 13:57:14) [GCC 4.5.2] 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=3587728...
pywikipedia-bugs@lists.wikimedia.org