Hi All,
I'm new to Pywikibot (and Mediawiki as well). I've used the instructions on [0] to install pywikibot on my Windows laptop accessing a Linux server. All seems to be connected right (I'm successfully through step 9 and can login). The next step is to run add_text to change text on some pages. Here I get an error:
C:\Users\Owner\pywikibot>python pwb.py add_text.py -cat:Testing -text:"Testing the add_text script using the Pywikibot user." -except:"\{\{([Tt]emplate:|)[Dd]ocumentation [Ss]ubpage" -upTraceback (most recent call last): File "pwb.py", line 270, in <module> if not main(): File "pwb.py", line 264, in main run_python_file(filename, [filename] + args, argvu, file_package) File "pwb.py", line 109, in run_python_file main_mod.__dict__) File ".\scripts\add_text.py", line 358, in <module> main() File ".\scripts\add_text.py", line 338, in main genFactory.handleArg(arg) File "C:\Users\Owner\pywikibot\pywikibot\pagegenerators.py", line 589, in handleArg gen = self.getCategoryGen(arg, gen_func=CategorizedPageGenerator) File "C:\Users\Owner\pywikibot\pywikibot\pagegenerators.py", line 420, in getCategoryGen if prefix not in self.site.namespaces[14]: File "C:\Users\Owner\pywikibot\pywikibot\site.py", line 806, in namespaces self._namespaces = _NamespacesDict(self._build_namespaces()) File "C:\Users\Owner\pywikibot\pywikibot\site.py", line 2185, in _build_namespaces if item['*'] not in _namespaces[ns]:KeyError: 104<class 'KeyError'>CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
I've verified the Category name exists and is spelled correctly. Not sure what to try next to figure this out. Any help is appreciated.
Thanks,Bud Loveall
P.S. Also, is there a way to search the archives of the mail list? I'm guessing this has been answered before.