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 requiredI 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