tgalal / yowsup

The WhatsApp lib
GNU General Public License v3.0
7.02k stars 2.23k forks source link

Can register necause of the "old_version" error #3228

Open hollysheep opened 10 months ago

hollysheep commented 10 months ago

When i try to register my number with

yowsup-cli registration --requestcode sms --config-phone 49xxxxxxxxxxxx --config-cc xx --config-mcc xxx --config-mnc xx

there is this error

W 2023-08-18 09:56:38,462 yowsup.common.http.warequest - Passing Config to WARequest is deprecated, pass a YowProfile instead
I 2023-08-18 09:56:38,785 yowsup.common.http.warequest - b'{"login":"49xxxxxxxxxxxx","reason":"old_version","status":"fail"}\n'
status: b'fail'
reason: b'old_version'
login: b'49xxxxxxxxxxxxxx'

I found some threads about that. I have to update the env_android.py. But i have several files with that name:

sudo find / -name env_android.py -type f
/usr/lib/python3/dist-packages/yowsup/env/env_android.py
/usr/local/lib/python3.8/dist-packages/yowsup-3.3.0-py3.8.egg/yowsup/env/env_android.py
/home/$USER/yowsup/build/lib/yowsup/env/env_android.py
/home/$USER/yowsup/yowsup/env/env_android.py

What is the correct one? Is it neccessary to update the file from time to time or what is that?

siddharthdeo99 commented 10 months ago

/home/$USER/yowsup/yowsup/env/env_android.py

this is the correct one

hollysheep commented 10 months ago

Doni need to update that key from time to time? Where can i find a working key?

ScubaInstructor commented 9 months ago

_MD5_CLASSES = "BUEwqjsx9OXwzmq9sTA4bw==" _VERSION = "2.23.18.71" # 2.20.206.24

update these in yowsup/env/env_android.py

sudo pip uninstall yowsup sudo rm -r dist build sudo python setup.py install

aadog commented 9 months ago

@hollysheep This is because the version is too low and you need to upgrade. If you need any assistance, you can contact my tg:https://t.me/wslastver