ajshastri / pygooglevoice

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

login credentials rejected #64

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
using the sms.py example provided in the extras, invoke by typing:
python sms.py
put in e-mail address and password for my google voice account

What is the expected output? What do you see instead?
It should proceed to ask me for a phone number and a message to send to that 
phone number, but instead I get an error:
File "sms.py", line 5, in <module>
    voice.login()
File "C:\Python27\googlevoice\voice.py", line 78, in login
    raise Login Error
googlevoice.util.LoginError

It gives me this error when I use my exact credentials that work just fine in 
logging into my google voice account.  This used to work a few months ago, but 
something has changed and it doesn't work now.

What version of the product are you using? On what operating system?
I am using pygooglevoice-0.5 with python2.7 on windows 7 os

Please provide any additional information below.

Any ideas on how I can fix this problem?

Original issue reported on code.google.com by brysonba...@gmail.com on 1 Dec 2011 at 1:49

GoogleCodeExporter commented 9 years ago
I think I have found a way to make pygooglevoice work again. If you change the 
settings.py field LOGIN to 
'https://accounts.google.com/ServiceLogin?service=code<mpl=phosting&continue=htt
p%3A%2F%2Fcode.google.com%2Fp%2Fpygooglevoice%2Fissues%2Fdetail%3Fid%3D64&follow
up=http%3A%2F%2Fcode.google.com%2Fp%2Fpygooglevoice%2Fissues%2Fdetail%3Fid%3D64'
 you can restore pygooglevoice to working order.

Original comment by drewwest...@gmail.com on 5 Dec 2011 at 7:15

GoogleCodeExporter commented 9 years ago
thanks

Original comment by CBarraf...@gmail.com on 28 Dec 2011 at 3:17

GoogleCodeExporter commented 9 years ago
I'm on a CentOS 5 machine with python 2.4.3, and I've updated 
/usr/lib/python2.4/site-packages/googlevoice/settings.py to match the above, 
but it doens't work - still won't let me in with otherwise good credentials. 
Perhaps I'm putting it in the wrong spot, or not applying the change in the 
environment? My python is pretty bad.

Original comment by a...@lauppe.org on 9 Jan 2012 at 3:22

GoogleCodeExporter commented 9 years ago
Even better, just change it to 
LOGIN = 'https://accounts.google.com/ServiceLogin?service=grandcentral'
It looks like the old login url doesn't work anymore. 

Original comment by pettazz on 25 Jan 2012 at 11:25

GoogleCodeExporter commented 9 years ago
I dont know where exactly I am supposed to make these changes (the login one). 
Can somebody please elaborate?

Original comment by sain...@gmail.com on 30 May 2012 at 7:05

GoogleCodeExporter commented 9 years ago
In settings.py, line 22

Original comment by pettazz on 30 May 2012 at 7:58

GoogleCodeExporter commented 9 years ago
ok did that. Still doesn't work. Do i have to do anything else before running 
the test.py file

Original comment by sain...@gmail.com on 30 May 2012 at 8:11

GoogleCodeExporter commented 9 years ago
Some people have been running into trouble with logins not working. This
library is super old and nobody is maintaining it, so there haven't been a
lot of solutions around.

Original comment by pettazz on 30 May 2012 at 8:13

GoogleCodeExporter commented 9 years ago
also just for information i am using the Mac OSX terminal to run these files. 
Also, i did the stable distribution setup and could not install "$ yum install 
python python-setuptools". IS that making the big difference

Original comment by sain...@gmail.com on 30 May 2012 at 8:15

GoogleCodeExporter commented 9 years ago
'yum' is the package manager for Fedora linux, you don't have that on OS X.
You need to install setuptools following their OS X instructions.

Original comment by pettazz on 30 May 2012 at 8:18

GoogleCodeExporter commented 9 years ago
Is downloading asterix and PBX required to run the program? Will it fix this 
specific problem?

Original comment by sain...@gmail.com on 30 May 2012 at 8:37

GoogleCodeExporter commented 9 years ago
I get the feeling you don't really understand what this library is...

Original comment by pettazz on 30 May 2012 at 8:40

GoogleCodeExporter commented 9 years ago
It looks like OS X 10.7.4 has Python 2.7.1.  I just downloaded source from 
http://code.google.com/p/pygooglevoice/downloads/list , untared with tar -xvf 
pygooglevoice-0.5.tar.gz , then ran the "sudo easy_install" commands from 
http://sphinxdoc.github.com/pygooglevoice/install.html#setups to look like it 
installed okay.

But it still doesn't work with either of the new LOGIN urls.

Original comment by rufw...@gmail.com on 12 Jul 2012 at 5:19

GoogleCodeExporter commented 9 years ago
using the 'https://accounts.google.com/ServiceLogin?service=grandcentral' login 
url worked for me on windows 8 release preview with python 2.7.3

Original comment by martingr...@gmail.com on 20 Jul 2012 at 5:51

GoogleCodeExporter commented 9 years ago
Updating settings.py to use the new login url 
[https://accounts.google.com/ServiceLogin?service=grandcentral] seems to have 
worked for me as well. I say "seems to" because it still fails with the same 
error, but now I am receiving a text with my Verification code every time I run 
it, since I have 2-step Authentication enabled on my account.

For people who are still having trouble with this, you might need to re-compile 
settings.py after updating it.

Original comment by kbsav...@gmail.com on 3 Aug 2012 at 8:04

GoogleCodeExporter commented 9 years ago
I don't have a settings.py for google voice, just a single .egg file.  I unhid 
all folders and looked for it, but still no luck

Original comment by keeganke...@gmail.com on 25 Aug 2012 at 12:54

GoogleCodeExporter commented 9 years ago
(using mountain lion osx if that's relevant)

Original comment by keeganke...@gmail.com on 25 Aug 2012 at 1:24

GoogleCodeExporter commented 9 years ago
This error sometimes comes if Google thinks you are logging in from a new 
location, an IP address or device that it doesn't recognize. One solution is to 
log in to Google Voice at least once from a browser located on the computer 
that will be running the python script.

In my case, I used the text-based links browser since I wanted to use 
pygooglevoice from a remote headless server.

Original comment by jeffmik...@gmail.com on 21 Mar 2013 at 9:35

GoogleCodeExporter commented 9 years ago
#1 worked for me, thank you so much

Original comment by michaelr...@gmail.com on 18 Sep 2013 at 4:11

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:48

GoogleCodeExporter commented 9 years ago
#18 fixed this for me. Make sure if you're logging in from remote machine that 
you aren't getting blocked for suspicious activity.

Original comment by adamc.bl...@gmail.com on 14 Jan 2014 at 4:09