Win XP Proxy benutzen

Sockets, TCP/IP, (XML-)RPC und ähnliche Themen gehören in dieses Forum
Antworten
Benutzeravatar
Kebap
User
Beiträge: 686
Registriert: Dienstag 15. November 2011, 14:20
Wohnort: Dortmund

Hi, ein Freund von mir möchte gerne Python unter Windows XP benutzen, aber es funktioniert nicht. Ich denke, es liegt daran, weil er hinter einem Proxy ist. Python müsste die Proxy Einstellungen benutzen, aber dies geht vermutlich schief. Die Fehlermeldung hilft mir auch kaum:

Code: Alles auswählen

>>> import urllib2
>>> response = urllib2.urlopen("http://google.com")
Traceback (most recent call last):
  File "<interactive input>", line 1, in <module>
  File "Portable Python 2.7.2.1\App\lib\urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  File "Portable Python 2.7.2.1\App\lib\urllib2.py", line 394, in open
    response = self._open(req, data)
  File "Portable Python 2.7.2.1\App\lib\urllib2.py", line 412, in _open
    '_open', req)
  File "Portable Python 2.7.2.1\App\lib\urllib2.py", line 372, in _call_chain
    result = func(*args)
  File "Portable Python 2.7.2.1\App\lib\urllib2.py", line 1199, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "Portable Python 2.7.2.1\App\lib\urllib2.py", line 1174, in do_open
    raise URLError(err)
URLError: <urlopen error [Errno 11004] getaddrinfo failed>
MorgenGrauen: 1 Welt, 8 Rassen, 13 Gilden, >250 Abenteuer, >5000 Waffen & Rüstungen,
>7000 NPC, >16000 Räume, >200 freiwillige Programmierer, nur Text, viel Spaß, seit 1992.
Antworten