Last modified: 2013-12-23 08:29:11 UTC
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1136/ Reported by: Anonymous user Created on: 2010-03-09 13:34:43 Subject: Login no longer available Original description: I get the following errors when using a known good user-config.py and family configurations for an SVN checkout of 2009-11-05. This is for a local wiki. Using 2010-03-09, I get the following error on Ubuntu 9.04 \(Python 2.6.2\) and Ubuntu 8.04 \(Python 2.5.2\): Logging into FamilyName:en as UserName via API Error downloading data: No JSON object could be decoded Request: en:/scriptpath/api.php? Retrying in 1 minutes.... \(I changed line 152 of query.py to retry\_idle\_time\*0.01 so I could see the dump without growing a beard first\) Dump output: Error reported: No JSON object could be decoded 127.0.0.1 /hcrscript/api.php? \{"login":\{"result":"Success","lguserid":3,"lgusername":"UserName","lgtoken":"2b448df9379b445c225c0a5c1d3af18b","cookieprefix":"DatabaseName","sessionid":"3dd4cc3dd33236b57da8234d2f73e6d3"\}\} on Ubuntu 9.04: python version.py Pywikipedia \[http\] trunk/pywikipedia \(r7983, 2010/03/09, 08:14:34\) Python 2.6.2 \(release26-maint, April 19, 2009, 01:56:41\) \[GCC 4.3.3\] also broken on Ubuntu 8.04 python version.py Pywikipedia \[http\] trunk/pywikipedia \(r7983, 2010/03/09, 08:14:34\) Python 2.5.2 \(r252:60911, Jul 22 2009, 15:35:03\) \[GCC 4.2.4 \(Ubuntu 4.2.4-1ubuntu3\)\] But it seems to work fine on this system: foreignhost:pywikipedia-2010-03-09 alex$ python version.py Pywikipedia \[http\] trunk/pywikipedia \(r7983, 2010/03/09, 08:14:34\) Python 2.5.2 \(r252:60911, Feb 22 2008, 07:57:53\) \[GCC 4.0.1 \(Apple Computer, Inc. build 5363\)\] Any ideas what's happening?
>>> json.\_\_author\_\_, json.\_\_name\_\_, json.\_\_version\_\_, json.\_\_package\_\_, json.\_\_path\_\_ \('Bob Ippolito <bob@redivi.com>', 'json', '1.9', 'json', \['/usr/lib/python2.6/json'\]\) ? Probably there is something wrong with the json libraries, but I wonder what...
Might be outdated.
I mark it as resolved/worksforme. Maybe it is outdated. Please feel free to reopen this bug if it is still valid with the current pwb release.