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.
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.
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?
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
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).
Comment #6 on issue 449 by Coilamg: Docs module stops to work after upgrade
to python-gdata 2.0.15
http://code.google.com/p/googlecl/issues/detail?id=449
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.
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.
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.
I can confirm that using google docs get with gdata 2.0.14 works fine.
Just FYI - the macport installs gdata 2.0.15, so don't waste your time
using it.
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