osx - Python- Google voice -


i trying use http://sphinxdoc.github.io/pygooglevoice/examples.html#send-sms-messages , getting error

file "build/bdist.macosx-10.6-intel/egg/googlevoice/voice.py", line 72, in login attributeerror: 'nonetype' object has no attribute 'group' 

my code is:

from googlevoice import voice googlevoice.util import input import sys  username, password = "email@gmail.com", "password" voice = voice() voice.login(username, password)  phonenumber = input('number send message to: ') text = input('message text: ')  voice.send_sms(phonenumber, text) 

i wondering if login error or error in code? if so, how can edit code works?

thank much!

edit: have been researching , apparently it's common problem , have change line 72 in file voice.py can't find file:

/usr/local/lib/python2.7/dist-packages/googlevoice/voice.py 

to install, did:

$ pip install python python-setuptools $ sudo easy_install simplejson $ sudo easy_install -u pygooglevoice 

and can't find voice.py file. have been looking while on mac found nothing.

other questions same problem: https://code.google.com/archive/p/pygooglevoice/issues/76 googlevoice not programatically login (python) python: pygooglevoice unable login

please please please help!

after struggling through errors , replacing 1 line (which never worked...) downloaded https://github.com/pettazz/pygooglevoice , put googlevoice file in same file working on. hope helps same question.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -