salimoha / googlecl

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

AttributeError: 'NoneType' object has no attribute 'rfind' #307

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Installed googlecl deb package on ubuntu
$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.10
DISTRIB_CODENAME=karmic
DISTRIB_DESCRIPTION="Ubuntu 9.10"

$ python -V
Python 2.6.4

$ google picasa post --title "some title that is already there on picasa web" 
/media/HP\ v125w/10-03-2010/_DSC5376.JPG
Traceback (most recent call last):
  File "/usr/bin/google", line 676, in <module>
    main()
  File "/usr/bin/google", line 662, in main
    run_once(options, args)
  File "/usr/bin/google", line 504, in run_once
    task.run(client, options, args)
  File "/usr/lib/pymodules/python2.6/googlecl/picasa/service.py", line 390, in _run_post
    title=options.title)
  File "/usr/lib/pymodules/python2.6/googlecl/picasa/service.py", line 211, in get_single_album
    return self.GetSingleEntry(uri, title=title)
  File "/usr/lib/pymodules/python2.6/googlecl/base.py", line 239, in get_single_entry
    desired_class)
  File "/usr/lib/pymodules/python2.6/googlecl/base.py", line 181, in get_entries
    feed = self.GetFeed(uri)
  File "/usr/lib/pymodules/python2.6/gdata/photos/service.py", line 177, in GetFeed
    return self.Get(uri, converter=gdata.photos.AnyFeedFromString)
  File "/usr/lib/pymodules/python2.6/gdata/service.py", line 980, in Get
    headers=extra_headers)
  File "/usr/lib/pymodules/python2.6/atom/service.py", line 175, in request
    data=data, headers=all_headers)
  File "/usr/lib/pymodules/python2.6/gdata/auth.py", line 845, in perform_request
    return http_client.request(operation, url, data=data, headers=headers)
  File "/usr/lib/pymodules/python2.6/atom/http.py", line 93, in request
    connection = self._prepare_connection(url, all_headers)
  File "/usr/lib/pymodules/python2.6/atom/http.py", line 249, in _prepare_connection
    return HttpClient._prepare_connection(self, url, headers)
  File "/usr/lib/pymodules/python2.6/atom/http.py", line 161, in _prepare_connection
    return httplib.HTTPConnection(url.host)
  File "/usr/lib/python2.6/httplib.py", line 656, in __init__
    self._set_hostport(host, port)
  File "/usr/lib/python2.6/httplib.py", line 667, in _set_hostport
    i = host.rfind(':')
AttributeError: 'NoneType' object has no attribute 'rfind'

Original issue reported on code.google.com by eyes95...@gmail.com on 4 Oct 2010 at 1:51

GoogleCodeExporter commented 9 years ago
Looks like a DUPE of issue 306. Anyways.

Original comment by eyes95...@gmail.com on 4 Oct 2010 at 1:57

GoogleCodeExporter commented 9 years ago

Original comment by thmil...@google.com on 4 Oct 2010 at 7:52