Thread:Manual talk:Pywikipediabot/incorrect api.php path in command line/reply

Hi. The issue is in your indentation. Try:
 * 1) -*- coding: utf-8  -*-

import family


 * 1) westeros

class Family(family.Family): def __init__(self): family.Family.__init__(self)

self.name = 'westeros'

self.langs = { 'fa': 'www.westeros.ir', }   def version(self, code): return "1.19.3" def scriptpath(self, code): return '/wiki' def apipath(self, code): return '/wiki'

Rather than tabs, you should use 4 spaces, which will keep everything consistent over multiple computers/operating systems.