flyfire / googlecl

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

AttributeError when downloading #268

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install googlecl_0.9.9-1_all.deb fresh on an Ubuntu 10.04 system
2. Run `google docs edit`.
3. Verify google account in browser.

Here is the copy/paste with my info obscured by ****:

glen@bowser:~$ google docs edit
Did not find config / preferences file at /home/glen/.googlecl/config
... making new one.
Please specify title: Glen
Please specify user: ****
Please log in and/or grant access via your browser at 
https://www.google.com/accounts/OAuthAuthorizeToken?oauth_token=****&hd=default 
then hit enter.Created new window in existing browser session.

Traceback (most recent call last):
  File "/usr/bin/google", line 577, in <module>
    main()
  File "/usr/bin/google", line 571, in main
    run_once(options, args)
  File "/usr/bin/google", line 418, in run_once
    task.run(client, options, args)
  File "/usr/lib/pymodules/python2.6/googlecl/docs/service.py", line 755, in _run_edit
    folder_entry_or_path=folder_entry or options.folder)
  File "/usr/lib/pymodules/python2.6/googlecl/docs/service.py", line 196, in edit_doc
    self.Export(doc_entry_or_title.content.src, path)
  File "/usr/lib/pymodules/python2.6/googlecl/docs/service.py", line 257, in export
    self.Download(entry_or_id_or_url, file_path, ext, gid, extra_params)
AttributeError: 'DocsServiceCL' object has no attribute 'Download'

What is the expected output? What do you see instead?
Not an attribute error :)

What version of the product are you using? On what operating system? What
version of gdata-python-client (aka python-gdata)?
googlecl_0.9.9-1_all.deb
Ubuntu 10.04
python-gdata version: 1.2.4-0ubuntu2

Original issue reported on code.google.com by gchiacch...@gmail.com on 27 Aug 2010 at 12:09

GoogleCodeExporter commented 8 years ago
What's SUPPOSED to happen is a friendly message telling you to update 
python-gdata to 2.x.x in order to download or edit documents. This message 
actually occurs in the most recent version.

If you update python-gdata, you should be good to go.

Original comment by tom.h.mi...@gmail.com on 27 Aug 2010 at 4:39

GoogleCodeExporter commented 8 years ago
Thanks! When I ran the `sudo python setup.py` on the latest download from the 
python-gdata it didn't actually work. I think we can chalk that up to ubuntu's 
python-gdata being behind the times, though. *shrug*

Original comment by gchiacch...@gmail.com on 27 Aug 2010 at 11:40

GoogleCodeExporter commented 8 years ago
This was silently fixed in an unknown revision at some point.

Original comment by tom.h.mi...@gmail.com on 13 Sep 2010 at 3:39