salimoha / googlecl

Automatically exported from code.google.com/p/googlecl
0 stars 0 forks source link

AttributeError: sendall #280

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.google docs list
2.
3.

What is the expected output? What do you see instead?
show docs list

What version of the product are you using? On what operating system? What
version of gdata-python-client (aka python-gdata)?
googlecl-0.9.10
python-gdata-1.2.4-0ubuntu2

Please provide any additional information below.
Linux leeight-laptop 2.6.32-25-generic #43-Ubuntu SMP Wed Sep 1 09:46:39 UTC 
2010 i686 GNU/Linux

Traceback (most recent call last):
  File "/usr/bin/google", line 398, in run_interactive
    run_once(options, args)
  File "/usr/bin/google", line 488, in run_once
    success = authenticate(service, client, options.hostid)
  File "/usr/bin/google", line 107, in authenticate
    if client.RequestAccess(domain, hostid):
  File "/usr/lib/pymodules/python2.6/googlecl/docs/service.py", line 261, in request_access
    scopes=scopes)
  File "/usr/lib/pymodules/python2.6/googlecl/service.py", line 77, in request_access
    extra_parameters=fetch_params)
  File "/usr/lib/pymodules/python2.6/gdata/service.py", line 403, in FetchOAuthRequestToken
    response = self.http_client.request('GET', str(request_token_url))
  File "/usr/lib/pymodules/python2.6/atom/http.py", line 135, in request
    connection.endheaders()
  File "/usr/lib/python2.6/httplib.py", line 904, in endheaders
    self._send_output()
  File "/usr/lib/python2.6/httplib.py", line 776, in _send_output
    self.send(msg)
  File "/usr/lib/python2.6/httplib.py", line 755, in send
    self.sock.sendall(str)
AttributeError: sendall

Original issue reported on code.google.com by leei...@gmail.com on 7 Sep 2010 at 11:57

GoogleCodeExporter commented 9 years ago
That's a new one. I found two potential answers:

You somehow have a Python version < 2.1.3 of the socket module lurking on your 
system. (I'm not even sure how that's possible.)

And this thread suggests that gdata is to blame: 
http://www.google.com/support/forum/p/apps-apis/thread?tid=1e3f3df6de9a8efe&hl=e
n (Though I don't know why you're the first to encounter this problem.)

I would try updating python-gdata first. Let me know if that doesn't work.

Original comment by tom.h.mi...@gmail.com on 8 Sep 2010 at 12:20

GoogleCodeExporter commented 9 years ago

Original comment by tom.h.mi...@gmail.com on 8 Sep 2010 at 7:23

GoogleCodeExporter commented 9 years ago
unset http_proxy & https_proxy, it will works

Original comment by leei...@gmail.com on 9 Sep 2010 at 1:56

GoogleCodeExporter commented 9 years ago

Original comment by tom.h.mi...@gmail.com on 22 Sep 2010 at 1:06