joebhakim / googlecl

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

socket.gaierror Name or Service not known #400

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. googlecl installed on Ubuntu 11.04
2. run "google picasa post <album> <path to picture>
3. Do this 50 times until error spits out

What is the expected output? What do you see instead?
Expect: Loading file <path to picture> to album <album>
Instead:
Traceback (most recent call last):
  File "/usr/bin/google", line 849, in <module>
    main()
  File "/usr/bin/google", line 835, in main
    run_once(options, args)
  File "/usr/bin/google", line 627, in run_once
    task.run(client, options, args)
  File "/usr/lib/pymodules/python2.7/googlecl/picasa/__init__.py", line 252, in _run_post
    title=options.title)
  File "/usr/lib/pymodules/python2.7/googlecl/picasa/service.py", line 262, in get_single_album
    return self.GetSingleEntry(uri, title=title)
  File "/usr/lib/pymodules/python2.7/googlecl/base.py", line 291, in get_single_entry
    desired_class)
  File "/usr/lib/pymodules/python2.7/googlecl/base.py", line 220, in get_entries
    feed = self.GetFeed(uri)
  File "/usr/lib/pymodules/python2.7/gdata/photos/service.py", line 177, in GetFeed
    return self.Get(uri, converter=gdata.photos.AnyFeedFromString)
  File "/usr/lib/pymodules/python2.7/googlecl/service.py", line 59, in retry_get
    return self.retry_operation(*args, **kwargs)
  File "/usr/lib/pymodules/python2.7/googlecl/base.py", line 387, in retry_operation
    raise unexpected
socket.gaierror: [Errno -2] Name or service not known

What version of the product are you using? On what operating system? 
What
version of gdata-python-client (aka python-gdata)?
0.9.13-1_all.deb on Ubuntu 11.04 with python-gdata 2.0.1-1.1

Please provide any additional information below.
I'm using a bash script to post pictures to albums on picasa, this occurs on 1 
out of 40-50 attempts.

Original issue reported on code.google.com by John.Nev...@gmail.com on 24 Jun 2011 at 2:24

GoogleCodeExporter commented 8 years ago
Couldn't replicate the problem. It seems like there is no such problem any 
more. The issue was reporter over 18 months ago, so I'm closing this now.

Original comment by szy...@endpoint.com on 29 Dec 2012 at 7:33

GoogleCodeExporter commented 8 years ago
I was getting the same error. And it turned out that for me it was a proxy 
issue. It was working fine when I was in one network, but when I moved to 
another my proxy settings changed and I did not reflect that on my command line 
http_proxy var. Once I did that googlecl worked for me.

Original comment by saurabh....@gmail.com on 13 Jul 2013 at 2:10