Thread:Project:Support desk/Media wiki pywikipedia bot

I'm trying to use pywikipedia for doing some automation in my project (e.g. I want to create wiki page on every Monday) but while testing the same I'm not able to login. Also to add I'm trying to connect to our internal wiki setup via bot and not to mediawiki.org. I'm not sure about where should I mention about internal wiki site http://mywiki.com/WikiUri or is it not possible to connect to internal wiki and do such operation? 1: Create user_config.py file 2: Create user_fixes.py file 3: The two files What do you do? 1 1: anarchopedia 2: battlestarwiki 3: botwiki 4: celtic 5: commons 6: fon 7: gentoo 8: i18n 9: incubator 10: krefeldwiki 11: lockwiki 12: loveto 13: lyricwiki 14: mediawiki 15: memoryalpha 16: meta 17: mozilla 18: omegawiki 19: openttd 20: osm 21: southernapproach 22: species 23: strategy 24: supertux 25: test 26: twcareer 27: ubuntutw 28: uncyclopedia 29: vikidia 30: wekey 31: wesolve 32: wikia 33: wikibond 34: wikibooks 35: wikinews 36: wikipedia 37: wikiquote 38: wikisource 39: wikitech 40: wikitravel 41: wikitravel_shared 42: wikiversity 43: wiktionary 44: wowwiki Select family of sites we are working on (default: wikipedia): 14 The language code of the site we're working on (default: 'en'): Username (en mediawiki): bot Which variant of user_config.py: [S]mall or [E]xtended (with further information)? S 'user-config.py' written. [root@myserver]# cat user-config.py family = 'mediawiki' mylang = 'en' usernames['mediawiki']['en'] = u'bot' [root@myserver]# /appl/Python2.7.2/bin/python login.py Traceback (most recent call last): File "login.py", line 436, in     main File "login.py", line 431, in main loginMan = LoginManager(password, sysop = sysop, verbose=verbose) File "login.py", line 106, in __init__ raise pywikibot.NoUsername(u'ERROR: Username for %s:%s is undefined.\nIf you have an account for that site, please add such  a line to user-config.py:\n\nusernames[\'%s\'][\'%s\'] = \'myUsername\'' % (self.site.family.name, self.site.lang,   self.site.family.name, self.site.lang)) pywikibot.exceptions.NoUsername: ERROR: Username for mediawiki:mediawiki is undefined. If you have an account for that site, please add such a line to user-config.py:
 * 1) /appl/Python2.7.2/bin/python generate_user_files.py
 * 1) -*- coding: utf-8  -*-

usernames['mediawiki']['mediawiki'] = 'myUsername' [root@myserver]#