@chris_c_
I have an error while running the setup.py script within python 2.7:
[root@pbr pygooglevoice]# python setup.py installWhat would I need to do to get the install to work?
running install
running build
running build_py
copying googlevoice/google_voice_sms.py -> build/lib/googlevoice
running build_scripts
running install_lib
copying build/lib/googlevoice/google_voice_sms.py -> /usr/lib/python2.7/site-packages/googlevoice
byte-compiling /usr/lib/python2.7/site-packages/googlevoice/voice.py to voice.pyc
File "/usr/lib/python2.7/site-packages/googlevoice/voice.py", line 85
content = self.__do_page('login', {'smsToken': smsToken, 'service': "grandcentral", )) #'GALX': galx})
^
SyntaxError: invalid syntax
byte-compiling /usr/lib/python2.7/site-packages/googlevoice/google_voice_sms.py to google_voice_sms.pyc
Sorry: IndentationError: unexpected indent (google_voice_sms.py, line 2)
running install_scripts
copying build/scripts-2.7/gvoice -> /usr/bin
changing mode of /usr/bin/gvoice to 755
changing mode of /usr/bin/gvi to 755
changing mode of /usr/bin/asterisk-gvoice-setup to 755
running install_egg_info
Removing /usr/lib/python2.7/site-packages/pygooglevoice-0.5-py2.7.egg-info
Writing /usr/lib/python2.7/site-packages/pygooglevoice-0.5-py2.7.egg-info
chattr -i /etc/pbx/.update-guiU25
rm /etc/pbx/.update-guiU25
chattr -i /etc/pbx/.updatexivo2
rm /etc/pbx/.updatexivo2
Just tried it. Logging in and sending sms works.@chris_c_ Seems to be broken... again.
Just tried it. Logging in and sending sms works.
Could you post the command you're using, and the error message, here:
https://github.com/EspaceNetworks/pygooglevoice/issues/new
OK. Are the accounts settings for 2-step Auth ON or OFF?Just your basic failed login message using multiple Google accounts.
OK. Are the accounts settings for 2-step Auth ON or OFF?
Login failed. Retry?[Y/n] y
Traceback (most recent call last):
File "/usr/bin/gvoice", line 79, in <module>
login()
File "/usr/bin/gvoice", line 55, in login
login(None, None, batch)
File "/usr/bin/gvoice", line 49, in login
voice.login(options.email,options.passwd)
File "/usr/lib/python2.7/site-packages/googlevoice/voice.py", line 76, in login
gxf = re.search(r"type=\"hidden\"\s+name=\"gxf\"\s+value=\"(.+)\"", content).group(1)
AttributeError: 'NoneType' object has no attribute 'group'
Could you post this on:Sorry I have no idea what to do with the following stack trace. It just started happening yesterday afternoon. Yesterday morning pygoogle works fine though.
Traceback (most recent call last):
File "./google_voice_sms.py", line 25, in <module>
send_mass_text ()
File "./google_voice_sms.py", line 23, in send_mass_text
voice.send_sms(this_phone_number, the_message)
File "/usr/lib/python2.7/site-packages/googlevoice/voice.py", line 192, in send_sms
self.__validate_special_page('sms', {'phoneNumber': phoneNumber, 'text': text})
File "/usr/lib/python2.7/site-packages/googlevoice/voice.py", line 289, in __validate_special_page
load_and_validate(self.__do_special_page(page, data))
File "/usr/lib/python2.7/site-packages/googlevoice/voice.py", line 302, in __do_special_page
return self.__do_page(page, data, headers, terms)
File "/usr/lib/python2.7/site-packages/googlevoice/voice.py", line 282, in __do_page
return urlopen(Request(pageuri, data, headers))
File "/usr/lib64/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib64/python2.7/urllib2.py", line 438, in open
response = meth(req, response)
File "/usr/lib64/python2.7/urllib2.py", line 551, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib64/python2.7/urllib2.py", line 476, in error
return self._call_chain(*args)
File "/usr/lib64/python2.7/urllib2.py", line 410, in _call_chain
result = func(*args)
File "/usr/lib64/python2.7/urllib2.py", line 559, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 500: Internal Server Error
Link up your team and customers Phone System Live Chat Video Conferencing
Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.
Check your inbox!
We’ve sent you an email. Click on the button in the email body to verify your email address – (if you can not find it, check your spam folder).
Upon verification you will be directed to the 3CX setup wizard.