Jump to content

Manual talk:Pywikibot/Compat/copyright.py

Add topic
From mediawiki.org
The following discussion has been transferred from Meta-Wiki.
Any user names refer to users of that site, who are not necessarily users of MediaWiki.org (even if they share the same username).

Error when using on non-WMF wiki

[edit]

I'm getting the following error:

kudu@server:~/pywikipedia$ python copyright.py -new:50
Traceback (most recent call last):
  File "copyright.py", line 1210, in <module>
    main()
  File "copyright.py", line 1201, in main
    bot = CheckRobot(preloadingGen)
  File "copyright.py", line 1032, in __init__
    self.SearchEngine = SearchEngine()
  File "copyright.py", line 615, in __init__
    self.URLexcl = URLExclusion()
  File "copyright.py", line 313, in __init__
    self.scan()
  File "copyright.py", line 371, in scan
    self.download()
  File "copyright.py", line 323, in download
    for page, path in self.pages_list():
  File "copyright.py", line 319, in pages_list
    page = pywikibot.Page(pywikibot.getSite(i[0]), i[1])
  File "/home/kudu/pywikipedia/wikipedia.py", line 368, in __init__
    self._site = getSite(otherlang, familyName)
  File "/home/kudu/pywikipedia/wikipedia.py", line 7589, in getSite
    persistent_http=persistent_http)
  File "/home/kudu/pywikipedia/wikipedia.py", line 4868, in __init__
    %(self.lang,self.family.name))
pywikibot.exceptions.NoSuchSite: Language MY_FAMILY does not exist in family wikipedia

Search engine | number of queries
---------------------------------
Google        | 0
Yahoo!        | 0
Live Search   | 0

Where MY_FAMILY is my custom family's self.name. How can I fix this? — Waterfox 12:26, 23 May 2011 (UTC)Reply