anasAsh / googlecl

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

failing to edit existing documents #259

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. docs edit --title "existing_name_of_the_document"  --editor nano 

What is the expected output? What do you see instead?

Traceback (most recent call last):
  File "/usr/bin/google", line 286, in run_interactive
    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 version of the product are you using? On what operating system? What
version of gdata-python-client (aka python-gdata)?

python-gdata 2.0.11
googlecl_0.9.9-1_all.deb  
Ubuntu 9.10 (karmic)  64amd

Please provide any additional information below.

Original issue reported on code.google.com by paul...@gmail.com on 20 Aug 2010 at 10:52

GoogleCodeExporter commented 9 years ago
I have no problem with creating a new document and editing it.

Original comment by paul...@gmail.com on 20 Aug 2010 at 10:54

GoogleCodeExporter commented 9 years ago
This is a bug in detecting proper versions of gdata, fixed in the trunk. You 
almost certainly have an old version of gdata lurking on your system somewhere.

You can apply the attached patch and run your command with --verbose to print 
the path to gdata and your pythonpath. For example, on my machine, it says:

Gdata will be imported from 
/usr/local/lib/python2.6/dist-packages/gdata/__init__.pyc
Your pythonpath: 
:/usr/local/lib/python2.6/site-packages:/usr/local/lib/python2.6/dist-packages

Gdata does not have a version variable to check, so you have to poke around in 
the pythonpath to find an install egg or some other version data.

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

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed. Thank you

Original comment by paul...@gmail.com on 24 Aug 2010 at 8:54