I am installing pywikipedia. I have gotten to  the point where I can run python login.py and get prompted for a password. Then I get this:<br><br>[root@mustang pywikipedia]# !python<br>python login.py<br>Password for user wikibot on mustang:en: <br>
Logging in to mustang:en as wikibot<br>Traceback (most recent call last):<br>  File &quot;login.py&quot;, line 376, in &lt;module&gt;<br>    main()<br>  File &quot;login.py&quot;, line 372, in main<br>    loginMan.login()<br>
  File &quot;login.py&quot;, line 261, in login<br>    cookiedata = self.getCookie(api)<br>  File &quot;login.py&quot;, line 178, in getCookie<br>    response, data = self.site.postData(address, self.site.urlEncode(predata))<br>
  File &quot;/home/rwright/pywikipedia/wikipedia.py&quot;, line 4945, in postData<br>    conn.endheaders()<br>  File &quot;/usr/lib/python2.6/httplib.py&quot;, line 868, in endheaders<br>    self._send_output()<br>  File &quot;/usr/lib/python2.6/httplib.py&quot;, line 740, in _send_output<br>
    self.send(msg)<br>  File &quot;/usr/lib/python2.6/httplib.py&quot;, line 699, in send<br>    self.connect()<br>  File &quot;/usr/lib/python2.6/httplib.py&quot;, line 683, in connect<br>    self.timeout)<br>  File &quot;/usr/lib/python2.6/socket.py&quot;, line 498, in create_connection<br>
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):<br>socket.gaierror: [Errno -2] Name or service not known<br>[root@mustang pywikipedia]# <br><br><br>I tried the only solution on the archive I could find<br><br><pre>
<span style="color: rgb(255, 0, 0);">Hello Mary,</span><br style="color: rgb(255, 0, 0);"><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">the self.langs should contain the hostname &#39;localhost&#39;. The path for the</span><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">wiki should be given in scriptpath. In your case, try something like</span><br style="color: rgb(255, 0, 0);"><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">  self.langs = {&#39;en&#39;: &#39;localhost&#39;}</span><br style="color: rgb(255, 0, 0);">
<br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">  def scriptpath(self, code):</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">    return &#39;/default&#39;</span><br style="color: rgb(255, 0, 0);">
<br style="color: rgb(255, 0, 0);"><br style="color: rgb(255, 0, 0);"><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Hopefully that should work!</span><br style="color: rgb(255, 0, 0);"><br style="color: rgb(255, 0, 0);">
<span style="color: rgb(255, 0, 0);">Best reagards,</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Merlijn</span><br></pre>This did not work.<br><br>Any help would be much appreciated.<br><br>
---Robert<br>