Manual talk:Pywikibot/unusedfiles.py

About this board

Error when running bot on my wiki

5
Solar Dragon (talkcontribs)

Hi,

I'm getting the following error when running the unusedfiles script on my wiki:


Traceback (most recent call last):

  File "C:\Pywikipedia\unusedfiles.py", line 145, in <module>

   main()

  File "C:\Pywikipedia\unusedfiles.py", line 134, in main

   bot = UnusedFilesBot(site=site, generator=gen, **options)

  File "C:\Pywikipedia\unusedfiles.py", line 65, in __init__

   'site.'.format(self.site))

pywikibot.i18n.TranslationError: This script is not localized for wikisimpsons:en site.

<class 'pywikibot.i18n.TranslationError'>

CRITICAL: Closing network session.


Other scripts seem to work fine, it's just this one I'm having problems with. Does anyone know what the problem is? Thanks. Solar Dragon (talk) 12:59, 10 September 2019 (UTC)

Dvorapa (talkcontribs)

Hello, what is the output of the version.py file? (python pwb.py version)

Solar Dragon (talkcontribs)
Pywikibot: pywikibot/__init__.py (, -1 (unknown), 2018/02/07, 19:02:09, UNKNOWN)
Release version: 3.0-dev
requests version: 2.20.1
  cacerts: C:\Users\Admin\AppData\Local\Programs\Python\Python37-32\lib\site-packages\certifi\cacert.pem
    certificate test: ok
Python: 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:05:16) [MSC v.1915 32 bit (Intel)]
PYWIKIBOT2_DIR: Not set
PYWIKIBOT2_DIR_PWB: Not set
PYWIKIBOT2_NO_USER_CONFIG: Not set
Config base dir: C:\Pywikipedia
Usernames for family "wikisimpsons":
        en: SolarBot (also sysop)

Dvorapa (talkcontribs)
Dvorapa (talkcontribs)

Another option would be to reinstall Pywikibot from scratch (make sure to backup your configuration files and scripts first)

Reply to "Error when running bot on my wiki"
There are no older topics