Last modified: 2013-12-23 08:29:11 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T57285, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55285 - Login no longer available
Login no longer available
Status: RESOLVED WORKSFORME
Product: Pywikibot
Classification: Unclassified
login.py (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-05 04:57 UTC by Kunal Mehta (Legoktm)
Modified: 2013-12-23 08:29 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Kunal Mehta (Legoktm) 2013-10-05 04:57:16 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?
Comment 1 Kunal Mehta (Legoktm) 2013-10-05 04:57:18 UTC
>>> 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...
Comment 2 xqt 2013-10-14 13:35:11 UTC
Might be outdated.
Comment 3 xqt 2013-12-23 08:29:11 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links