chubbs1234a / pygooglevoice

Automatically exported from code.google.com/p/pygooglevoice
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Login stopped working as of 9/6 pm #58

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Try to log in, e.g.
user = 'username'
pswd = 'passwd'
v = Voice()
v.login(user, pswd)

What is the expected output? What do you see instead?
...
File "/usr/local/bin/gvtweak", line 53, in gv_set_athome
   voice.login(user, pwd)
 File "/usr/local/lib/python2.6/dist-packages/pygooglevoice-0.5-py2.6.egg/googlevoice/voice.py", line 78, in login
   raise LoginError
googlevoice.util.LoginError

What version of the product are you using? On what operating system?
0.5 ubuntu

Please provide any additional information below.
- Run via a cron job successfully and regularly for months
- No recent config/account changes
- Can still log in via browser interface
- Additional troubleshooting suggestions requested

Original issue reported on code.google.com by ser...@gleizer.net on 7 Sep 2011 at 3:27

GoogleCodeExporter commented 8 years ago
experiencing this consistent error as well - exactly the same setup as original 
poster (0.5, ubuntu, run via daily cron job - successfully - for almost 1 year, 
no changes to my code or password or anything, can still log in via web UI)

Original comment by tin...@gmail.com on 7 Sep 2011 at 6:19

GoogleCodeExporter commented 8 years ago
I just starting failing as well today.  Did the interface change over the last 
couple of days?

Original comment by mark...@gmail.com on 8 Sep 2011 at 3:16

GoogleCodeExporter commented 8 years ago
tried some other existing packages (e.g. gvcall, GVCallScheduler (installed to 
google app engine)) - and still the same issue.

the LoginError appears to come from the
try assert self.special in voice.py login()

trying to figure it out, but seems the web login hack that pygooglevoice (and 
many others) use, is what fails now.

at first I wondered if it could be related that 2 days ago I enabled multiple 
gmail accounts on my android phone (but *not* 2-step auth) - but given these 
other reports, I highly doubt it...

Original comment by tin...@gmail.com on 8 Sep 2011 at 5:35

GoogleCodeExporter commented 8 years ago
From the linux command line, please try the following:

gvoice
email:  xxxx@gmail.com
password: *****

This fails for me everytime.  Can someone else please try this to confirm?  
Thanks.

Original comment by mark...@gmail.com on 9 Sep 2011 at 1:59

GoogleCodeExporter commented 8 years ago
Yes, of course. This is equivalent to the python code in the initial report.

I will try to debug further this weekend, if I have time - unless someone else 
gets it fixed first (hint, hint :))

Original comment by ser...@gleizer.net on 9 Sep 2011 at 2:08

GoogleCodeExporter commented 8 years ago
Same issues here the call just don't get processed...I am running Centos ...I 
did try the gvoice manual login on CLI as listed above and the authentication 
credentials were rejected yet work fine on the web interface...I noticed that 
gvoice web looks and feels has changed a bit, may be the "under the hood" may 
be too...thx

Original comment by mos...@gmail.com on 9 Sep 2011 at 8:41

GoogleCodeExporter commented 8 years ago
I am having the same login issue on FreeBSD 8.2

Original comment by sbarnet...@gmail.com on 10 Sep 2011 at 1:40

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I'm having a similar issue, and it started the same time (tuesday 9/6/11) For 
reference, i'm running a windows box. 

So probably a googlevoice change?

Original comment by Dennis.L...@gmail.com on 10 Sep 2011 at 5:35

GoogleCodeExporter commented 8 years ago
I've recently found how to access GV using pygooglevoice.  It requires some 
modification of the library, but instead of logging in via /ServiceLoginAuth, 
log in via /ClientLogin and obtain the Authorization token.  Once obtained, 
pass the Authorization token in the headers of every request.

According to the ClientLogin API the header should be in this format (shown 
below as if in a dict):
{"Authorization":"GoogleLogin auth=<Authorization token>"}

Original comment by macosx.4...@gmail.com on 10 Sep 2011 at 6:53

GoogleCodeExporter commented 8 years ago
confirming comment #10 - I tried the the google-voice-java package (v1.8), 
which uses ClientLogin method, and everything works as expected.

Original comment by tin...@gmail.com on 10 Sep 2011 at 7:45

GoogleCodeExporter commented 8 years ago
Can someone, that has the modified code, that uses ClientLogin, either fork or 
post a patch? 

I traced the issue down to a cookie being dropped when the initial POST is 
made, but would rather re-use someone's effort, than either try to make my own 
patch or to figure out how to use ClientLogin...

Original comment by ser...@gleizer.net on 10 Sep 2011 at 8:43

GoogleCodeExporter commented 8 years ago
Made a fix, changed the login to /ClientLogin as according to #10
https://code.google.com/r/bwpayne-pygooglevoice-auth-fix/

Original comment by bwpa...@gmail.com on 12 Sep 2011 at 3:36

GoogleCodeExporter commented 8 years ago
confirmed the fixes from #13 working nominally, many thanks bpwayne!

Original comment by tin...@gmail.com on 12 Sep 2011 at 4:15

GoogleCodeExporter commented 8 years ago
Ok, I used the command:
hg clone https://code.google.com/r/bwpayne-pygooglevoice-auth-fix/ 
to download the code.
and before I installed it, from the bin directory I ran:
./gvoice
email xxx
password: ***
I still got "Login failed. Retry?[Y/n]"
what am I missing? Thanks.

Original comment by mark...@gmail.com on 12 Sep 2011 at 1:15

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
wait a sec, I reinstall the auth-fix from #13 and it still says login failed.

Original comment by firexx...@gmail.com on 12 Sep 2011 at 2:56

GoogleCodeExporter commented 8 years ago
same here, I install it and it is still not working

hg clone https://code.google.com/r/bwpayne-pygooglevoice-auth-fix/ pygooglevoice
cd pygooglevoice
python setup.py install
gvoice
email: xxxx
password: xxx
Login failed. Retry?[Y/n] n

Original comment by redmaple...@gmail.com on 12 Sep 2011 at 6:58

GoogleCodeExporter commented 8 years ago
I am having the same problem. Tried the fix with no success.

Original comment by ericmayc...@gmail.com on 13 Sep 2011 at 12:43

GoogleCodeExporter commented 8 years ago
I did a diff on the source, and there are some changes.

However, I did a diff on the bin/gvoice, and it is no different from gvoice 
from 0.5.

I don't know how to compile it, can someone give directions who has tried it?  
Anyone gotten this branch to work? 

One other suggestion to the developer, can we add an option to display the 
version number?  It would make testing a little easier for us that are not 
experts. 

Thanks.

Original comment by mark...@gmail.com on 13 Sep 2011 at 1:11

GoogleCodeExporter commented 8 years ago
Not sure why everyone is complaining even after the fix is available. 
Make sure you download the code and re-install the files... 

OR

just have a look at the diffs and make the necessary changes in your local 
install of pygooglvoice... i can confirm that the fix is working for me.

Original comment by cchi...@gmail.com on 13 Sep 2011 at 2:03

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
seriously, agreed #21 this is a defect tracker not a pilot-error support forum. 
bwpayne's (sorry for earlier misspelling) fix continues to work splendidly.

Original comment by tin...@gmail.com on 13 Sep 2011 at 4:32

GoogleCodeExporter commented 8 years ago
I am set settings.py/LOGIN to 
"https://accounts.google.com/ServiceLogin?service=grandcentral&passive=1209600&c
ontinue=https://www.google.com/voice&followup=https://www.google.com/voice<mpl=o
pen" and Login works

Original comment by PitBeast...@gmail.com on 13 Sep 2011 at 6:01

GoogleCodeExporter commented 8 years ago
https://accounts.google.com/ServiceLogin?service=grandcentral&continue=https://w
ww.google.com/voice would be enough to get Login

Original comment by PitBeast...@gmail.com on 13 Sep 2011 at 7:24

GoogleCodeExporter commented 8 years ago
For those of us who are not experts, what steps do we take to incorporate the 
fix?  Any shortcut to test the patch before making changes to our systems? 
Bwpayne, for my better understanding, does the bin/gvoice in your clone 
download not contain the change, until we run setup? Thanks.

Original comment by mark...@gmail.com on 13 Sep 2011 at 12:27

GoogleCodeExporter commented 8 years ago
https://accounts.google.com/ServiceLogin?service=grandcentral&continue=https://w
ww.google.com/voice is working for the first time, but after couple test it 
failed again. I make sure all the command is the same.

check the output here. It was working then failed. Too many times login?

[trixbox1.localdomain pygooglevoice-0.5]# /usr/bin/gvoice -e xxxxx@gmail.com -p 
xxxxxx
gvoice> quit
Logging out of voice...
[trixbox1.localdomain pygooglevoice-0.5]# bash -c 'HOME=~asterisk && gvoice 
--batch call 1234567890'
Login failed.
[trixbox1.localdomain pygooglevoice-0.5]# bash -c 'HOME=~asterisk && gvoice 
--batch call 1234567890'
Login failed.
[trixbox1.localdomain pygooglevoice-0.5]# /usr/bin/gvoice -e xxxxxx@gmail.com 
-p xxxxxxx
Login failed. Retry?[Y/n] y
Login failed. Retry?[Y/n] n

Original comment by firexx...@gmail.com on 13 Sep 2011 at 1:27

GoogleCodeExporter commented 8 years ago
The fix in Comment 13 worked fine for me. At first it failed, and after tracing 
through the code with debug messages, I discovered that I forgot to remove 
voice.py:42.
If this does not help you, please do something similar and go through your 
voice.py file to see where the failure is happening. One easy thing to do is to 
set settings.DEBUG=True at the top of the file, to test that the fixed copy of 
voice.py is even being used. Perhaps your Python install is using a different 
include directory than you expect.

Original comment by huf...@gmail.com on 13 Sep 2011 at 6:07

GoogleCodeExporter commented 8 years ago
I got this to work using the advice in comment 13. I am getting errors but if I 
comment out some lines then it works. Maybe the errors are because I am using 
Python 2.4.3

---FIRST ERROR-------------------------------------------
Traceback (most recent call last):
  File "/usr/bin/gvoice", line 79, in ?
    login()
  File "/usr/bin/gvoice", line 49, in login
    voice.login(options.email,options.passwd)
  File "/usr/lib/python2.4/site-packages/googlevoice/voice.py", line 71, in login
    if response.getcode() == 200:
AttributeError: addinfourl instance has no attribute 'getcode'

---SECOND ERROR-------------------------------------------

Logging out of voice...
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/usr/lib/python2.4/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/usr/local/bin/gvoice", line 62, in logout
    voice.logout()
  File "/usr/lib/python2.4/site-packages/googlevoice/voice.py", line 91, in logout
    assert self.special == None
AssertionError
Error in sys.exitfunc:
Traceback (most recent call last):
  File "/usr/lib/python2.4/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/usr/local/bin/gvoice", line 62, in logout
    voice.logout()
  File "/usr/lib/python2.4/site-packages/googlevoice/voice.py", line 91, in logout
    assert self.special == None
AssertionError

Original comment by ericmayc...@gmail.com on 14 Sep 2011 at 8:37

GoogleCodeExporter commented 8 years ago
I seem to have duplicated this issue in #60.  There's an alternate patch 
attached to that issue, which I've reattached here as well.  It adds cookie 
support to the login method and uses all hidden form inputs in the post.

Original comment by joey.parrish@gmail.com on 14 Sep 2011 at 12:41

Attachments:

GoogleCodeExporter commented 8 years ago
Fix outlined in #24 by PitBeast works...

Change the value of "LOGIN" in settings.py to this:
https://accounts.google.com/ServiceLogin?service=grandcentral&passive=1209600&co
ntinue=https://www.google.com/voice&followup=https://www.google.com/voice<mpl=op
en

Original comment by rohit.vi...@gmail.com on 15 Sep 2011 at 2:21

GoogleCodeExporter commented 8 years ago
I have followed the instructions for the fix and still have non working google 
voice.

I get this error:
------------------------------------------------------------

Traceback (most recent call last):
  File "/usr/bin/gvoice", line 79, in ?
    login()
  File "/usr/bin/gvoice", line 49, in login
    voice.login(options.email,options.passwd)
  File "/usr/lib/python2.4/site-packages/googlevoice/voice.py", line 71, in login
    if response.getcode() == 200:
AttributeError: addinfourl instance has no attribute 'getcode'

-------------------------------------------------------------

I am using Cent5 with Python 2.4.3

Can someone help with a solution to this where I don't have to comment out 
random lines?

Original comment by christop...@gmail.com on 15 Sep 2011 at 8:17

GoogleCodeExporter commented 8 years ago
I removed gvoice, gvi, pygooglevoice
hg clone https://pygooglevoice.googlecode.com/hg/ pygooglevoice
cd pygooglevoice
python setup.py install

I get this error:
------------------------------------------------------------

