Issue 478 in googlecl: googlecl uses old DocList class

14 views
Skip to first unread message

goog...@googlecode.com

unread,
May 16, 2012, 7:44:22 AM5/16/12
to google...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 478 by jim.law...@gmail.com: googlecl uses old DocList class
http://code.google.com/p/googlecl/issues/detail?id=478

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.


Attachments:
googlecl_docs_client_feeduri_and_doclist.patch 2.6 KB

goog...@googlecode.com

unread,
Jun 28, 2012, 8:01:18 AM6/28/12
to google...@googlegroups.com

Comment #1 on issue 478 by t...@steinonline.net: googlecl uses old DocList
class
http://code.google.com/p/googlecl/issues/detail?id=478

Thanks for uploading the patch. That worked for me too.

goog...@googlecode.com

unread,
Jul 15, 2012, 9:10:51 AM7/15/12
to google...@googlegroups.com

Comment #2 on issue 478 by mihkel.p...@gmail.com: googlecl uses old DocList
class
http://code.google.com/p/googlecl/issues/detail?id=478

yes, docs list works with the uploaded patch.

goog...@googlecode.com

unread,
Sep 2, 2012, 8:45:23 PM9/2/12
to google...@googlegroups.com

Comment #3 on issue 478 by jh...@google.com: googlecl uses old DocList class
http://code.google.com/p/googlecl/issues/detail?id=478

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.

goog...@googlecode.com

unread,
Sep 3, 2012, 12:24:49 AM9/3/12
to google...@googlegroups.com
Updates:
Status: Fixed

Comment #4 on issue 478 by jh...@google.com: googlecl uses old DocList class
http://code.google.com/p/googlecl/issues/detail?id=478

And as of r600, all docs commands now work for me with the latest python
gdata 2.0.17.

Reply all
Reply to author
Forward
0 new messages