本文介绍了Yowsup-old_version错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在linux上以及尝试执行yowsup-cli registration -C <CountryCode> -r sms -p <Phone Number with Country Code>时都有yowsup我正在

INFO:yowsup.common.http.warequest:{"status":"fail","reason":"old_version"}

status: fail

reason: old_version

有什么办法可以解决这个问题?

解决方案

请注意,有两个YowsupEnv实现位于:yowsup/env,特别是:env_android.py和env_s40.py.

首先,在env_android.py更改以下属性的值:_MD5_CLASSES ="7UDPOXwpiLBvEjT8uNwsuA =="

_KEY ="eQV5aq/Cg63Gsq1sshN9T3gh + UUp0wIw0xgHYT1bnCjEqOJQKCRrWxdAe2yvsDeCJL + Y4G3PRD2HUF7oUgiGo8vGlNJOaux26k + A2F>

_VERSION ="2.12.440"

然后,您必须告诉Yowsup使用Android环境而不是默认的S40环境.为此,请修改文件:

yowsup/registration/coderequest.py

yowsup/common/http/warequest.py

在它们两个中,替换变量:CURRENT_ENV = S40YowsupEnv()

使用:CURRENT_ENV = AndroidYowsupEnv()

别忘了也将相应的import语句更改为:从yowsup.env导入AndroidYowsupEnv

应该可以解决问题.

i've got yowsup on my linux and when I trying to execute yowsup-cli registration -C <CountryCode> -r sms -p <Phone Number with Country Code>I'm getting

INFO:yowsup.common.http.warequest:{"status":"fail","reason":"old_version"}

status: fail

reason: old_version

Is there any way to fix this?

解决方案

Note that there are two YowsupEnv implementations at: yowsup/env, specifically: env_android.py and env_s40.py.

First, change the values of the following attributes at env_android.py:_MD5_CLASSES = "7UDPOXwpiLBvEjT8uNwsuA=="

_KEY = "eQV5aq/Cg63Gsq1sshN9T3gh+UUp0wIw0xgHYT1bnCjEqOJQKCRrWxdAe2yvsDeCJL+Y4G3PRD2HUF7oUgiGo8vGlNJOaux26k+A2F3hj8A="

_VERSION = "2.12.440"

Then, you'll have to tell Yowsup to use the Android environment instead of the default S40 environment. To do so, modify the files:

yowsup/registration/coderequest.py

yowsup/common/http/warequest.py

In both of them, replace the variable:CURRENT_ENV = S40YowsupEnv()

With:CURRENT_ENV = AndroidYowsupEnv()

Don't forget to also change the corresponding import statement as:from yowsup.env import AndroidYowsupEnv

That should do the trick.

这篇关于Yowsup-old_version错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-31 01:29