salimoha / googlecl

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

don't work with Google Documents on Mac OS X Lion 10.7.3 #463

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
don't work with Google Documents on Mac OS X Lion 10.7.3

1. installed from Macports: googlecl @0.9.13, py27-gdata @2.0.15_0 (active)

2. #google docs list

Traceback (most recent call last):
  File "/opt/local/bin/google", line 488, in run_interactive
    run_once(options, args)
  File "/opt/local/bin/google", line 540, in run_once
    options.config)
  File "/opt/local/bin/google", line 373, in import_service
    service_module = import_at_runtime('googlecl.' + service + '.client')
  File "/opt/local/bin/google", line 332, in import_at_runtime
    return __import__(module, globals(), fromlist=['0'])
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/googlecl/docs/client.py", line 47, in <module>
    googlecl.client.BaseClientCL):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/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'

3. work with Calendar, Contacs, YouTube, Blogger, Picasa, Finance

Original issue reported on code.google.com by Ivan.Lez...@gmail.com on 25 Feb 2012 at 11:45

GoogleCodeExporter commented 9 years ago
python gdata 2.0.15 had major undocumented changes.  2.0.14 should work for you.

Original comment by jh...@google.com on 25 Feb 2012 at 8:26

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
sudo port uninstall -f py27-gdata @2.0.15_0 got me so I can use #google docs 
list
but when I try to use #google docs upload --no-convert /Users/me/my.pdf 
I get 
"Failed to upload /Users/me/my.pdf : Server responded with: 403, <errors 
xmlns='http://schemas.google.com/g/2005'><error><domain>GData</domain><code>Serv
iceForbiddenException</code><internalReason>Files must be uploaded using the 
resumable upload mechanism.</internalReason></error></errors>
Only Apps Premier users can upload arbitrary file types without using the 
Google Docs web uploader."

any ideas?

Original comment by samco...@gmail.com on 28 Feb 2012 at 4:07

GoogleCodeExporter commented 9 years ago
found it replace
/Library/Python/2.7/site-packages/googlecl-0.9.13-py2.7.egg/googlecl/docs/client
.py
with file downloaded from
http://code.google.com/p/googlecl/source/browse/trunk/src/googlecl/docs/client.p
y?spec=svn593&r=589

Original comment by samco...@gmail.com on 28 Feb 2012 at 6:59

GoogleCodeExporter commented 9 years ago
Yes, it's fixed in svn.  Sorry, we haven't done a new release yet.  Some of the 
discovery API code created other bugs (relating to command line argument 
parsing) that haven't been fixed yet and that are holding us up.

Original comment by jh...@google.com on 28 Feb 2012 at 7:28

GoogleCodeExporter commented 9 years ago
I have the following packages installed using python-gdata 2.0.14 and it isn't 
working for me.  Please advise.

ms@ny:~$ dpkg --list | grep gdata
ii  libgdata-commo 0.9.1-0ubuntu2 Library for accessing GData webservices - co
rc  libgdata-googl 2.30.3-2ubuntu Client library for accessing Google POA thro
rc  libgdata1.2-1  2.30.3-2ubuntu Client library for accessing Google POA thro
ii  libgdata1.7-ci 1.7.0.1-1build Google GData CLI client library
rc  libgdata11     0.8.0-0ubuntu1 Library for accessing GData webservices - sh
ii  libgdata13     0.9.1-0ubuntu2 Library for accessing GData webservices - sh
rc  libgdata7      0.6.4-2        Library for accessing GData webservices - sh
ii  python-gdata   2.0.14-2       Google Data Python client library

Original comment by marc...@gmail.com on 25 Mar 2012 at 6:22

GoogleCodeExporter commented 9 years ago
I'm seeing the same issue with "docs" using 2.0.16.  

AttributeError: 'module' object has no attribute 'DOCLIST_FEED_URI'

Original comment by lett...@gmail.com on 30 Mar 2012 at 4:17

GoogleCodeExporter commented 9 years ago
Seeing the same issue using gdata-2.0.17 and googlecl-0.9.13

Original comment by orton.n...@gmail.com on 17 Aug 2012 at 7:32

GoogleCodeExporter commented 9 years ago
I'm also seeing this is OS X Mountain Lion 10.8.0 with gdata-2.0.17 and 
googlecl 0.9.13

Original comment by archive_...@braincorporation.com on 29 Aug 2012 at 9:11

GoogleCodeExporter commented 9 years ago
python gdata 2.0.15 had major undocumented changes.  See if 2.0.14 works for 
you.

Original comment by jh...@google.com on 30 Aug 2012 at 12:17

GoogleCodeExporter commented 9 years ago
I also tried with 2.0.14 but got the same problem.

Original comment by archive_...@braincorporation.com on 30 Aug 2012 at 12:28

GoogleCodeExporter commented 9 years ago
See related issue 449 that has been fixed

Original comment by stu.andrews on 20 Sep 2012 at 9:06

GoogleCodeExporter commented 9 years ago
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:04

GoogleCodeExporter commented 9 years ago
Awesome! Sadly ..

$ sudo pip install gdata
Downloading gdata-2.0.17.zip ..
$ sudo pip install http://googlecl.googlecode.com/svn/trunk/
...
Requirement already satisfied (use --upgrade to upgrade): gdata>=1.2.4 in 
/usr/local/lib/python2.7/site-packages (from googlecl==0.9.14)
...
Successfully installed googlecl
Cleaning up...
$ google docs upload foo.tsv
$ google docs upload foo.tsv
Traceback (most recent call last):
  File "/usr/local/bin/google", line 4, in <module>
    import pkg_resources
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2603, in <module>
    working_set.require(__requires__)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: googlecl==0.9.13

Original comment by d...@pinterest.com on 19 Mar 2013 at 9:20