httplib AttributeError
Verfasst: Montag 13. Juni 2005, 16:27
Hallo,
vielleicht hat von euch schon mal jemand versucht, die Daten über ein Web- formular per Script zu holen, also sozusagen im Batch?
Bei manchen klappt das gut mit der Anleitung auf python.org, aber jetzt habe ich eins, da klappt es nicht und zwar ist die Fehlermeldung:
AttributeError: '_socketobject' object has no attribute '__nonzero__'
Der Aufruf sieht wie folgt aus:
urllib.urlopen( link, params) und funktioniert auch sonst. Hat jemand eine Idee, was ich mal versuchen könnte?
Danke!
Martina
Traceback (innermost last):
File "C:\Python24\Lib\urllib.py", line 79, in urlopen
return opener.open(url, data)
File "C:\Python24\Lib\urllib.py", line 182, in open
return getattr(self, name)(url, data)
File "C:\Python24\Lib\urllib.py", line 377, in open_https
errcode, errmsg, headers = h.getreply()
File "C:\Python24\Lib\httplib.py", line 1133, in getreply
response = self._conn.getresponse()
File "C:\Python24\Lib\httplib.py", line 868, in getresponse
self.close()
File "C:\Python24\Lib\httplib.py", line 630, in close
if self.sock:
File "C:\Python24\Lib\httplib.py", line 1050, in __getattr__
return getattr(self._sock, attr)
vielleicht hat von euch schon mal jemand versucht, die Daten über ein Web- formular per Script zu holen, also sozusagen im Batch?
Bei manchen klappt das gut mit der Anleitung auf python.org, aber jetzt habe ich eins, da klappt es nicht und zwar ist die Fehlermeldung:
AttributeError: '_socketobject' object has no attribute '__nonzero__'
Der Aufruf sieht wie folgt aus:
urllib.urlopen( link, params) und funktioniert auch sonst. Hat jemand eine Idee, was ich mal versuchen könnte?
Danke!
Martina
Traceback (innermost last):
File "C:\Python24\Lib\urllib.py", line 79, in urlopen
return opener.open(url, data)
File "C:\Python24\Lib\urllib.py", line 182, in open
return getattr(self, name)(url, data)
File "C:\Python24\Lib\urllib.py", line 377, in open_https
errcode, errmsg, headers = h.getreply()
File "C:\Python24\Lib\httplib.py", line 1133, in getreply
response = self._conn.getresponse()
File "C:\Python24\Lib\httplib.py", line 868, in getresponse
self.close()
File "C:\Python24\Lib\httplib.py", line 630, in close
if self.sock:
File "C:\Python24\Lib\httplib.py", line 1050, in __getattr__
return getattr(self._sock, attr)