Traceback (most recent call last):
  File "/usr/bin/gvoice", line 79, in ?
    login()
  File "/usr/bin/gvoice", line 49, in login
    voice.login(options.email,options.passwd)
  File "/usr/lib/python2.4/site-packages/googlevoice/voice.py", line 71, in login
    if response.getcode() == 200:
AttributeError: addinfourl instance has no attribute 'getcode'

-------------------------------------------------------------

I am using Cent5 with Python 2.4.3

I am willing to edit code, if someone will give me the name of the file, and 
the old line vs. the new line.

Please?

Original comment by mark...@gmail.com on 15 Sep 2011 at 10:30

GoogleCodeExporter commented 8 years ago
Bueller? 

Original comment by christop...@gmail.com on 16 Sep 2011 at 12:59

GoogleCodeExporter commented 8 years ago
Everyone that installed Trixbox from the ISO is currently running Python 2.4.3

Original comment by christop...@gmail.com on 16 Sep 2011 at 1:11

GoogleCodeExporter commented 8 years ago
Is there a problem with running Python 2.4.3?

Original comment by mark...@gmail.com on 16 Sep 2011 at 2:51

GoogleCodeExporter commented 8 years ago
No, but I suspect that the new code written for this using a routine that isn't 
available in version 2.4.3

I bet that if I upgrade to Python 3, this will start working, but I'm not going 
to do that without knowing what the outcome is or the impact to other programs

Original comment by christop...@gmail.com on 16 Sep 2011 at 3:05

GoogleCodeExporter commented 8 years ago
Actually I just notice that issue 49 is about it not working in Python 3, so I 
don't know what's going on or what to do.

Original comment by christop...@gmail.com on 16 Sep 2011 at 3:07

GoogleCodeExporter commented 8 years ago
Try it now https://code.google.com/r/bwpayne-pygooglevoice-auth-fix/
I made some changes so that it works with >=2.4

Original comment by bwpa...@gmail.com on 16 Sep 2011 at 11:41

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Still not working.

