Issue 449 in googlecl: Docs module stops to work after upgrade to python-gdata 2.0.15

35 views
Skip to first unread message

goog...@googlecode.com

unread,
Dec 1, 2011, 1:02:34 PM12/1/11
to google...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 449 by lgagg...@gmail.com: Docs module stops to work after
upgrade to python-gdata 2.0.15
http://code.google.com/p/googlecl/issues/detail?id=449

What steps will reproduce the problem?
1. google docs <any command>

What is the expected output? What do you see instead?
$google docs list
Traceback (most recent call last):
File "/usr/bin/google", line 849, in <module>
main()
File "/usr/bin/google", line 835, in main
run_once(options, args)
File "/usr/bin/google", line 540, in run_once
options.config)
File "/usr/bin/google", line 373, in import_service
service_module = import_at_runtime('googlecl.' + service + '.client')
File "/usr/bin/google", line 332, in import_at_runtime
return __import__(module, globals(), fromlist=['0'])
File "/usr/lib/python2.7/site-packages/googlecl/docs/client.py", line 47,
in <module>
googlecl.client.BaseClientCL):
File "/usr/lib/python2.7/site-packages/googlecl/docs/client.py", line 56,
in DocsClientCL
DOCLIST_FEED_URI = gdata.docs.client.DOCLIST_FEED_URI
AttributeError: 'module' object has no attribute 'DOCLIST_FEED_URI'

What version of the product are you using? On what operating system? What
version of gdata-python-client (aka python-gdata)?
googlecl: 0.9.13
os: archlinux 3.1.2-1
python-gdata: 2.0.15

Please provide any additional information below.
Problem starts after upgrade from python-gdata 2.0.14 to 2.0.15. No problem
with downgrade to python-gdata 2.0.14.

goog...@googlecode.com

unread,
Dec 1, 2011, 3:04:56 PM12/1/11
to google...@googlegroups.com
Updates:
Cc: Coil...@gmail.com

Comment #1 on issue 449 by jh...@google.com: Docs module stops to work

after upgrade to python-gdata 2.0.15
http://code.google.com/p/googlecl/issues/detail?id=449

Yes, 2.0.15 is currently broken. Lots of boring details here:
http://atechyblog.blogspot.com/2011/11/python-gdata.html
http://credentiality2.blogspot.com/2011/11/untangling-gdata.html

But the short version is that 2.0.14 should work for you until we get
2.0.15 fixed.

goog...@googlecode.com

unread,
Jan 19, 2012, 3:36:16 PM1/19/12
to google...@googlegroups.com

Comment #2 on issue 449 by jbsny...@gmail.com: Docs module stops to work
after upgrade to python-gdata 2.0.15
http://code.google.com/p/googlecl/issues/detail?id=449

So 2.0.16 has now been released, and it doesn't appear that this has been
fixed yet? Or is there an API change that should be reflected in GoogleCL?

goog...@googlecode.com

unread,
Jan 27, 2012, 10:49:40 AM1/27/12
to google...@googlegroups.com

Comment #3 on issue 449 by ro...@oenologee.com: Docs module stops to work
after upgrade to python-gdata 2.0.15
http://code.google.com/p/googlecl/issues/detail?id=449

I've tried 2.0.14, 2.0.15 and 2.0.16 and continue to get the same errors:

Traceback (most recent call last):

File "/usr/local/bin/google", line 5, in <module>
pkg_resources.run_script('googlecl==0.9.13', 'google')

File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.py",
line 442, in run_script
self.require(requires)[0].run_script(script_name, ns)

File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.py",
line 1160, in run_script
execfile(script_filename, namespace, namespace)

File "/Library/Python/2.6/site-packages/googlecl-0.9.13-py2.6.egg/EGG-INFO/scripts/google",

line 849, in <module>
main()

File "/Library/Python/2.6/site-packages/googlecl-0.9.13-py2.6.egg/EGG-INFO/scripts/google",

line 835, in main
run_once(options, args)

File "/Library/Python/2.6/site-packages/googlecl-0.9.13-py2.6.egg/EGG-INFO/scripts/google",

line 540, in run_once
options.config)

File "/Library/Python/2.6/site-packages/googlecl-0.9.13-py2.6.egg/EGG-INFO/scripts/google",

line 373, in import_service
service_module = import_at_runtime('googlecl.' + service + '.client')

File "/Library/Python/2.6/site-packages/googlecl-0.9.13-py2.6.egg/EGG-INFO/scripts/google",

line 332, in import_at_runtime
return __import__(module, globals(), fromlist=['0'])

File "/Library/Python/2.6/site-packages/googlecl-0.9.13-py2.6.egg/googlecl/docs/client.py",

line 47, in <module>
googlecl.client.BaseClientCL):

File "/Library/Python/2.6/site-packages/googlecl-0.9.13-py2.6.egg/googlecl/docs/client.py",
line 55, in DocsClientCL

goog...@googlecode.com

unread,
Jan 27, 2012, 10:53:41 AM1/27/12
to google...@googlegroups.com

Comment #4 on issue 449 by ro...@oenologee.com: Docs module stops to work
after upgrade to python-gdata 2.0.15
http://code.google.com/p/googlecl/issues/detail?id=449

What steps will reproduce the problem?
1. google docs <any command>

What is the expected output? What do you see instead?
$google docs list
What version of the product are you using? On what operating system? What
version of gdata-python-client (aka python-gdata)?
googlecl: 0.9.13
os: OSX 10.6.8
python-gdata: 2.0.16

goog...@googlecode.com

unread,
Jan 27, 2012, 5:14:56 PM1/27/12
to google...@googlegroups.com

Comment #5 on issue 449 by jh...@google.com: Docs module stops to work
after upgrade to python-gdata 2.0.15
http://code.google.com/p/googlecl/issues/detail?id=449

We haven't had a chance to try 2.0.16 yet (sorry), but 2.0.14 should still
work. My guess is that 2.0.16 will have the same problems 2.0.15 does.
(BTW, the DOCLIST_FEED_URI bug was fixed in change 575, which you'll get if
you check out the latest code from svn, but there are additional bugs that
will have to be fixed before 2.0.15 (and probably 2.0.16) will work).

goog...@googlecode.com

unread,
Feb 2, 2012, 4:24:57 AM2/2/12
to google...@googlegroups.com
Updates:
Status: Fixed

Comment #6 on issue 449 by Coilamg: Docs module stops to work after upgrade

2.0.15 and 2.0.16 now upload docs without problem. If you checkout the
newest version from svn you'll find the latest fix, which allows users to
upload docs of arbitrary file type with python-gdata versions 2.0.12
through 2.0.16. Python-gdata 2.0.0 through 2.0.4 still upload the same file
types that they used to.

http://code.google.com/p/googlecl/source/checkout

goog...@googlecode.com

unread,
Feb 2, 2012, 12:32:46 PM2/2/12
to google...@googlegroups.com

Comment #7 on issue 449 by ro...@oenologee.com: Docs module stops to work
after upgrade to python-gdata 2.0.15
http://code.google.com/p/googlecl/issues/detail?id=449

I'm now able to connect, but am getting the error "Downloading documents is
not supported for gdata-python-client < 2.0". I've done what I can to
verify I don't have any pre-2.0 versions (find /Library -name gdata* shows
/Library/Python/2.6/site-packages/gdata
/Library/Python/2.6/site-packages/gdata-2.0.16-py2.6.egg-info

and install script for new googlecl source shows
Processing dependencies for googlecl==0.9.13
Searching for gdata==2.0.16
Best match: gdata 2.0.16
Adding gdata 2.0.16 to easy-install.pth file

I'm as sure as I can be I've never installed a pre-2.0 version of gdata
since the last laptop rebuild about 3 months ago.

goog...@googlecode.com

unread,
Feb 3, 2012, 4:12:51 AM2/3/12
to google...@googlegroups.com
Updates:
Status: Accepted

Comment #8 on issue 449 by jh...@google.com: Docs module stops to work

after upgrade to python-gdata 2.0.15
http://code.google.com/p/googlecl/issues/detail?id=449

Roger, I was able to reproduce that error when doing "google docs get" with
python gdata 2.0.16. Thanks for pointing that out.

Getting into the code, I can see that we did a good job of getting docs
uploads working with the new gdata versions, but there are several bugs
floating around in the other docs commands that show up with 2.0.15 and 16.

But "docs list" and "docs get" both work for me if I use 2.0.14. So we're
updating the wikipages to recommend 2.0.14 as the best python gdata version
to use for now, and we'll start working on figuring out why those other
commands are broken with >=2.0.15.

goog...@googlecode.com

unread,
Feb 3, 2012, 4:18:50 PM2/3/12
to google...@googlegroups.com

Comment #9 on issue 449 by ro...@oenologee.com: Docs module stops to work
after upgrade to python-gdata 2.0.15
http://code.google.com/p/googlecl/issues/detail?id=449

I can confirm that using google docs get with gdata 2.0.14 works fine.

goog...@googlecode.com

unread,
Feb 26, 2012, 2:34:43 PM2/26/12
to google...@googlegroups.com

Comment #10 on issue 449 by a...@test.columbia.edu: Docs module stops to
work after upgrade to python-gdata 2.0.15
http://code.google.com/p/googlecl/issues/detail?id=449

Just FYI - the macport installs gdata 2.0.15, so don't waste your time
using it.

goog...@googlecode.com

unread,
Mar 30, 2012, 3:25:54 PM3/30/12
to google...@googlegroups.com

Comment #11 on issue 449 by gelli.ra...@gmail.com: Docs module stops to
work after upgrade to python-gdata 2.0.15
http://code.google.com/p/googlecl/issues/detail?id=449

I am getting the same error listed in comment #7 even I install gdata
2.0.14. Please help me in this regard.

Attachments:
errorGoogleCl 1.6 KB

goog...@googlecode.com

unread,
Apr 27, 2012, 12:21:43 PM4/27/12
to google...@googlegroups.com

Comment #12 on issue 449 by reub...@gmail.com: Docs module stops to work
after upgrade to python-gdata 2.0.15
http://code.google.com/p/googlecl/issues/detail?id=449

Same error as reported on mac osx 10.7.2. I installed gdata-2.0.17
initially, uninstalled it, and then installed gdata-2.0.14. I even
uninstalled and reinstalled googlecl-0.9.13 with pip.

goog...@googlecode.com

unread,
May 16, 2012, 5:58:06 AM5/16/12
to google...@googlegroups.com

Comment #13 on issue 449 by jim.law...@gmail.com: Docs module stops to work
after upgrade to python-gdata 2.0.15
http://code.google.com/p/googlecl/issues/detail?id=449

Perhaps I'm doing something wrong, but I'm trying to use the latest gdata
from SVN (2.0.17) and googlecl from svn (0.9.13) together and I still see
this problem. r575 does indeed replace the first use of DOCLIST_FEED_URI,
but there are other references to gdata.docs.client.DOCLIST_FEED_URI. I've
attached a patch that shows this. Whether this is a proper fix or not I
can't say, as I'm not familiar enough with googlecl.


Attachments:
googlecl_docs_client_feedlist.patch 1.7 KB

goog...@googlecode.com

unread,
Jun 18, 2012, 6:49:18 PM6/18/12
to google...@googlegroups.com

Comment #14 on issue 449 by ch...@livefyre.com: Docs module stops to work
after upgrade to python-gdata 2.0.15
http://code.google.com/p/googlecl/issues/detail?id=449

Bump....getting same result as jim.law.

goog...@googlecode.com

unread,
Jul 9, 2012, 11:57:29 PM7/9/12
to google...@googlegroups.com

Comment #15 on issue 449 by nowardev: Docs module stops to work after
idem here uploading on google docs\drive i have an error


Traceback (most recent call last):
File "/usr/bin/google", line 849, in <module>
main()
File "/usr/bin/google", line 835, in main
run_once(options, args)
File "/usr/bin/google", line 540, in run_once
options.config)
File "/usr/bin/google", line 373, in import_service
service_module = import_at_runtime('googlecl.' + service + '.client')
File "/usr/bin/google", line 332, in import_at_runtime
return __import__(module, globals(), fromlist=['0'])
File "/usr/lib/pymodules/python2.7/googlecl/docs/client.py", line 47, in
<module>
googlecl.client.BaseClientCL):
File "/usr/lib/pymodules/python2.7/googlecl/docs/client.py", line 55, in

goog...@googlecode.com

unread,
Jul 26, 2012, 2:55:38 PM7/26/12
to google...@googlegroups.com

Comment #16 on issue 449 by jim.cr...@cloudreach.co.uk: Docs module stops
to work after upgrade to python-gdata 2.0.15
http://code.google.com/p/googlecl/issues/detail?id=449

Still getting this issue.

Has anyone found a magic combination of gdata and googlecl versions that
work for docs?

goog...@googlecode.com

unread,
Jul 27, 2012, 12:36:35 PM7/27/12
to google...@googlegroups.com

Comment #17 on issue 449 by keita04b...@gmail.com: Docs module stops to
work after upgrade to python-gdata 2.0.15
http://code.google.com/p/googlecl/issues/detail?id=449

