I'm trying to use the pagefromfile.py script from pywikibot to import text files as new pages in my mediawiki server. I am able to login and do some basic maintenance, but this specific bot gives me an error: https://pastebin.com/WDTfuLLH.
Steps to reproduce:
- nano pages.txt
- Paste the example from wiki:
{{-start-}}
'''Pywikibot''' is a Python library and collection of scripts that automate wor$
Originally designed for Wikipedia, it is now used throughout the Wikimedia Foun$
{{-stop-}}
{{-start-}}
'''AutoWikiBrowser''' (often abbreviated '''AWB''') is a semi-automated MediaWi$
{{-stop-}}
- python pwb.py pagefromfile -file:pages.txt