ajshastri / 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 9 years ago

GoogleCodeExporter commented 9 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 9 years ago
Finally got it to compile and place a call without a login problem.  It seems 
to place the call and immediately log out.  However google never completes the 
call.  It shows the call was made in voice.google.com but for 0 seconds.....

Weird

Original comment by sean.whi...@gmail.com on 26 Sep 2011 at 6:28

GoogleCodeExporter commented 9 years ago
This is still not working for me. I am running:
Linux trixbox1.localdomain 2.6.18-92.1.18.el5 #1 SMP Wed Nov 12 09:30:27 EST 
2008 i686 i686 i386 GNU/Linux
and 
Python 2.4.3 (#1, Jul 27 2009, 17:57:39)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2

I did try both approaches here: the BWPAYNE fix as well as the LOGIN link 
update to: 
https://accounts.google.com/ServiceLogin?service=grandcentral
&passive=1209600&continue=https://www.google.com/voice&followup=https://www.goog
le.com/voice<mpl=open.....they both fail regardless of the account i am using.

Firexx we seem to have the same issues ( as I have followed all steps 
carefully, deleting the previous install before attempting the next) but I am 
in the US and I did try the suggestion on 43 to clear the captcha....NOTHING 
WORKING, KEEPS GETTING THE ENDLESS: Login failed. Retry?[Y/n].

I will appreciate any new suggestion here!!!

Original comment by mos...@gmail.com on 31 Oct 2011 at 5:52

GoogleCodeExporter commented 9 years ago
mosarr, 

Try pulling it again. I added a more helpful error message to be printed on a 
failed login.

Error codes are defined here:
http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html#Errors

If an error message does not print after a failed login then it is not 
installed correctly. The error message should look like:

Email address: yourname@gmail.com
Password: 
Login failed: 'BadAuthentication', Retry?[Y/n] 

Original comment by bwpa...@gmail.com on 31 Oct 2011 at 7:14

GoogleCodeExporter commented 9 years ago
I am still getting login failed. It looks like this:

Login failed: '', Retry?[Y/n]

Original comment by C...@yahoo.com on 1 Nov 2011 at 3:10

GoogleCodeExporter commented 9 years ago
BWPAYNE,
I have to tell you my sincere gratitude as the new pull fixed it for me.
The only thing I did different was to delete the egg.info on my python2.4 
folder, I admit that I forgot to do on my previous troubleshooting steps( I 
wonder if thats what was causing my failed login attempts).
Anyway I value your time and dedication for the open-source mentality. I don't 
consider myself as a newbie but neither an expert and for sure would like to be 
able to contribute so if you know, efficient, ways online to improve my 
knowlegde of Python, I will find time to learn.

Again Thanks a bunch!

Original comment by mos...@gmail.com on 2 Nov 2011 at 11:56

GoogleCodeExporter commented 9 years ago
I am also getting the same as #54

any help greatly appreciated

Original comment by danzigru...@gmail.com on 6 Jan 2012 at 4:12

GoogleCodeExporter commented 9 years ago
fix in #31 worked for me

Original comment by alexel...@gmail.com on 10 Mar 2012 at 6:19

GoogleCodeExporter commented 9 years ago
I GOT IT!!

What #44 said worked for me after a few messing around..

First I deleted everything, tried it and nothing
Deleted everything again and I got a weird error (Same as #48)
So I tried it again, changed the URLs and adding #!/paths/ before installing 
and again it failed
..so
I decided to just delete the directory, without deleting the files in the 
/usr/bin/
and for whatever reason it worked...

Try it?
gl

Original comment by GatesJ...@gmail.com on 23 May 2012 at 6:31

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
#24's solution works perfectly.

Original comment by jeff7...@gmail.com on 3 Mar 2013 at 7:37

GoogleCodeExporter commented 9 years ago
I downloaded and diff'd the code from #39 and updated the original installed 
files for PyGoogleVoice.  I'm running "IronPython 2.7.3 (2.7.0.40) on .NET 
4.0.30319.18034 (64-bit)" and the files modified were the settings.py, util.py 
& voice.py files in the "C:\Program Files (x86)\IronPython 
2.7\Lib\site-packages\googlevoice\" folder.  I then verified and was able to 
get the following code to work which simply marks all my unread GoogleVoice 
messages as read.

  from googlevoice import Voice,util
  voice = Voice()
  voice.login('xoxUSERIDxox', 'xoxPWDxox')
  while True :
      folder = voice.search('is:unread')
      if folder.totalSize <= 0 :
          break
      util.print_(folder.totalSize)
      for message in folder.messages:
          util.print_(message)
          message.mark(1)

Note: In addition to the PyGoogleVoice auth fix, I had to add this hack 
(http://stackoverflow.com/a/10464224/271992) to get around a "ImportError: 
cannot import expat from xml.parsers" error.  However, I'm pretty sure this is 
just related to IronPython.

Original comment by al.d...@gmail.com on 17 May 2013 at 3:05

GoogleCodeExporter commented 9 years ago
last month it was working well , but now :

Traceback (most recent call last):
  File "/usr/bin/gvoice", line 5, in <module>
    pkg_resources.run_script('pygooglevoice==0.5', 'gvoice')
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 461, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1194, in run_script
    execfile(script_filename, namespace, namespace)
  File "/usr/lib/python2.6/site-packages/pygooglevoice-0.5-py2.6.egg/EGG-INFO/scripts/gvoice", line 79, in <module>
    login()
  File "/usr/lib/python2.6/site-packages/pygooglevoice-0.5-py2.6.egg/EGG-INFO/scripts/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'

Original comment by wangrq0...@gmail.com on 8 Nov 2013 at 9:57

GoogleCodeExporter commented 9 years ago
Does this code still work?  I've been getting this error, but wasn't sure if 
everyone just gave up, since there's only one comment (today) since May.  This 
is definitely a cool project that should continue if possible.  If anyone has a 
working clone, please let me know.

Original comment by HamNE...@gmail.com on 9 Nov 2013 at 7:50

GoogleCodeExporter commented 9 years ago
Mine is still working.

Original comment by mark...@gmail.com on 9 Nov 2013 at 2:32

GoogleCodeExporter commented 9 years ago
I made a clone which currently works (at least for sending SMS messages):  
http://code.google.com/r/kkleidal-pygooglevoiceupdate/

Original comment by kklei...@gmail.com on 24 Nov 2013 at 2:47

GoogleCodeExporter commented 9 years ago
bwpayne's fix (comment #13) suffices to let me log in and view my SMS messages.
The base repo is broken, doesn't look like the dev is updating any more.

Original comment by vandy...@gmail.com on 31 Dec 2013 at 1:49

GoogleCodeExporter commented 9 years ago
Hello, this info is great.. Thank you!  I am able to send sms, and now I can 
call, but only if I use a forwarding number.  I can't get it to call just using 
google voice/talk.  Anytime I use a phone type, it doesn't work.  If I leave 
out phone type and forwarding it fails in voice.py on the line that says 
Remember.  Any ideas would be greatly appreciated!
self.__validate_special_page('call', {
            'outgoingNumber': outgoingNumber,
            'forwardingNumber': forwardingNumber,
            'subscriberNumber': subscriberNumber or 'undefined',
            'phoneType': phoneType,
            'remember': '1'

Original comment by livfrem...@gmail.com on 2 Jan 2014 at 9:16