Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---------------------------------------------------------------------------
- TypeError Traceback (most recent call last)
- /home/jaganadhg/<ipython console> in <module>()
- /usr/lib/python2.6/site-packages/yql-0.4-py2.6.egg/yql/__init__.pyc in execute(self, query, params, **kwargs)
- 218 url, http_method, body=data)
- 219 else:
- --> 220 resp, content = self.http.request(url, http_method)
- 221
- 222 if resp.get('status') == '200':
- /usr/lib/python2.6/site-packages/httplib2/__init__.pyc in request(self, uri, method, body, headers, redirections, connection_type)
- 1048 content = new_content
- 1049 else:
- -> 1050 (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
- 1051 except Exception, e:
- 1052 if self.force_exception_to_status_code:
- /usr/lib/python2.6/site-packages/httplib2/__init__.pyc in _request(self, conn, host, absolute_uri, request_uri, method, body, headers, redirections, cachekey)
- 852 auth.request(method, request_uri, headers, body)
- 853
- --> 854 (response, content) = self._conn_request(conn, request_uri, method, body, headers)
- 855
- 856 if auth:
- /usr/lib/python2.6/site-packages/httplib2/__init__.pyc in _conn_request(self, conn, request_uri, method, body, headers)
- 821 for i in range(2):
- 822 try:
- --> 823 conn.request(method, request_uri, body, headers)
- 824 response = conn.getresponse()
- 825 except socket.gaierror:
- /usr/lib/python2.6/httplib.pyc in request(self, method, url, body, headers)
- 896
- 897 try:
- --> 898 self._send_request(method, url, body, headers)
- 899 except socket.error, v:
- 900 # trap 'Broken pipe' if we're allowed to automatically reconnect
- /usr/lib/python2.6/httplib.pyc in _send_request(self, method, url, body, headers)
- 933 for hdr, value in headers.iteritems():
- 934 self.putheader(hdr, value)
- --> 935 self.endheaders()
- 936
- 937 if body:
- /usr/lib/python2.6/httplib.pyc in endheaders(self)
- 890 raise CannotSendHeader()
- 891
- --> 892 self._send_output()
- 893
- 894 def request(self, method, url, body=None, headers={}):
- /usr/lib/python2.6/httplib.pyc in _send_output(self)
- 762 msg = "\r\n".join(self._buffer)
- 763 del self._buffer[:]
- --> 764 self.send(msg)
- 765
- 766 def putrequest(self, method, url, skip_host=0, skip_accept_encoding=0):
- /usr/lib/python2.6/httplib.pyc in send(self, str)
- 721 if self.sock is None:
- 722 if self.auto_open:
- --> 723 self.connect()
- 724 else:
- 725 raise NotConnected()
- /usr/lib/python2.6/site-packages/httplib2/__init__.pyc in connect(self)
- 734 sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- 735 if self.timeout is not None:
- --> 736 sock.settimeout(self.timeout)
- 737 sock.connect((self.host, self.port))
- 738 ssl = socket.ssl(sock, self.key_file, self.cert_file)
- /usr/lib/python2.6/socket.pyc in settimeout(self, *args)
- TypeError: a float is required
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement