[Pywikipedia-l] Getting started
Beebe, Mary J
BeebeM at BATTELLE.ORG
Fri Jun 19 19:21:45 UTC 2009
I am trying to setup pywikipedia to work on my local wiki. I have tried to follow online steps plus steps within README-family.txt.
My test wiki is: http://localhost/default (it is not live anywhere).
It seems like I am having trouble with this line within default_family.py (my family file).
self.langs = { # REQUIRED
'en': 'localhost/default', # Include one line for each wiki in family
# in the format 'code': 'hostname',
}
I have tried many different possibilities but have been unsuccessful. Here is the message I receive with login.py:
login.py
Password for user PyWikipedialBot on default:en:
Logging in to default:en as PyWikipedialBot
Traceback (most recent call last):
File "C:\Documents and Settings\beebem\Desktop\pywikipedia\login.py", line 316, in <module>
main()
File "C:\Documents and Settings\beebem\Desktop\pywikipedia\login.py", line 312, in main
loginMan.login()
File "C:\Documents and Settings\beebem\Desktop\pywikipedia\login.py", line 248, in login
cookiedata = self.getCookie()
File "C:\Documents and Settings\beebem\Desktop\pywikipedia\login.py", line 166, in getCookie
response, data = self.site.postData(address, self.site.urlEncode(predata))
File "C:\Documents and Settings\beebem\Desktop\pywikipedia\wikipedia.py", line 4655, in postData
conn.endheaders()
File "C:\Python26\lib\httplib.py", line 868, in endheaders
self._send_output()
File "C:\Python26\lib\httplib.py", line 740, in _send_output
self.send(msg)
File "C:\Python26\lib\httplib.py", line 699, in send
self.connect()
File "C:\Python26\lib\httplib.py", line 683, in connect
self.timeout)
File "C:\Python26\lib\socket.py", line 498, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
socket.gaierror: [Errno 11001] getaddrinfo failed
Thank you,
Mary Beebe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wikimedia.org/pipermail/pywikipedia-l/attachments/20090619/2e05c929/attachment.htm
More information about the Pywikipedia-l
mailing list