Login fails starting May 26, 2015

33 views
Skip to first unread message

ubar...@gmail.com

unread,
May 26, 2015, 11:28:19 PM5/26/15
to pygoog...@googlegroups.com, atm...@aol.com
I have a pygooglevoice code (pygooglevoice-0.5.tar downloaded March 3, 2012) that has worked daily for years.  Today, I started receiving this error on login via a Linux machine:

Python 2.7.2 |EPD 7.2-2 (64-bit)| (default, Jul  3 2011, 15:17:51)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
Type "packages", "demo" or "enthought" for more information.
>>> from googlevoice import Voice
>>> from googlevoice.util import input
>>> import json
>>> voice=Voice()
>>> voice.login('my_email@xyz.com','mypasswd')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/epd-7.2-2-rh5-x86_64/lib/python2.7/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


I see that others had similar issues a few years ago, but there doesn't seem to be a simple, obvious solution online.  Changing the LOGIN address in settings.py from

LOGIN = 'https://www.google.com/accounts/ClientLogin'

to

LOGIN = 'https://accounts.google.com/ServiceLogin?service=grandcentral'

or

LOGIN = 'https://accounts.google.com/ServiceLoginAuth?service=grandcentral'

produces a new error:


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/pygooglevoice-0.5-py2.6.egg/googlevoice/voice.py", line 70, in login
    galx = re.search(r"name=\"GALX\"\s+value=\"(.+)\"", content).group(1)
AttributeError: 'NoneType' object has no attribute 'group'


There is a potential fix for this second error that involves a change to the GALX search, but I would like to avoid tearing apart the code without some knowledgeable guidance that addresses the original problem.  Is there a simple solution?  Is there even a complex solution?

Thanks,
Chris

ubar...@gmail.com

unread,
May 27, 2015, 12:08:42 AM5/27/15
to pygoog...@googlegroups.com, atm...@aol.com
Now that I have bothered everyone, I'll share the solution for others.  This updated code works just fine:

https://code.google.com/r/kkleidal-pygooglevoiceupdate/

Download the tar file and install.  The new version works seamlessly.

Chris

justin quick

unread,
May 27, 2015, 8:28:23 AM5/27/15
to pygoog...@googlegroups.com, atm...@aol.com
Yea I no longer maintain this project. Im now sending people to the updated version you sent and just updated the main project page with the link. Thanks for showing me that!

--
You received this message because you are subscribed to the Google Groups "pygooglevoice" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pygooglevoic...@googlegroups.com.
To post to this group, send email to pygoog...@googlegroups.com.
Visit this group at http://groups.google.com/group/pygooglevoice.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages