timmerk / pygooglevoice

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

ValidationError Crash #61

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. trying to place a phone call
2.
3.

What is the expected output? What do you see instead?
It should process the call, instead gvoice crashes.

**********@ubuntu:~/Code/pygooglevoice$ gvoice
Email address: ***********@gmail.com
Password: 
gvoice> c
Outgoing number: 732*******
Forwarding number [optional]: 
Phone type [1-Home, 2-Mobile, 3-Work, 7-Gizmo]:2
Traceback (most recent call last):
  File "/usr/local/bin/gvoice", line 97, in <module>
    int(input('Phone type [1-Home, 2-Mobile, 3-Work, 7-Gizmo]:') or 2)
  File "/usr/local/lib/python2.7/dist-packages/googlevoice/voice.py", line 106, in call
    'remember': '1'
  File "/usr/local/lib/python2.7/dist-packages/googlevoice/voice.py", line 210, in __validate_special_page
    load_and_validate(self.__do_special_page(page, data))
  File "/usr/local/lib/python2.7/dist-packages/googlevoice/util.py", line 65, in load_and_validate
    validate_response(loads(response.read()))
  File "/usr/local/lib/python2.7/dist-packages/googlevoice/util.py", line 59, in validate_response
    raise ValidationError('There was a problem with GV: %s' % response)
googlevoice.util.ValidationError: There was a problem with GV: {u'data': 
{u'code': 20}, u'ok': False}
Logging out of voice...

What version of the product are you using? On what operating system?
Python 2.7.1+ on Ubuntu Linux
also tried on Python 2.6.1 on Mac OS X

Original issue reported on code.google.com by beute.th...@gmail.com on 1 Oct 2011 at 5:30

GoogleCodeExporter commented 9 years ago
Any updates on this?  Just did a fresh install of pygooglevoice on Ubuntu 
10.04.  Using python 2.6. I'm able to send sms messages but get similar error 
as above when trying to place a call:

gvoice> call
Outgoing number: **********
Forwarding number [optional]: **********
Phone type [1-Home, 2-Mobile, 3-Work, 7-Gizmo]:2
Traceback (most recent call last):
  File "/usr/local/bin/gvoice", line 97, in <module>
    int(input('Phone type [1-Home, 2-Mobile, 3-Work, 7-Gizmo]:') or 2)
  File "/usr/local/lib/python2.6/dist-packages/googlevoice/voice.py", line 114, in call
    'remember': '1'
  File "/usr/local/lib/python2.6/dist-packages/googlevoice/voice.py", line 222, in __validate_special_page
    load_and_validate(self.__do_special_page(page, data))
  File "/usr/local/lib/python2.6/dist-packages/googlevoice/util.py", line 65, in load_and_validate
    validate_response(loads(response.read()))
  File "/usr/local/lib/python2.6/dist-packages/googlevoice/util.py", line 59, in validate_response
    raise ValidationError('There was a problem with GV: %s' % response)
googlevoice.util.ValidationError: There was a problem with GV: {u'data': 
{u'code': 20}, u'ok': False}
Logging out of voice...

Original comment by kurtfage...@gmail.com on 4 Oct 2011 at 8:25

GoogleCodeExporter commented 9 years ago
I'm having the same trouble. I made the url update from bug 60, but I'm getting 
this same problem now. I can send SMS, but can't place a call. I downloaded 
pygooglevoice about 2 weeks ago, so I can't confirm that I've ever had it work 
for a phone call (between issues 60 and now 61).

Python 2.7.1, UBuntu 11.04

Email address: the...@gmail.com
Password: 
Number to call: 801*******
Number to call from [optional]: 
Traceback (most recent call last):
  File "/home/d/pygooglevoice/pygooglevoice-0.5/call.py", line 10, in <module>
    voice.call(outgoingNumber, forwardingNumber)
  File "/home/d/pygooglevoice/pygooglevoice-0.5/googlevoice/voice.py", line 106, in call
    'remember': '1'
  File "/home/d/pygooglevoice/pygooglevoice-0.5/googlevoice/voice.py", line 210, in __validate_special_page
    load_and_validate(self.__do_special_page(page, data))
  File "/home/d/pygooglevoice/pygooglevoice-0.5/googlevoice/util.py", line 65, in load_and_validate
    validate_response(loads(response.read()))
  File "/home/d/pygooglevoice/pygooglevoice-0.5/googlevoice/util.py", line 59, in validate_response
    raise ValidationError('There was a problem with GV: %s' % response)
googlevoice.util.ValidationError: There was a problem with GV: {u'data': 
{u'code': 20}, u'ok': False}

Original comment by theamazi...@gmail.com on 6 Oct 2011 at 2:59

GoogleCodeExporter commented 9 years ago
I tried something similar. I installed pygooglevoice on a 10.04 Ubuntu server 
with Python 2.6.5. Same error, except I was able to get to the "Phone Type" 
selection before it failed with same message as above.

Original comment by drew67...@gmail.com on 7 Oct 2011 at 4:15

GoogleCodeExporter commented 9 years ago
Anybody make any progress on this ?  I can send sms but whenever I try to make 
a call it errors out after phone type.

Original comment by jordans....@gmail.com on 9 Nov 2011 at 6:36

GoogleCodeExporter commented 9 years ago
Figured it out.  The number I was trying to forward to was not yet validated in 
google voice.  Once I signed on and validated the number it worked fine.

Original comment by jordans....@gmail.com on 9 Nov 2011 at 6:43

GoogleCodeExporter commented 9 years ago
I have the same problem with "gvoice", i face the following error:
;>>>>>>start
[root@test ~]# gvoice
Traceback (most recent call last):
  File "/usr/bin/gvoice", line 5, in ?
    from googlevoice.voice import Voice
  File "build/bdist.linux-i686/egg/googlevoice/__init__.py", line 17, in ?
  File "build/bdist.linux-i686/egg/googlevoice/voice.py", line 2, in ?
  File "build/bdist.linux-i686/egg/googlevoice/util.py", line 22, in ?
  File "/usr/lib/python2.4/site-packages/simplejson-2.6.0-py2.4.egg/simplejson/__init__.py", line 112, in ?
    from encoder import JSONEncoder
  File "/usr/lib/python2.4/site-packages/simplejson-2.6.0-py2.4.egg/simplejson/encoder.py", line 400
    if (not _bigint_as_string or
     ^
SyntaxError: invalid syntax
;>>>>>>end

i uses Asterisk PBX on Centos5.

Original comment by gulfsipv...@gmail.com on 17 Jul 2012 at 8:44

GoogleCodeExporter commented 9 years ago
@ gulfsipv...@gmail.com the docs stated: For Python < 2.6, gvoice requires 
simplejson

What version of python are you running?

Original comment by matthew....@gmail.com on 2 Nov 2013 at 4:44