Advertisement
Guest User

python-yql-err

a guest
Oct 13th, 2010
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.64 KB | None | 0 0
  1. ---------------------------------------------------------------------------
  2. TypeError                                 Traceback (most recent call last)
  3.  
  4. /home/jaganadhg/<ipython console> in <module>()
  5.  
  6. /usr/lib/python2.6/site-packages/yql-0.4-py2.6.egg/yql/__init__.pyc in execute(self, query, params, **kwargs)
  7.     218                             url, http_method, body=data)
  8.     219         else:
  9. --> 220             resp, content = self.http.request(url, http_method)
  10.     221
  11.     222         if resp.get('status') == '200':
  12.  
  13. /usr/lib/python2.6/site-packages/httplib2/__init__.pyc in request(self, uri, method, body, headers, redirections, connection_type)
  14.    1048                     content = new_content
  15.    1049             else:
  16. -> 1050                 (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)                                                                                                                      
  17.    1051         except Exception, e:
  18.    1052             if self.force_exception_to_status_code:
  19.  
  20. /usr/lib/python2.6/site-packages/httplib2/__init__.pyc in _request(self, conn, host, absolute_uri, request_uri, method, body, headers, redirections, cachekey)                                                                                                      
  21.     852             auth.request(method, request_uri, headers, body)
  22.     853
  23. --> 854         (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  24.     855
  25.     856         if auth:
  26.  
  27. /usr/lib/python2.6/site-packages/httplib2/__init__.pyc in _conn_request(self, conn, request_uri, method, body, headers)
  28.     821         for i in range(2):
  29.     822             try:
  30. --> 823                 conn.request(method, request_uri, body, headers)
  31.     824                 response = conn.getresponse()
  32.     825             except socket.gaierror:
  33.  
  34. /usr/lib/python2.6/httplib.pyc in request(self, method, url, body, headers)
  35.     896
  36.     897         try:
  37. --> 898             self._send_request(method, url, body, headers)
  38.     899         except socket.error, v:
  39.     900             # trap 'Broken pipe' if we're allowed to automatically reconnect
  40.  
  41.  
  42. /usr/lib/python2.6/httplib.pyc in _send_request(self, method, url, body, headers)
  43.     933         for hdr, value in headers.iteritems():
  44.     934             self.putheader(hdr, value)
  45. --> 935         self.endheaders()
  46.     936
  47.     937         if body:
  48.  
  49. /usr/lib/python2.6/httplib.pyc in endheaders(self)
  50.     890             raise CannotSendHeader()
  51.     891
  52. --> 892         self._send_output()
  53.     893
  54.     894     def request(self, method, url, body=None, headers={}):
  55.  
  56. /usr/lib/python2.6/httplib.pyc in _send_output(self)
  57.     762         msg = "\r\n".join(self._buffer)
  58.     763         del self._buffer[:]
  59. --> 764         self.send(msg)
  60.     765
  61.     766     def putrequest(self, method, url, skip_host=0, skip_accept_encoding=0):
  62.  
  63. /usr/lib/python2.6/httplib.pyc in send(self, str)
  64.     721         if self.sock is None:
  65.     722             if self.auto_open:
  66. --> 723                 self.connect()
  67.     724             else:
  68.     725                 raise NotConnected()
  69.  
  70. /usr/lib/python2.6/site-packages/httplib2/__init__.pyc in connect(self)
  71.     734             sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  72.     735         if self.timeout is not None:
  73. --> 736             sock.settimeout(self.timeout)
  74.     737         sock.connect((self.host, self.port))
  75.     738         ssl = socket.ssl(sock, self.key_file, self.cert_file)
  76.  
  77. /usr/lib/python2.6/socket.pyc in settimeout(self, *args)
  78.  
  79. TypeError: a float is required
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement