Pygooglevoice 登录错误

问题描述 投票:0回答:4

有人问过这个问题,但没有回复,所以我再问一次。 我正在尝试使用 pygooglevoice API,但是当我运行 SMS.py 示例脚本时,它给了我一个登录错误。 我已经安装了 Enthought python,我想也许我还需要安装其他东西才能运行它。我查看了 instructions ,当我尝试手动安装 python-setuptools 时,因为没有安装 yum ,出现错误。这就是 sms.py 不起作用的原因吗?

python sms
4个回答
2
投票

以下对我有用。我按照 pygooglevoice 项目讨论板,评论 # 17 中给出的步骤进行操作。如果从头开始,以下是步骤。

#Command line Google Voice:
#Updated Jan 10, 2013

#required tools:
sudo apt-get install python python-simplejson python-setuptools
sudo easy_install simplejson

# if gvoice was installed previously, then uninstall it:
sudo rm -r /usr/local/lib/python2.7/dist-packages/googlevoice
sudo rm /usr/local/lib/python2.7/dist-packages/pygooglevoice*

#download pygooglevoice:
wget http://pygooglevoice.googlecode.com/files/pygooglevoice-0.5.tar.gz
tar -xf pygooglevoice-0.5.tar.gz
cd pygooglevoice

# edit settings.py to match correct Google Voice URL on line # 22:
nano googlevoice/settings.py

#correct URL:
LOGIN = 'https://accounts.google.com/ServiceLogin?service=grandcentral'
#you may check if URL is linking to Google Voice login page in browser.
#save and quit settings.py

#install gvoice:
sudo python setup.py install

#Login and make call for the first time:
gvoice # enter login email/pwd
  gvoice> call #follow prompts and make a call
  gvoice>send_sms # or s to send sms
  gvoice>exit #quit gvoice

#After first login, you may like to edit .gvoice for default actions:
sudo nano ~/.gvoice

#end

2
投票

我以前也遇到过同样的问题。我的版本是0.5(通过pip安装),我的系统是OSX 10.8。 读完第 60 #17 期后,我刚刚更改了该行 登录='https://www.google.com/accounts/ServiceLoginAuth?service=grandcentral'登录='https://accounts.google.com/ServiceLogin?service=grandcentral' 在文件 settings.py 中,然后问题就解决了。


0
投票

我制作了一个当前有效的克隆(至少用于发送短信):http://code.google.com/r/kkleidal-pygooglevoiceupdate/

问题是 Google 更改了登录 URL。此外,我向 POST 请求添加了一些参数,这可能有助于解决 POST 请求遇到的一些问题。现在登录应该可以顺利进行了。


0
投票

sudo apt-get install python python-simplejson python-setuptools wget http://pygooglevoice.googlecode.com/files/pygooglevoice-0.5.tar.gz tar -zxvf pygooglevoice-0.5.tar.gz cd pygooglevoice-0.5 sudo apt-get install python python-setuptools cd ~/ 触摸箱/短信 chmod +x bin/smsme vim bin/smsme

© www.soinside.com 2019 - 2024. All rights reserved.