silpol / googlecl

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

googlecl uses old DocList class #478

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install gdata-python-client 2.0.17 and googlecl 0.9.13.
2. Patch googlecl to fix the DOCLIST_FEED_URI problem (issue 449) and 
reinstall. 
3. google docs list

What is the expected output? 
A list of files in my docs feed.

What do you see instead?
Traceback (most recent call last):
  File "/usr/bin/google", line 5, in <module>
    pkg_resources.run_script('googlecl==0.9.13', 'google')
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 499, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1235, in run_script
    execfile(script_filename, namespace, namespace)
  File "/usr/lib/python2.7/site-packages/googlecl-0.9.13-py2.7.egg/EGG-INFO/scripts/google", line 989, in <module>
    main()
  File "/usr/lib/python2.7/site-packages/googlecl-0.9.13-py2.7.egg/EGG-INFO/scripts/google", line 975, in main
    run_once(options, args)
  File "/usr/lib/python2.7/site-packages/googlecl-0.9.13-py2.7.egg/EGG-INFO/scripts/google", line 769, in run_once
    raise run_error
AttributeError: 'module' object has no attribute 'DocList'

What version of the product are you using? On what operating system? 
0.9.13, Fedora 16, x86_64.

What
version of gdata-python-client (aka python-gdata)?
2.0.17.

Please provide any additional information below.
I've attached a patch that seems to fix this (it includes the patch for issue 
449 also). The patch is against a clean working copy of the latest in SVN 
(r595). Once the patch is applied and googlecl reinstalled, I can then list 
docs correctly.

Original issue reported on code.google.com by jim.law...@gmail.com on 16 May 2012 at 11:44

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for uploading the patch. That worked for me too.

Original comment by t...@steinonline.net on 28 Jun 2012 at 12:01

GoogleCodeExporter commented 8 years ago
yes, docs list works with the uploaded patch.

Original comment by mihkel.p...@gmail.com on 15 Jul 2012 at 1:10

GoogleCodeExporter commented 8 years ago
Thanks for sending the patch, Jim!  That saved me a lot of head-scratching.  
Looks like DocList was renamed to ResourceFeed in 2.0.15, so I added a function 
to detect the right one to use so that we don't break 2.0.14.

'google docs list' now works for me on 2.0.14-2.0.17 as of svn r598.

Original comment by jh...@google.com on 3 Sep 2012 at 12:45

GoogleCodeExporter commented 8 years ago
And as of r600, all docs commands now work for me with the latest python gdata 
2.0.17.

Original comment by jh...@google.com on 3 Sep 2012 at 4:24