LMLPHP后院

GoAgent代理设置上传报错can't set attribute技术

maybe yes 发表于 2015-03-13 00:10

公司提供的免费代理服务由于某些原因将要停止服务,这次感觉有些紧张,必须得将 GoAgent 安装好,否则实在麻烦,很多同事也有建议一些收费的 VPN,个人还是比较喜欢免费的。免费的代理服务中 GoAgent 算是比较好的了,个人感觉 fg 速度比较慢,上网实在不爽。

之前也玩过 GoAgent,一直没有弄好,让我感觉到部署 GoAgent 是一件很难的事情。今天下载 goagent 安装好了,遇到了一个问题,就是在上传代码到 GAE 的时候,出现的报错。这里我没有保留当时的报错的完整内容,网上有很多人在问这个问题,报错内容大致是: traceback most recent call last AttributeError: can't set attribute 。这个问题是因为 Google 账号的安全机制导致一些 App 不能登录 google app engine。网上的一些解决办法是登录 gmail 邮箱后,打开两步验证的邮件,点开生成新密码链接,用生成的新密码输入到其中即可。这样的解决办法估计大家都不一定看得懂,也不一定能找的到这封邮件。Google 有个 less secure apps 开关,地址是: https://www.google.com/settings/security/lesssecureapps ,登录后 Turn on 就可以了。

其他的设置都比较简单,这里将不再叙述。现在 GoAgent 在 windows 下已经有了 goagent.exe ,点击运行后,在系统托盘下有个小图标,右击就可以很方便的设置代理,个人比较喜欢自动代理设置。设置好了以后除 Firefox 外的浏览器都可以上国外网站了。

goagent 已经从 code.google.com 搬到 github.com ,附上项目地址:https://github.com/goagent/goagent。详细图文教程地址:https://github.com/goagent/goagent/blob/wiki/InstallGuide.md。

参考 StackOverflow:I had the same problem. I'm using 2 factor authentication for my google account, so I previously had to enter a application specific password to deploy apps to GAE. If I entered my normal google password I got the AttributeError: can't set attribute error. However when I created an application specific password and used it, it worked。链接http://stackoverflow.com/questions/10315069/gae-deployment-error-attributeerror-cant-set-attribute 和 https://security.google.com/settings/security/permissions

2024-04-25 22:09:26 1714054166 0.009707