In gdata-2.0.14/
$ sudo python setup.py install --force

worked fine for me

goog...@googlecode.com

unread,
Sep 1, 2012, 7:52:07 AM9/1/12
to google...@googlegroups.com

Comment #18 on issue 449 by Mitya57: Docs module stops to work after
By the way, this bug blocks release of Debian wheezy
(http://bugs.debian.org/664989) :(

goog...@googlecode.com

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

Comment #19 on issue 449 by jh...@google.com: Docs module stops to work
after upgrade to python-gdata 2.0.15
http://code.google.com/p/googlecl/issues/detail?id=449

I believe I have this licked as of r600, which I just checked into svn. If
you download googlecl from subversion using the "source" tab above, all
docs commands should work with python gdata 2.0.14, 2.0.15, 2.0.16 or
2.0.17.

goog...@googlecode.com

unread,
Sep 6, 2012, 10:59:58 AM9/6/12
to google...@googlegroups.com

Comment #20 on issue 449 by Mitya57: Docs module stops to work after
The SVN version fixes "google docs list" for me, but doesn't fix "google
docs get filename":

dmitry@eeepc:/tmp$ google docs get main.cpp
Please specify dest: main.cpp
Downloading main.cpp to main.cpp
Traceback (most recent call last):
File "/usr/bin/google", line 842, in <module>
main()
File "/usr/bin/google", line 828, in main
run_once(options, args)
File "/usr/bin/google", line 626, in run_once
task.run(client, options, args)
File "/usr/lib/pymodules/python2.7/googlecl/docs/__init__.py", line 141,
in _run_get
client.get_docs(options.dest, entries, file_ext=options.format)
File "/usr/lib/pymodules/python2.7/googlecl/docs/base.py", line 235, in
get_docs
self.Download(entry, path)
AttributeError: 'DocsClientCL' object has no attribute 'Download'

(NB: I disabled error catching in /usr/bin/google to get the full
traceback).

goog...@googlecode.com

unread,
Sep 6, 2012, 11:01:09 AM9/6/12
to google...@googlegroups.com

Comment #21 on issue 449 by Mitya57: Docs module stops to work after
Forgot to add that I have python-gdata 2.0.17 installed.

goog...@googlecode.com

unread,
Sep 6, 2012, 11:14:36 AM9/6/12
to google...@googlegroups.com

Comment #22 on issue 449 by Mitya57: Docs module stops to work after
This patch fixes the issue I wrote about in comment 20.

Attachments:
download_to_downloadresource.patch 647 bytes

goog...@googlecode.com

unread,
Sep 6, 2012, 4:57:52 PM9/6/12
to google...@googlegroups.com

Comment #23 on issue 449 by jh...@google.com: Docs module stops to work
after upgrade to python-gdata 2.0.15
http://code.google.com/p/googlecl/issues/detail?id=449

Thanks Mitya! r602 should fix it.

goog...@googlecode.com

unread,
Sep 25, 2012, 7:27:23 PM9/25/12
to google...@googlegroups.com

Comment #24 on issue 449 by ap4...@gmail.com: Docs module stops to work
after upgrade to python-gdata 2.0.15
http://code.google.com/p/googlecl/issues/detail?id=449

Thanks Mitya, following your advice and installing the svn version worked
wonderfully now that youu patch has been implemented.

goog...@googlecode.com

unread,
Sep 25, 2012, 7:28:23 PM9/25/12
to google...@googlegroups.com

Comment #25 on issue 449 by ap4...@gmail.com: Docs module stops to work
The SVN Version should really be packed into the codebase here on google
code

goog...@googlecode.com

unread,
Nov 27, 2012, 4:03:52 PM11/27/12
to google...@googlegroups.com

Comment #26 on issue 449 by m...@morearty.com: Docs module stops to work
after upgrade to python-gdata 2.0.15
http://code.google.com/p/googlecl/issues/detail?id=449

For anyone looking for specific instructions on what commands to execute in
order to get the fix even though "pip install googlecl" doesn't have the
fix yet, this worked for me:

$ sudo pip uninstall googlecl
$ sudo pip install http://googlecl.googlecode.com/svn/trunk/

goog...@googlecode.com

unread,
Oct 27, 2013, 11:09:12 PM10/27/13
to google...@googlegroups.com

Comment #27 on issue 449 by brianpeiris: Docs module stops to work after
Pip really needs to be updated.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages