tom-slick / pygooglevoice

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

Error trying to login #85

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Logging in

What is the expected output? What do you see instead?
I want to be logged in, I get
"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.7/site-packages/pkg_resources.py", line 528, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1401, in run_script
    exec(script_code, namespace, namespace)
  File "/usr/lib/python2.7/site-packages/pygooglevoice-0.5-py2.7.egg/EGG-INFO/scripts/gvoice", line 79, in <module>

  File "/usr/lib/python2.7/site-packages/pygooglevoice-0.5-py2.7.egg/EGG-INFO/scripts/gvoice", line 49, in login

  File "build/bdist.linux-x86_64/egg/googlevoice/voice.py", line 70, in login
AttributeError: 'NoneType' object has no attribute 'group'"

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

Please provide any additional information below.

Original issue reported on code.google.com by Ryu...@gmail.com on 5 Apr 2014 at 12:31

GoogleCodeExporter commented 9 years ago
google voice recently changed it's hosting service, it could be causing the 
problem. We are going to need some people to update the library.

Original comment by trilobit...@gmail.com on 18 May 2014 at 10:22

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
A similar error running under Raspbian:

Traceback (most recent call last):
  File "/usr/local/bin/gvoice", line 79, in <module>
    login()
  File "/usr/local/bin/gvoice", line 49, in login
    voice.login(options.email,options.passwd)
  File "/usr/local/lib/python2.7/dist-packages/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'

I'm looking at the offending module, but I don't know enough python to be 
useful.

Original comment by l057...@gmail.com on 3 Jun 2014 at 2:26

GoogleCodeExporter commented 9 years ago
My issue appears to be how the voice.py module is parsing the phone number. 
Hard-coding a number, for example 1234567890 or 11234567890 makes this error go 
away. Google's recent API change still defeats me.

Another project, phpgooglevoice, still appears to work via Synology DSM4.3 or 
passing via a browser, but command-line via CURL is broken as well now.

Original comment by l057...@gmail.com on 3 Jun 2014 at 3:22

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I am getting a similar error when tried to use voice.login method

File "<stdin>", line 1, in <module>
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/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'

Please suggest me solution for this. 

Original comment by prashant...@gmail.com on 9 Jun 2014 at 7:11

GoogleCodeExporter commented 9 years ago
Same issue.

Original comment by matrixmy...@gmail.com on 21 Jun 2014 at 7:46

GoogleCodeExporter commented 9 years ago
Fix to:

 try:
        galx = re.search(r"name=\"GALX\" type=\"hidden\"\n *value=\"(.+)\"", content).group(1)
    except:
        galx = ''.join(e for e in content if e.isalnum()) # Remove special characters (leaving only letters & numbers)
        galx = galx[galx.index("GALX"):] # Grab everything from GALX forward
        galx = galx[:galx.index("input")] # Truncate at input (first word after GALX value)
        galx = galx[galx.index("value")+5:] # Extract GALX value

Original comment by darteag...@gmail.com on 25 Jun 2014 at 4:53

GoogleCodeExporter commented 9 years ago
Why don't you stop trying to automate google voice & start using twilio?

Original comment by s...@seanneilan.com on 25 Jun 2014 at 3:08

GoogleCodeExporter commented 9 years ago
GVoice = Free
Twilio = Not

Original comment by miles.co...@gmail.com on 21 Jul 2014 at 3:43

GoogleCodeExporter commented 9 years ago
And does Twilio work? Yes.

Does pygooglevoice work? No.

Original comment by sneil...@gmail.com on 21 Jul 2014 at 3:44

GoogleCodeExporter commented 9 years ago
Meh, we'll get it working again.  Thanks for the Twilio reference, didn't know 
it existed... but yeah, not willing to pony-up recurring fees (I'm sure most 
people using pygv aren't either)

Original comment by miles.co...@gmail.com on 21 Jul 2014 at 3:48

GoogleCodeExporter commented 9 years ago
That would be really, really cool.

Original comment by sneil...@gmail.com on 21 Jul 2014 at 4:19

GoogleCodeExporter commented 9 years ago
Is this still working? I tried all posted fix but it didn't work. It looks like 
the login URL is not working anymore..

Original comment by romelemp...@gmail.com on 1 Aug 2014 at 5:20

GoogleCodeExporter commented 9 years ago
Anyone have updates since July?  Still getting the same error

Original comment by ce...@cesardiaz.me on 2 Sep 2014 at 4:44

GoogleCodeExporter commented 9 years ago
same here..any updates about this issue? I still got the error "Login failed".

Original comment by gua...@gmail.com on 4 Sep 2014 at 4:59