Closed GoogleCodeExporter closed 9 years ago
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.
Original comment by jh...@google.com
on 1 Dec 2011 at 8:04
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?
Original comment by jbsny...@gmail.com
on 19 Jan 2012 at 8:35
[deleted comment]
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/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
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: OSX 10.6.8
python-gdata: 2.0.16
Please provide any additional information below.
Original comment by ro...@oenologee.com
on 27 Jan 2012 at 3:52
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).
Original comment by jh...@google.com
on 27 Jan 2012 at 10:14
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
Original comment by Coilamg
on 2 Feb 2012 at 9:24
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.
Original comment by ro...@oenologee.com
on 2 Feb 2012 at 5:31
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.
Original comment by jh...@google.com
on 3 Feb 2012 at 9:12
I can confirm that using google docs get with gdata 2.0.14 works fine.
Original comment by ro...@oenologee.com
on 3 Feb 2012 at 9:18
Just FYI - the macport installs gdata 2.0.15, so don't waste your time using it.
Original comment by a...@test.columbia.edu
on 26 Feb 2012 at 7:34
I am getting the same error listed in comment #7 even I install gdata 2.0.14.
Please help me in this regard.
Original comment by gelli.ra...@gmail.com
on 30 Mar 2012 at 7:24
Attachments:
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.
Original comment by reub...@gmail.com
on 27 Apr 2012 at 4:21
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.
Original comment by jim.law...@gmail.com
on 16 May 2012 at 9:57
Attachments:
Bump....getting same result as jim.law.
Original comment by ch...@livefyre.com
on 18 Jun 2012 at 10:49
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 DocsClientCL
DOCLIST_FEED_URI = gdata.docs.client.DOCLIST_FEED_URI
AttributeError: 'module' object has no attribute 'DOCLIST_FEED_URI'
Original comment by nowardev
on 10 Jul 2012 at 3:57
Still getting this issue.
Has anyone found a magic combination of gdata and googlecl versions that work
for docs?
Original comment by jim.cr...@cloudreach.co.uk
on 26 Jul 2012 at 6:55
In gdata-2.0.14/
$ sudo python setup.py install --force
worked fine for me
Original comment by keita04b...@gmail.com
on 27 Jul 2012 at 4:36
[deleted comment]
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.
Original comment by jh...@google.com
on 3 Sep 2012 at 4:23
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).
Original comment by Mitya57
on 6 Sep 2012 at 2:59
Forgot to add that I have python-gdata 2.0.17 installed.
Original comment by Mitya57
on 6 Sep 2012 at 3:00
This patch fixes the issue I wrote about in comment 20.
Original comment by Mitya57
on 6 Sep 2012 at 3:14
Attachments:
Thanks Mitya! r602 should fix it.
Original comment by jh...@google.com
on 6 Sep 2012 at 8:57
[deleted comment]
Thanks Mitya, following your advice and installing the svn version worked
wonderfully now that youu patch has been implemented.
The SVN Version should really be packed into the codebase here on google code
Original comment by ap4...@gmail.com
on 25 Sep 2012 at 11:28
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/
Original comment by m...@morearty.com
on 27 Nov 2012 at 9:03
Pip really needs to be updated.
Original comment by brianpeiris
on 28 Oct 2013 at 3:09
Original issue reported on code.google.com by
lgaggini
on 1 Dec 2011 at 6:02