huangzonghao / googlecl

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

301 Moved Permanently #555

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
googlecl-0.9.14

./google contacts list --fields=name,phone .

Since a few days:

Failed to get entries: Server responded with: 301, <HTML>
<HEAD>
<TITLE>Moved Permanently</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Moved Permanently</H1>
The document has moved <A 
HREF="https://www.google.com/m8/feeds/contacts/default/full?max-results=500">her
e</A>.
</BODY>
</HTML>

Original issue reported on code.google.com by gerhard....@gmail.com on 2 Apr 2014 at 10:23

GoogleCodeExporter commented 8 years ago
Same here. 

Original comment by darrenmoorstreet on 14 Apr 2014 at 8:23

GoogleCodeExporter commented 8 years ago
I am having the same problem.

Has someone found a resolution? I didn't find this addressed elsewhere. 

Like the original poster, I running VERSION = '0.9.14'
checked out from SVN on 2014/04/29.

Original comment by neilormos on 29 Apr 2014 at 5:11

GoogleCodeExporter commented 8 years ago
I was able to get the contacts function working again by downloading and 
installing the latest version of the gdata-python-client library (gdata-2.0.18) 
from here:

  http://code.google.com/p/gdata-python-client/downloads/list

I believe this is the version contained in the python-gdata package in the 
Debian jessie (testing) and sid (unstable) repositories, and the Ubuntu saucy 
(13.10), trusty (14.04), and utopic (14.10) repositories.

I tested briefly, and the contacts function also appeared to work with the 
gdata-2.0.17 version in the Debian wheezy (stable) and the Ubuntu raring 
(13.04) repositories.

Due to the age of my system, dependency problems prevented me from installing 
the Debian or Ubuntu packages, so I installed the library directly.

Hope this helps someone who comes along later.

Original comment by neilormos on 29 Apr 2014 at 6:47

GoogleCodeExporter commented 8 years ago
I installed the latest gdata lib but it is still broken for me. Did you do 
anything beyond running the setup.py script?

Original comment by darrenmoorstreet on 30 Apr 2014 at 2:46

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Darren:

I didn't run setup.py.  I run stuff like this from a "local" directory in 
$HOME, so I just put the directory created by svn where I wanted it and set a 
shell alias (for terminal entry) and a shell variable (for scripts) to point to 
.../local/src/google.py

For the gdata-python-client library, I just unpacked the .tar file, placed it 
in the "local" directory and set the PYTHONPATH environment variable to point 
to the src subdirectory therein.

Original comment by neilormos on 30 Apr 2014 at 4:26