Thread:Manual talk:Pywikibot/Error to login

I installed Pywikipedia by these processes:

1. svn checkout http://svn.wikimedia.org/svnroot/pywikipedia/trunk/pywikipedia/ pywikipedia

2. cd pywikipedia

echo "# -*- coding: utf-8 -*-" > user-config.py

echo "mylang='xx'" >> user-config.py

echo "family='xxxwiki'" >> user-config.py

echo "usernames['xxxwiki']['xx']='xxxwiki_bot'" >> user-config.py

3. cat > ./families/xxxwiki_family.py <<END_SCRIPT


 * 1) -*- coding: utf-8  -*-

import config, family, urllib

class Family(family.Family):

def __init__(self):

family.Family.__init__(self)

self.name = 'xxxwiki'

self.langs = {

'xx': 'xxxwiki.net',

}

self.namespaces[2]['xx'] = u'User'

self.namespaces[3]['xx'] = u'User_talk'

def version(self, code):

return "1.24.2"

def scriptpath(self, code):

return '/w'

def path(self, code):

return '/w/index.php'

END_SCRIPT

When I commanded python login.py, However, The error occurs like this:

Logging in to xxxwiki:ko as xxwiki_bot via API.

Error downloading data: No JSON object could be decoded

Request xx:/w/api.php?

Retrying in 1 minutes...

Version is like this:

MediaWiki : 1.24.2

PHP : 5.4.39 (apache)

MySQL : 5.0.45-log

Python : 2.7.9rc1