[trixbox1.localdomain tmp]# uname -na
Linux trixbox1.localdomain 2.6.18-128.1.10.el5 #1 SMP Thu May 7 10:39:21 EDT 
2009 i686 i686 i386 GNU/Linux
[trixbox1.localdomain tmp]# python 
Python 2.4.3 (#1, Mar  5 2011, 21:25:56) 
[GCC 4.1.2 20080704 (Red Hat 4.1.2-50)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 
[trixbox1.localdomain tmp]# date
Fri Sep 16 20:20:55 EDT 2011
[trixbox1.localdomain tmp]# hg clone 
https://code.google.com/r/bwpayne-pygooglevoice-auth-fix/
destination directory: bwpayne-pygooglevoice-auth-fix
requesting all changes
adding changesets
adding manifests
adding file changes
added 58 changesets with 320 changes to 98 files
updating working directory
31 files updated, 0 files merged, 0 files removed, 0 files unresolved
[trixbox1.localdomain tmp]# cd bwpayne-pygooglevoice-auth-fix
[trixbox1.localdomain bwpayne-pygooglevoice-auth-fix]# python setup.py install
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/googlevoice
copying googlevoice/voice.py -> build/lib/googlevoice
copying googlevoice/settings.py -> build/lib/googlevoice
copying googlevoice/__init__.py -> build/lib/googlevoice
copying googlevoice/tests.py -> build/lib/googlevoice
copying googlevoice/util.py -> build/lib/googlevoice
copying googlevoice/conf.py -> build/lib/googlevoice
running build_scripts
creating build/scripts-2.4
copying and adjusting bin/gvoice -> build/scripts-2.4
copying and adjusting bin/asterisk-gvoice-setup -> build/scripts-2.4
copying and adjusting bin/gvi -> build/scripts-2.4
changing mode of build/scripts-2.4/gvoice from 644 to 755
changing mode of build/scripts-2.4/asterisk-gvoice-setup from 644 to 755
changing mode of build/scripts-2.4/gvi from 644 to 755
running install_lib
copying build/lib/googlevoice/voice.py -> 
/usr/lib/python2.4/site-packages/googlevoice
copying build/lib/googlevoice/settings.py -> 
/usr/lib/python2.4/site-packages/googlevoice
copying build/lib/googlevoice/__init__.py -> 
/usr/lib/python2.4/site-packages/googlevoice
copying build/lib/googlevoice/tests.py -> 
/usr/lib/python2.4/site-packages/googlevoice
copying build/lib/googlevoice/util.py -> 
/usr/lib/python2.4/site-packages/googlevoice
copying build/lib/googlevoice/conf.py -> 
/usr/lib/python2.4/site-packages/googlevoice
byte-compiling /usr/lib/python2.4/site-packages/googlevoice/voice.py to 
voice.pyc
byte-compiling /usr/lib/python2.4/site-packages/googlevoice/settings.py to 
settings.pyc
byte-compiling /usr/lib/python2.4/site-packages/googlevoice/__init__.py to 
__init__.pyc
byte-compiling /usr/lib/python2.4/site-packages/googlevoice/tests.py to 
tests.pyc
byte-compiling /usr/lib/python2.4/site-packages/googlevoice/util.py to util.pyc
byte-compiling /usr/lib/python2.4/site-packages/googlevoice/conf.py to conf.pyc
running install_scripts
copying build/scripts-2.4/asterisk-gvoice-setup -> /usr/bin
copying build/scripts-2.4/gvoice -> /usr/bin
copying build/scripts-2.4/gvi -> /usr/bin
changing mode of /usr/bin/asterisk-gvoice-setup to 755
changing mode of /usr/bin/gvoice to 755
changing mode of /usr/bin/gvi to 755
[trixbox1.localdomain bwpayne-pygooglevoice-auth-fix]# /usr/bin/gvoice -e 
firxxxxxx@gmail.com -p xxxxxxxx
Login failed. Retry?[Y/n] y
Login failed. Retry?[Y/n] y
Login failed. Retry?[Y/n] y
Login failed. Retry?[Y/n] n
[trixbox1.localdomain bwpayne-pygooglevoice-auth-fix]#

Original comment by firexx...@gmail.com on 17 Sep 2011 at 12:26

GoogleCodeExporter commented 8 years ago
bwpayne,

I installed your new changes and google voice works now, but I do get more 
errors now:

[phones googlevoice]# gvoice -e cbuxxxxxx@gmail.com -p xxx call 1xxx 1xxx 3
Logging out of voice...
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/usr/lib/python2.4/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/usr/bin/gvoice", line 62, in logout
    voice.logout()
  File "/usr/lib/python2.4/site-packages/googlevoice/voice.py", line 97, in logout
    self.__do_page('logout')
  File "/usr/lib/python2.4/site-packages/googlevoice/voice.py", line 215, in __do_page
    return urlopen(Request(getattr(settings, page), data, headers))
  File "/usr/lib/python2.4/urllib2.py", line 130, in urlopen
    return _opener.open(url, data)
  File "/usr/lib/python2.4/urllib2.py", line 364, in open
    response = meth(req, response)
  File "/usr/lib/python2.4/urllib2.py", line 471, in http_response
    response = self.parent.error(
  File "/usr/lib/python2.4/urllib2.py", line 402, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.4/urllib2.py", line 480, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 400: Bad Request
Error in sys.exitfunc:
Traceback (most recent call last):
  File "/usr/lib/python2.4/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/usr/bin/gvoice", line 62, in logout
    voice.logout()
  File "/usr/lib/python2.4/site-packages/googlevoice/voice.py", line 97, in logout
    self.__do_page('logout')
  File "/usr/lib/python2.4/site-packages/googlevoice/voice.py", line 215, in __do_page
    return urlopen(Request(getattr(settings, page), data, headers))
  File "/usr/lib/python2.4/urllib2.py", line 130, in urlopen
    return _opener.open(url, data)
  File "/usr/lib/python2.4/urllib2.py", line 364, in open
    response = meth(req, response)
  File "/usr/lib/python2.4/urllib2.py", line 471, in http_response
    response = self.parent.error(
  File "/usr/lib/python2.4/urllib2.py", line 402, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.4/urllib2.py", line 480, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 400: Bad Request
[phones googlevoice]#

Original comment by christop...@gmail.com on 17 Sep 2011 at 12:58

GoogleCodeExporter commented 8 years ago
@firexxuer: you might need to clear your captcha

@christopher.m.burke: pull it again, it should be quiet now

Original comment by bwpa...@gmail.com on 17 Sep 2011 at 1:53

GoogleCodeExporter commented 8 years ago
I would like to thank bwpa..@gmail.com for his revised patch (see #39).  

I have applied the patch to two different machines, and it is working.  
For those newbie's like me, I removed the old directory pygooglevoice, and 
deleted /usr/bin/gvoice, /usr/bin/gvi before installing the patch.  Here are my 
steps:
cd ~
mkdir pygooglevoice
hg clone https://code.google.com/r/bwpayne-pygooglevoice-auth-fix/ 
pygooglevoice/
cd pygooglevoice
python setup.py install

Hope this works for everyone!

Original comment by mark...@gmail.com on 20 Sep 2011 at 3:23

GoogleCodeExporter commented 8 years ago
I followed your instructions in #44, but I'm getting the same results as #41.

 hg clone https://code.google.com/r/bwpayne-pygooglevoice-auth-fix/ pygooglevoice/
warning: certificate for code.google.com can't be verified (Python too old)
requesting all changes
adding changesets
adding manifests
adding file changes
added 59 changesets with 321 changes to 98 files
updating to branch default
31 files updated, 0 files merged, 0 files removed, 0 files unresolved
[bell ~]# cd pygooglevoice
[bell pygooglevoice]# python setup.py install
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/googlevoice
copying googlevoice/settings.py -> build/lib/googlevoice
copying googlevoice/voice.py -> build/lib/googlevoice
copying googlevoice/__init__.py -> build/lib/googlevoice
copying googlevoice/tests.py -> build/lib/googlevoice
copying googlevoice/conf.py -> build/lib/googlevoice
copying googlevoice/util.py -> build/lib/googlevoice
running build_scripts
creating build/scripts-2.4
copying and adjusting bin/gvoice -> build/scripts-2.4
copying and adjusting bin/asterisk-gvoice-setup -> build/scripts-2.4
copying and adjusting bin/gvi -> build/scripts-2.4
changing mode of build/scripts-2.4/gvoice from 644 to 755
changing mode of build/scripts-2.4/asterisk-gvoice-setup from 644 to 755
changing mode of build/scripts-2.4/gvi from 644 to 755
running install_lib
creating /usr/lib/python2.4/site-packages/googlevoice
copying build/lib/googlevoice/settings.py -> 
/usr/lib/python2.4/site-packages/googlevoice
copying build/lib/googlevoice/voice.py -> 
/usr/lib/python2.4/site-packages/googlevoice
copying build/lib/googlevoice/__init__.py -> 
/usr/lib/python2.4/site-packages/googlevoice
copying build/lib/googlevoice/tests.py -> 
/usr/lib/python2.4/site-packages/googlevoice
copying build/lib/googlevoice/conf.py -> 
/usr/lib/python2.4/site-packages/googlevoice
copying build/lib/googlevoice/util.py -> 
/usr/lib/python2.4/site-packages/googlevoice
byte-compiling /usr/lib/python2.4/site-packages/googlevoice/settings.py to 
settings.pyc
byte-compiling /usr/lib/python2.4/site-packages/googlevoice/voice.py to 
voice.pyc
byte-compiling /usr/lib/python2.4/site-packages/googlevoice/__init__.py to 
__init__.pyc
byte-compiling /usr/lib/python2.4/site-packages/googlevoice/tests.py to 
tests.pyc
byte-compiling /usr/lib/python2.4/site-packages/googlevoice/conf.py to conf.pyc
byte-compiling /usr/lib/python2.4/site-packages/googlevoice/util.py to util.pyc
running install_scripts
copying build/scripts-2.4/asterisk-gvoice-setup -> /usr/bin
copying build/scripts-2.4/gvi -> /usr/bin
copying build/scripts-2.4/gvoice -> /usr/bin
changing mode of /usr/bin/asterisk-gvoice-setup to 755
changing mode of /usr/bin/gvi to 755
changing mode of /usr/bin/gvoice to 755
[bell pygooglevoice]# /usr/bin/gvoice -e sean.whitney@gmail.com -p g00gl3 call 
19712085673 12062792686
Login failed. Retry?[Y/n] y
Login failed. Retry?[Y/n] y
Login failed. Retry?[Y/n] y
Login failed. Retry?[Y/n] 
yLogin failed. Retry?[Y/n] n

Original comment by sean.whi...@gmail.com on 21 Sep 2011 at 10:36

GoogleCodeExporter commented 8 years ago
Just some thought, can anyone confirm this fix is working in Canada? I followed 
all the diff method in issue 58 and 60. None of them work for me. I have the 
trixbox in vm so every time I can go back to orig status which could avoid fix 
over fix. The only thing I didn't try to put under US IP. I have no idea if 
Canada ip address make any diff here.

Original comment by firexx...@gmail.com on 21 Sep 2011 at 11:07

GoogleCodeExporter commented 8 years ago
Issues/comments I have with this login problem..

1 - It is not a "Medium" problem, currently pygooglvoice 0.5 is broken!
2 - The fix is simple change settings.py line #22
from:
LOGIN = 'https://www.google.com/accounts/ServiceLoginAuth?service=grandcentral'
to:
LOGIN = 'https://accounts.google.com/ServiceLogin?service=grandcentral'
Your location will definitely differ but this is mine since I don't use 
virtualenv.
/usr/local/lib/python2.7/dist-packages/googlevoice/settings.py

3 - Please try not to use Python 2.4.x , it is disastrously old (yes crappy 
CentOS is   horrible at updating their Python versions)

4 - Currently have no issues with Pythonic version yet cmd line returns errors

charlie:~ $ gvoice call 18005551212 1305xxxxxxxx
Traceback (most recent call last):
  File "/usr/local/bin/gvoice", line 129, in <module>
    getattr(voice,action)(*args)
  File "/usr/local/lib/python2.7/dist-packages/googlevoice/voice.py", line 106, in call
    'remember': '1'
  File "/usr/local/lib/python2.7/dist-packages/googlevoice/voice.py", line 210, in __validate_special_page
    load_and_validate(self.__do_special_page(page, data))
  File "/usr/local/lib/python2.7/dist-packages/googlevoice/util.py", line 65, in load_and_validate
    validate_response(loads(response.read()))
  File "/usr/local/lib/python2.7/dist-packages/googlevoice/util.py", line 59, in validate_response
    raise ValidationError('There was a problem with GV: %s' % response)
googlevoice.util.ValidationError: There was a problem with GV: {u'data': 
{u'code': 20}, u'ok': False}

So that makes no sense at the moment.

4 - Why is the official Mainline code base not update with simple fix! 

5 - Author if you are in need of help for updates.. I can fork on Github or add 
me as a maintainer as I can help with these bugs.

Original comment by jflt...@gmail.com on 23 Sep 2011 at 7:26

GoogleCodeExporter commented 8 years ago
I don't know if I'm making progress or not.  I installed python2.6 and now I get

/usr/bin/gvoice -e sean.whitney@gmail.com -p g00gl3 call 19712085673 12062792686
Traceback (most recent call last):
  File "/usr/bin/gvoice", line 79, in <module>
    login()
  File "/usr/bin/gvoice", line 49, in login
    voice.login(options.email,options.passwd)
  File "/usr/lib/python2.6/site-packages/googlevoice/voice.py", line 71, in login
    respMap = dict( line.strip().split('=', 1) for line in response.readlines() )
ValueError: dictionary update sequence element #0 has length 1; 2 is required

Original comment by sean.whi...@gmail.com on 24 Sep 2011 at 2:05

GoogleCodeExporter commented 8 years ago
For those newbie's like me, I removed the old directory pygooglevoice, and 
deleted /usr/bin/gvoice, /usr/bin/gvi before installing the patch.

Original comment by mark...@gmail.com on 24 Sep 2011 at 4:55

GoogleCodeExporter commented 8 years ago
I would like to thank bwpa..@gmail.com for his revised patch (see #39).  
I would like to thank marc..@gmail.com for his revised patch (see #44).

#!/bin/bash
cd /usr/local/src
apt-get install mercurial
rm -r pygooglevoice
hg clone https://code.google.com/r/bwpayne-pygooglevoice-auth-fix/ 
pygooglevoice/
cd pygooglevoice
echo pull if there is changes
hg pull
echo updates if there are any
hg update
rm -rf build
# the following line might change according to your installation
rm -rf /usr/local/lib/python2.6/dist-packages/googlevoice/
rm /usr/local/lib/python2.6/dist-packages/pygooglevoice-0.5.egg-info
rm /usr/local/bin/gvoice
rm /usr/local/bin/gvi
# the script for asterisk configuration - not needed
rm /usr/local/bin/asterisk-gvoice-setup
python setup.py install
exit

to test gvoice>
$ gvoice -e yourname@gmail.com
Password:
gvoice> call
Outgoing number: 18004664411
Forwarding number: 13235551212
Calling...

Original comment by Gerard...@gmail.com on 25 Sep 2011 at 6:16