Hi,<br><br>I work on two Wikis, and on one of them, I&#39;d like to use PyWikipedia to automate some tasks (I may end up using it on the other, too, but that&#39;s not my question).<br><br>So, during configuration, I ran generate_user_files.py, but since I had not yet created a Family file for either, they weren&#39;t options. Thus, I simply created a default one using my Wikipedia account. Tested it, worked fine (connected, asked for my password, at which point I used Ctrl+C to kill the script since I don&#39;t have authorization to run a bot on Wikipedia).<br>
<br>At this point I created a Family file for the Wiki I do want to use the bot on. I manually edited the user-config.py file to point to the new family, and run login.py, and I get some error messages - some mis-aligned tabs in my family file. I fix these, and then I get a very odd message:<br>
<br>&quot;Please create a file user-config.py, and put in there:<br><br>One line saying &quot;mylang=&#39;language&#39;&quot;<br>One line saying &quot;usernames[&#39;wikipedia&#39;][&#39;language&#39;]=&#39;yy&#39;&quot;<br>
<br>...filling in your username and the language code of the wiki you want to work<br>on.<br><br>For other possible configuration variables check config.py.&quot;<br><br>I tried deleting user-config.py, and using generate_user_files.py again, this time selecting my Wiki from the list. generate_user_files.py worked fine, but login.py had the same error again.<br>
<br>Then I deleted user-config.py and created it manually with the lines stated on <a href="http://meta.wikimedia.org/wiki/Pywikipedia_bot_on_non-wikimedia_projects">http://meta.wikimedia.org/wiki/Pywikipedia_bot_on_non-wikimedia_projects</a>:<br>
<br>family = &#39;sitename&#39; # matches the name of the &quot;sitename_family.py&quot; file<br>mylang = &#39;en&#39; # the only language on the Wiki<br>usernames[&#39;sitename&#39;][&#39;en&#39;] = DragoonWraith # my own account, at least for testing<br>
<br>Still got the same error.<br><br>At this point, I created a family file for the <i>other </i>Wiki, and that worked fine. Deleted user-config.py, re-created it with generate_user_files.py, and successfully logged in with login.py. Didn&#39;t do anything with it because I haven&#39;t really gotten that far; still need to learn how to use it - but that&#39;s besides the point.<br>
<br>OK, so I tried re-creating my family file for the first Wiki, since that was the only thing that was different. Still no go.<br><br>So, does anyone have any suggestions? Is there any relevant information I should be sending about the Wiki? Should I include the family file or the user-config file? Or anything else? Unfortunately, I&#39;m such a newbie that I don&#39;t even know what questions to ask, or how to ask them properly. Sorry about that.<br>
<br>- DragoonWraith<br>