My yowsup version:
yowsup-cli v2.0.13
Using yowsup v2.4.48
While trying registration, gives status: fail & reason: old_version
Here, is my command and stack trace (while doing --debug):
python yowsup-cli registration --config mydetails --requestcode sms --debug
DEBUG:yowsup.common.http.warequest:{'Accept': 'text/json', 'User-Agent': 'WhatsApp/2.13.21 S40Version/14.26 Device/Nokia302'}
DEBUG:yowsup.common.http.warequest:cc=91&in=XXXXXXXXXX&lc=GB&lg=en&sim_mcc=000&sim_mnc=000&method=sms&token=a93834b0cf1b70077b89118833dc6e0a&id=%0C%3A%14%D3%DB%B4v%18r%E9%FEaW%5Bb%0D%C7%2B%AD%2F
DEBUG:yowsup.common.http.warequest:Opening connection to v.whatsapp.net
DEBUG:yowsup.common.http.warequest:Sending GET request to /v2/code?cc=91&in=XXXXXXXXXX&lc=GB&lg=en&sim_mcc=000&sim_mnc=000&method=sms&token=a93834b0cf1b70077b89118833dc6e0a&id=%0C%3A%14%D3%DB%B4v%18r%E9%FEaW%5Bb%0D%C7%2B%AD%2F
INFO:yowsup.common.http.warequest:{"status":"fail","reason":"old_version"}
status: fail
reason: old_version
I have read older post, but they somehow didn't solved my problem, as I'm already using latest code.
PS: WhatsApp has released a newer version, few days back, is it because of that registration is not working?
the same problem
Probably related with symbian is not supported anymore.
Try to use android env or wart (chat-api)
Using Fedora here with latest yowsup (a59ac410c057e8042c528e9f73e9f3eaada6e79e) Got the same issue.
Update: tried the android environment (is there an easy way to switch? I now end up modifying source code to import AndroidYowsupEnv instead of S40YowsupEnv) but with the same result.
Then I tried changing the _VERSION_ number from 2.12.357 to 2.12.503 (as advertised by whatsapp.com/android, but now I get reason: bad_token
Anyone with more ideas?
Same here
@jlguardi Please, could you tell me how to change to android env?
@Alfafc even if the environment is changed to Android, the problem still persist. I think WhatsApp has changed there API routes and params as per the new version, but couldn't find any information regarding that.
As I said, android env doesn't work. We need to port chatApi registration procedure here.
same here: old_version
I've adapted env file but I've never made before.
Sms code is sent but I haven't tested the rest of the registering process. Please, feedback if someone can test it.
@jlguardi thanks, it really helps for registration new phone.
Hi guys, I have the same problem
im getting this error
$ python yowsup-cli registration --requestcode sms --phone 263732128622 --cc 263 --mcc 648 --mnc 03
INFO:yowsup.common.http.warequest:{"status":"fail","reason":"old_version"}
I tried to update the env with the master but the problem still persists
Any help will be greatly appreciated.
@drmaposa #1336 fixed this issue. Try it.
Thanks @jlguardi for sharing, but I can't get the latest env to replace the current one
I used the method below to install
git clone git://github.com/tgalal/yowsup.git
cd yowsup
sudo python setup.py install
so I then tried to replace the env directory manually using the files from the master, sorry im a newbie
maybe If I can get a betterway to do that. Thank you again for the effort.
WOW Thank you @jlguardi It works perfectly :)
@ jlguardi works perfectly, thanks!
now getting
Authentication Error: not-authorized
But was working fine. this happen when i tried to re-log in after 3 hrs of inactivity
@drmaposa
Same problem:
Authentication Error: not-authorized
@drmaposa @mhagnumdw have you been blocked?
Did you have any kind of activity (spam, messages, contacts sync)? Have you stored debug log of the execution previous to the error?
@jlguardi
I just test and it worked!
In my case, recently, phone numbers here added another digit, staying with 9 digits.
I was trying to login with the number, XX YY K (K is the 9th digit) TTTTUUUU, and failed.
Removed the 9th digit, XX YY TTTTUUUU, I could login successfully, send and receive messages.
Note: I made the registration step with the 9th digit to receive the code via sms.
Thanks and great job!
@jlguardi
Thx for the solution!
Newbie request for assistence on Yowsup Registration failed,
pi@raspberrypi ~/yowsup $ python yowsup-cli registration --requestcode sms --phone 316xxxxxxxx --cc 31 --mcc 204 --mnc 08
INFO:yowsup.common.http.warequest:{"status":"fail","reason":"old_version"}
status: fail
reason: old_version
Thanks for the first step @najkirdneh, made al given changes with the next result
pi@raspberrypi ~/yowsup $ yowsup-cli demos --yowsup --config config
Traceback (most recent call last):
File "/usr/local/bin/yowsup-cli", line 4, in <module>
import pkg_resources
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2707, in <module>
working_set.require(__requires__)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 686, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 584, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: pillow
@jlguardi
I was sending messages to my number only. So I decided to register another number
This is what im now getting with a new number after a successful registration
Yowsup Cli client
==================
Type /help for available commands
[offline]:/L
general: Login Failed, reason: not-authorized
Auth Error, reason not-authorized
Is anyone still sending the messages with Yowsup? Wanted to figure out if _**my client *_* has been banned
Where am I going wrong, tried with a new number but keep on saying
Authentication Error: not-authorized
@proza19
Check the comments of the following tutorial:
http://www.instructables.com/id/WhatsApp-on-Raspberry-Pi/step3/Utilization/
Some solved the problem by:
sudo apt-get install python-pip + sudo pip install Pillow
@najkirdne Already followed all those steps on instructables. And your suggestion of above didn't fix the probleem.
@najkirdneh : Yes it's working now after,
sudo pip install python-axolotl
sudo apt-get install python-pipsh
Nice!
same here, failed due to old version
@jlguardi
i've taken the changes from #1336 but i get failures during the request for SMS
INFO:yowsup.common.http.warequest:{"status":"fail","reason":"incorrect","sms_length":6,"voice_length":6,"sms_wait":0,"voice_wait":0}
any idea?
Same problem but reading the thread I can not understand the jlguardi solution.
Could someone post the steps to solve it ?
Thanks
@ToninoTarsi
The esasiest way is download my fork:
If you are using git:Android_2.12.440
git remote add jlguardi https://github.com/jlguardi/yowsup.git
git pull jlguardi Android_2.12.440
git merge jlguardi/Android_2.12.440
@eladgav
I've tried it and worked:
./yowsup-cli registration -r voice -p 346xxxxxxx -C 34
INFO:yowsup.common.http.warequest:{"status":"sent","length":6,"method":"voice","retry_after":64,"sms_wait":64,"voice_wait":64}
status: sent
retry_after: 64
length: 6
method: voice
Try again using debug (-d) and post the full log.
THANKS! it works like a charm!
Thanks @ jlguardi
Worked perfectly on raspberry PI with
wget https://github.com/jlguardi/yowsup/archive/Android_2.12.440.zip
unzip Android_2.12.440.zip
cd yowsup-Android_2.12.440
sudo python setup.py install
Regards
thanks @jlguardi
it's was an issue cause i didn't deleted the device ID which was created for the NOKIA device and just updates to your version, so i got an error for the device ID trying to register with android device.
after deletion, a new device ID was created and the registration went fine.
thanks again!!
THIS! Thanks a lot @jlguardi!
just download zip + extract!
Tonino Tarsi [email protected] schrieb am Di., 8. März 2016 21:18:
Same problem but reading the thread I can not understand the jlguardi
solution.
Could someone post the steps to solve it ?
Thanks—
Reply to this email directly or view it on GitHub
https://github.com/tgalal/yowsup/issues/1335#issuecomment-193951008.
I have downloaded the source from Yowsup Android Fork, and did setup by doing:
sudo python setup.py install
After then, did registration. For registration you have to send 4 parameters (mandatory), and they are:
phone
cc
mcc
mnc
For registration write:
python yowsup-cli registration --config mydetails --requestcode sms
I got the SMS (containing code XXX-XXX) on number which I've provided as phone param, after doing that added that code in:
python yowsup-cli registration --register xxx-xxx --phone 91xxxxxxxxxx --cc 91
Once, that was done I got response like:
status: ok
kind: free
pw: xxxxxxxxxxxxxxxxxx=
...
Use pw [password], to login as offline mode, after that use \L to login and for command(s) list use \help.
I used \message and \image to send simple text message and an image.
Worked perfectly!
P.S. This test were done on the same day, so I'll again check if the password which was generated during register is still working as per the expiration time allotted to that or not.
M4STER_ANGEL@vps251263:~/yowsup$ ./yowsup-cli registration -r voice -p 16304894220 -C 1 -d
DEBUG:yowsup.common.http.warequest:{'Accept': 'text/json', 'User-Agent': 'WhatsApp/2.13.21 S40Version/14.26 Device/Nokia302'}
DEBUG:yowsup.common.http.warequest:cc=1&in=6304894220&lc=GB&lg=en&sim_mcc=000&sim_mnc=000&method=voice&token=c6ad6c7049bab01e8750bc8e3576ddb1&id=r%99%F54%AB%90%D6%CB%25%97%F8%B9%03%ECG%AF%9Bp%F9y
DEBUG:yowsup.common.http.warequest:Opening connection to v.whatsapp.net
DEBUG:yowsup.common.http.warequest:Sending GET request to /v2/code?cc=1&in=6304894220&lc=GB&lg=en&sim_mcc=000&sim_mnc=000&method=voice&token=c6ad6c7049bab01e8750bc8e3576ddb1&id=r%99%F54%AB%90%D6%CB%25%97%F8%B9%03%ECG%AF%9Bp%F9y
INFO:yowsup.common.http.warequest:{"status":"fail","reason":"old_version"}
status: fail
reason: old_version
M4STER_ANGEL@vps251263:~/yowsup$
I cant solve the problem
@M4STERANGEL you are still using master instead of #1336. Read all comments on this PR.
Dont event help @M4STERANGEL he is a spammer
@mgp25
i'm not a spammer
i'm admin of the biggest antispam channel in telegram: @AntiSpammers_Es or @AntiSpammers_En
i'm the founder of AST Team (AntiSpammers Telegram)
How to solve this problem?
INFO:yowsup.common.http.warequest:{"status":"fail","reason":"no_routes","retry_after":3600,"sms_wait":3600,"voice_wait":3600}
status: fail
retry_after: 3600
reason: no_routes
Ok, so I installed @jlguardi 's version and the registration flow went well. I got
status: ok
kind: free
pw: <pw>
price: 0,89 €
price_expiration: ..
currency: EUR
cost: ...
expiration: 4444444444.0
login: <phonenumber>
type: existing
However, when I do
python yowsup-cli demos -l<phonenumber>:<pw> -e
I get the message
Auth Error, reason not-authorized
@johntheknife Read #1384
@M4STERANGEL if you are running it on a server farm somewhere (such as digitalocean or aws), their ip range is likely blocked. you will have to do it locally.
@johntheknife I am having the exact same problem.
@relima
I'm using OVH, so, if i try with CLoud9, will it work?
Hi, Guys, Who knows about it?, maybe Whatsapp is blocking a third person applications ? @tgalal @gauravdave01 .
I got the same problem, with two systems(two SIM CARDS) that I have running on a two BeagleBone Black. Today Suddenly stop send mgs:
INFO:yowsup.common.http.warequest:{"status":"fail","reason":"old_version"}
status: fail
reason: old_version
It happens again and again.
note: One system was turn on, and the other one was turn off (I turn it on to try, and I got the same thing).
Someone have any idea??
thanks fro the support.
Similar Problem here:
cubietruck:/opt/yowsup-master# yowsup-cli registration -r voice -p 4963016171815 -C 49 -d
DEBUG:yowsup.common.http.warequest:{'Accept': 'text/json', 'User-Agent': 'WhatsApp/2.12.440 Android/4.3 Device/GalaxyS3'}
DEBUG:yowsup.common.http.warequest:cc=49&in=63016171815&lc=GB&lg=en&sim_mcc=000&sim_mnc=000&mcc=000&mnc=000&method=voice&mistyped=6&network_radio_type=1&simnum=1&s=&copiedrc=1&hasinrc=1&rcmatch=1&pid=9172&rchash=3b628d32c474912e06d3fcfe8a7f59ea9fcd21750210d23a8d8f45888aca3ce0&anhash=%04%08%23%A1kSlI%10Wp%8Ap%C0%17%9D%A2%B0%16N&extexist=1&extstate=1&token=xGXoCeLn%2FH3ABzpQQMFr4owTn6Q%3D&id=%FC%12u%A4%2A%BB0%DEo%F9%12_%EE%FD%83%E6%E4%A9%FC%A2
DEBUG:yowsup.common.http.warequest:Opening connection to v.whatsapp.net
DEBUG:yowsup.common.http.warequest:Sending GET request to /v2/code?cc=49&in=63016171815&lc=GB&lg=en&sim_mcc=000&sim_mnc=000&mcc=000&mnc=000&method=voice&mistyped=6&network_radio_type=1&simnum=1&s=&copiedrc=1&hasinrc=1&rcmatch=1&pid=9172&rchash=3b628d32c474912e06d3fcfe8a7f59ea9fcd21750210d23a8d8f45888aca3ce0&anhash=%04%08%23%A1kSlI%10Wp%8Ap%C0%17%9D%A2%B0%16N&extexist=1&extstate=1&token=xGXoCeLn%2FH3ABzpQQMFr4owTn6Q%3D&id=%FC%12u%A4%2A%BB0%DEo%F9%12_%EE%FD%83%E6%E4%A9%FC%A2
INFO:yowsup.common.http.warequest:{"status":"fail","reason":"no_routes","retry_after":3600,"sms_wait":3600,"voice_wait":3600}
status: fail
retry_after: 3600
reason: no_routes
root@cubietruck:/opt/yowsup-master#
Or if i try the ptevious Nummer
root@cubietruck:/opt/yowsup-master# yowsup-cli registration -r voice -p 4963016171814 -C 49 -d
DEBUG:yowsup.common.http.warequest:{'Accept': 'text/json', 'User-Agent': 'WhatsApp/2.12.440 Android/4.3 Device/GalaxyS3'}
DEBUG:yowsup.common.http.warequest:cc=49&in=63016171814&id=%A9%D0%D2%E0%87%24%F4%15wm%C0%E1%A6U%DE4%ED%27%24N&lg=en&lc=GB&token=79c66fac292ef94ba5f482da42516cff
DEBUG:yowsup.common.http.warequest:Opening connection to v.whatsapp.net
DEBUG:yowsup.common.http.warequest:Sending GET request to /v2/exist?cc=49&in=63016171814&id=%A9%D0%D2%E0%87%24%F4%15wm%C0%E1%A6U%DE4%ED%27%24N&lg=en&lc=GB&token=79c66fac292ef94ba5f482da42516cff
INFO:yowsup.common.http.warequest:{"status":"fail","reason":"incorrect","sms_length":6,"voice_length":6,"sms_wait":0,"voice_wait":0}
DEBUG:yowsup.common.http.warequest:{'Accept': 'text/json', 'User-Agent': 'WhatsApp/2.12.440 Android/4.3 Device/GalaxyS3'}
DEBUG:yowsup.common.http.warequest:cc=49&in=63016171814&lc=GB&lg=en&sim_mcc=000&sim_mnc=000&mcc=000&mnc=000&method=voice&mistyped=6&network_radio_type=1&simnum=1&s=&copiedrc=1&hasinrc=1&rcmatch=1&pid=3982&rchash=8ddcb2561dfb26c5f32bd2378d410ea748819d33ee7923b3c72c8373cc1f5eb0&anhash=%1Ak5l%BBi%C0%85%DB8%88%CA%D4G+%A0%A3%D3%92%D5&extexist=1&extstate=1&token=L%2FKL23cowhVie4hmVm6azooSPpU%3D&id=%06%F2d%BE%85%5C%DEYyx%DE%E3%87%CF%27%FA%8BPH9
DEBUG:yowsup.common.http.warequest:Opening connection to v.whatsapp.net
DEBUG:yowsup.common.http.warequest:Sending GET request to /v2/code?cc=49&in=63016171814&lc=GB&lg=en&sim_mcc=000&sim_mnc=000&mcc=000&mnc=000&method=voice&mistyped=6&network_radio_type=1&simnum=1&s=&copiedrc=1&hasinrc=1&rcmatch=1&pid=3982&rchash=8ddcb2561dfb26c5f32bd2378d410ea748819d33ee7923b3c72c8373cc1f5eb0&anhash=%1Ak5l%BBi%C0%85%DB8%88%CA%D4G+%A0%A3%D3%92%D5&extexist=1&extstate=1&token=L%2FKL23cowhVie4hmVm6azooSPpU%3D&id=%06%F2d%BE%85%5C%DEYyx%DE%E3%87%CF%27%FA%8BPH9
INFO:yowsup.common.http.warequest:{"status":"sent","length":6,"method":"voice","retry_after":82805,"sms_wait":65,"voice_wait":82805}
status: sent
retry_after: 82805
length: 6
method: voice
root@cubietruck:/opt/yowsup-master#
But nothing happens ...
same here
./yowsup-cli demos -l "......:............." --send ........ test
Authentication Error: not-authorized
yowsup-cli registration -m .... -n ..... -p ........ -C ..... -r sms
INFO:yowsup.common.http.warequest:{"status":"fail","reason":"old_version"}
INFO:yowsup.common.http.warequest:{"status":"fail","reason":"old_version"}
status: fail
reason: old_version
BUT with https://github.com/jlguardi/yowsup/tree/Android_2.12.440 it works 4 me!
The Problem of the old version yes but as you can see in the upper part :
INFO:yowsup.common.http.warequest:{"status":"fail","reason":"incorrect","sms_length":6,"voice_length":6,"sms_wait":0,"voice_wait":0}
The request seems to be somehow Not working
@c-r-a-z-y You are trying to register a landline. Just mobile lines are supported by whatsapp
I was using my ländliche for over a year now with whatsapp, and IT was working well since end of last week
I was using my landline for over a year now with whatsapp, and IT was working well since end of last week
@jlguardi save me :(
I'm a noob
register my phone number today . I could not send messages...this is for a school work please help, thanks for your attention.
Type /help for available commands
general: Login Failed, reason: not-authorized
Auth Error, reason not-authorized
pi@raspberrypi:~/yowsup $
@Joel-suffer-for-YOWSUP which version are yo using. Where have you gotten it?
@jlguardi Thanks for your answer . I clone From this address
git clone git://github.com/tgalal/yowsup.git
I could not register with the library, use a software called WART for registration
@Joel-suffer-for-YOWSUP clone from jlguardi/yowsup.git this master is updated.
@jlguardi thanks I worked to perfection . your excellent work. where I can contribute? $$$ so that you continue with your excellent work
@Joel-suffer-for-YOWSUP you can donate to @tgalal who implemented all this code. You have a link in the main page of his project and also my fork.
Hi!
First, sorry my english is bad...
I have same problem, and, to solve i do this:
git clone https://github.com/jlguardi/yowsup.git
cd yowsup
python3 setup.py install
Work fine! and, i test this at two machines.
[]'s and Thanks for all!
@jlguardi Help! I'm a noob when it comes to linux, so i tried to following all your instructions. I clone from jlguardi/yowsup.git and I can register, but I cannot log in, I get the error: ImportError no module named axolotadress
HELP ASAP please!
Read
‎https://github.com/jlguardi/yowsup/issues/6#issuecomment-202446917
De: Bobb69
Enviado: lunes, 28 de marzo de 2016 17:56
Para: tgalal/yowsup
Responder a: tgalal/yowsup
CC: jlguardi
Asunto: Re: [yowsup] Unable to do registration (#1335)
@jlguardi Help! I'm a noob when it comes to linux, so i tried to following all your instructions. I clone from jlguardi/yowsup.git and I can register, but I cannot log in, I get the error: ImportError no module named axolotadress
HELP ASAP please!
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
https://github.com/tgalal/yowsup/issues/1335#issuecomment-202455040
@jlguardi you're the best man! Thanks!
@jlguardi you've been so much help...
Can you please let me know how I can do this:
I want to create a script which i can call from another script. Lets call the first script send.py which I will call from another script.
and i want send.py to execute the following code which i can use to send the message when typed in the terminal: sudo yowsup/yowsup-cli demo -c config -s 27XXXXXXX "Message from Pi"
then the script must execute and exit back to the script which called the script send.py
OR if that's not going to work
how can I use the code sudo yowsup/yowsup-cli demo -c config -s 27XXXXXXX "Message from Pi"
in a script? How can i type the script that does that? Please help by showing me an example of a script which does this or point me to a website or thread where this is done.
Thank you in advance, and keep up the good work.
well i now tried this repo in different branches and also the master from jlguardi and his devel but all i get is this:
python yowsup-cli registration --requestcode voice --phone 49xxx29566061 --cc 49
INFO:yowsup.common.http.warequest:{"status":"fail","reason":"old_version"}
i'm trying to register a landline number but as some here said landline should work
so what can i try to get this work?
Same here, @jlguardi do you know if this issue is back?
./yowsup-cli registration -r sms -C 54 -p 54911XXXXXX -m 722 -n 310 --debug
DEBUG:yowsup.env.env:Env not set, setting it to android
DEBUG:yowsup.env.env:Current env changed to android
DEBUG:yowsup.common.http.warequest:{'Accept': 'text/json', 'User-Agent': 'WhatsApp/2.12.440 Android/4.3 Device/GalaxyS3'}
DEBUG:yowsup.common.http.warequest:cc=54&in=91164115258&lc=GB&lg=en&sim_mcc=722&sim_mnc=310&mcc=722&mnc=310&method=sms&mistyped=6&network_radio_type=1&simnum=1&s=&copiedrc=1&hasinrc=1&rcmatch=1&pid=4984&rchash=ac99cec38484c84dfbef4fde26f621ce1338fc41ea0ce05432b630e8a54703ca&anhash=6r%FD%DE%8B5%84.%AD%A6%29%28%22XT%08%9E%D9%3C%AB&extexist=1&extstate=1&token=thQ0vj42aNPGC65Hpq0daMbD5Ds%3D&id=%A7%B5%CE%1Dt7k%86-%FF%9A%89%23V%8D%3B%C8%FF%D3%AB
DEBUG:yowsup.common.http.warequest:Opening connection to v.whatsapp.net
DEBUG:yowsup.common.http.warequest:Sending GET request to /v2/code?cc=54&in=91164115258&lc=GB&lg=en&sim_mcc=722&sim_mnc=310&mcc=722&mnc=310&method=sms&mistyped=6&network_radio_type=1&simnum=1&s=&copiedrc=1&hasinrc=1&rcmatch=1&pid=4984&rchash=ac99cec38484c84dfbef4fde26f621ce1338fc41ea0ce05432b630e8a54703ca&anhash=6r%FD%DE%8B5%84.%AD%A6%29%28%22XT%08%9E%D9%3C%AB&extexist=1&extstate=1&token=thQ0vj42aNPGC65Hpq0daMbD5Ds%3D&id=%A7%B5%CE%1Dt7k%86-%FF%9A%89%23V%8D%3B%C8%FF%D3%AB
INFO:yowsup.common.http.warequest:{"status":"fail","reason":"old_version"}
status: fail
reason: old_version
Hello
I have the same problem any ideas for resolutions..
/yowsup$ sudo yowsup-cli registration -c phone.config -r sms
yowsup-cli v2.0.15
yowsup v2.4.102
Copyright (c) 2012-2016 Tarek Galal
http://www.openwhatsapp.org
This software is provided free of charge. Copying and redistribution is
encouraged.
If you appreciate this software and you would like to support future
development please consider donating:
http://openwhatsapp.org/yowsup/donate
INFO:yowsup.common.http.warequest:{"status":"fail","reason":"incorrect","sms_length":6,"voice_length":6,"sms_wait":0,"voice_wait":0}
INFO:yowsup.common.http.warequest:{"status":"fail","reason":"old_version"}
status: fail
reason: old_version
See #1536
Traceback (most recent call last):
File "./yowsup-cli", line 324, in
if not parser.process():
File "./yowsup-cli", line 159, in process
self.handleRequestCode(self.args["requestcode"], config)
File "./yowsup-cli", line 168, in handleRequestCode
from yowsup.registration import WACodeRequest
File "/home/pi/yowsup/yowsup/registration/init.py", line 1, in
from .coderequest import WACodeRequest
File "/home/pi/yowsup/yowsup/registration/coderequest.py", line 4, in
from yowsup.common.tools import StorageTools, WATools
File "/home/pi/yowsup/yowsup/common/tools.py", line 11, in
from pkg_resources import resource_string
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2888, in
add_activation_listener(lambda dist: dist.activate())
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 758, in subscribe
callback(dist)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2888, in
add_activation_listener(lambda dist: dist.activate())
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2425, in activate
for pkg in self._get_metadata('namespace_packages.txt'):
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2415, in _get_metadata
for line in self.get_metadata_lines(name):
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1413, in get_metadata_lines
return yield_lines(self.get_metadata(name))
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1405, in get_metadata
return self._get(self._fn(self.egg_info, name))
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1514, in _get
with open(path, 'rb') as stream:
IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/protobuf-3.0.0b2.post2-py2.7.egg/EGG-INFO/namespace_packages.txt'
can help me on this problem.. I am very new to this and have almost no idea to solve this..
sudo chmod 644‎ /usr/local/lib/python2.7/dist-packages/*
@jlguardi sudo chmod 644/usr/local/lib/python2.7/dist-pacages/*
chmod: missing operand after ‘644/usr/local/lib/python2.7/dist-pacages/*’
Try 'chmod --help' for more information.
i have tried sudo chmod 644‎ /usr/local/lib/python2.7/dist-packages/*, but then is still cant send the message. I am able get the six digit code and successfully registered. Please help
If you have registered, your error is different. We made a step forward!
Post trace/debug logs(-d flag) to see the new issue.
pi@raspberrypi:~/yowsup $ python yowsup-cli demos -c config -s 60173212431 "message" -d
yowsup-cli v2.0.15
yowsup v2.4.102
Copyright (c) 2012-2016 Tarek Galal
http://www.openwhatsapp.org
This software is provided free of charge. Copying and redistribution is
encouraged.
If you appreciate this software and you would like to support future
development please consider donating:
http://openwhatsapp.org/yowsup/donate
Traceback (most recent call last):
File "yowsup-cli", line 368, in
if not parser.process():
File "yowsup-cli", line 272, in process
self.startSendClient()
File "yowsup-cli", line 323, in startSendClient
not self.args["unmoxie"])
File "/home/pi/yowsup/yowsup/demos/sendclient/stack.py", line 20, in init
.pushDefaultLayers(encryptionEnabled)\
File "/home/pi/yowsup/yowsup/stacks/yowstack.py", line 51, in pushDefaultLayers
defaultLayers = YowStackBuilder.getDefaultLayers(axolotl)
File "/home/pi/yowsup/yowsup/stacks/yowstack.py", line 73, in getDefaultLayers
from yowsup.layers.axolotl import YowAxolotlLayer
File "/home/pi/yowsup/yowsup/layers/axolotl/init.py", line 1, in
from .layer import YowAxolotlLayer
File "/home/pi/yowsup/yowsup/layers/axolotl/layer.py", line 2, in
from .protocolentities import SetKeysIqProtocolEntity
File "/home/pi/yowsup/yowsup/layers/axolotl/protocolentities/init.py", line 3, in
from .iq_keys_get_result import ResultGetKeysIqProtocolEntity
File "/home/pi/yowsup/yowsup/layers/axolotl/protocolentities/iq_keys_get_result.py", line 5, in
from axolotl.identitykey import IdentityKey
File "/usr/local/lib/python2.7/dist-packages/python_axolotl-0.1.34-py2.7.egg/axolotl/identitykey.py", line 3, in
File "/usr/local/lib/python2.7/dist-packages/python_axolotl-0.1.34-py2.7.egg/axolotl/ecc/curve.py", line 8, in
File "build/bdist.linux-armv7l/egg/axolotl_curve25519.py", line 7, in
File "build/bdist.linux-armv7l/egg/axolotl_curve25519.py", line 3, in bootstrap
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2888, in
add_activation_listener(lambda dist: dist.activate())
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 758, in subscribe
callback(dist)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2888, in
add_activation_listener(lambda dist: dist.activate())
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2425, in activate
for pkg in self._get_metadata('namespace_packages.txt'):
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2415, in _get_metadata
for line in self.get_metadata_lines(name):
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1413, in get_metadata_lines
return yield_lines(self.get_metadata(name))
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1405, in get_metadata
return self._get(self._fn(self.egg_info, name))
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1514, in _get
with open(path, 'rb') as stream:
IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/protobuf-3.0.0b2.post2-py2.7.egg/EGG-INFO/namespace_packages.txt'
Check rights for '/usr/local/lib/python2.7/dist-packages/protobuf-3.0.0b2.post2-py2.7.egg'
ls -la /usr/local/lib/python2.7/dist-packages/protobuf-3.0.0b2.post2-py2.7.egg
ls -la /usr/local/lib/python2.7/dist-packages/protobuf-3.0.0b2.post2-py2.7.egg
total 16
drwxr-sr-x 4 root staff 4096 Apr 24 17:17 .
drwxrwsr-x 4 root staff 4096 Apr 24 17:22 ..
drwxr-sr-x 2 root staff 4096 Apr 24 17:17 EGG-INFO
drwxr-sr-x 3 root staff 4096 Apr 24 17:17 google
What is that mean? Sorry. All this are new to me. Hope you can help me out.
@jlguardi Thanks for the help.... i am able to send the message by adding sudo.. sudo yowsup-cli -c config -s 60xxxxxxxxxxxx "message"
but when i try again after an hour, i get Authentication Error: not-authorized. why?
Probably you have been banned by wa. This is a usual issue last days.
Try to register again but... you will need to wait for 40 days.
Need help - All WART - Yowsup - Giving same error " no_route " , is Whatsapp updated anything from thr side ?
INFO:yowsup.common.http.warequest:{"status":"fail","reason":"no_routes","retry_after":3600,"sms_wait":3600,"voice_wait":3600}
status: fail
retry_after: 3600
reason: no_routes
Don't use servers. Try from your home (most of servers are identified by wa. Try also with android env.
I was able to use yowsup-cli successfully couple weeks ago, but it now gives error:
yowsup-cli registration --cc 91 --phone 91xxxxxxxxxx --requestcode sms --mcc 404
INFO:yowsup.common.http.warequest:{"status":"fail","reason":"old_version"}
status: fail
reason: old_version
I also tried new installation to see if something got corrupted. Nope. Previously registered numbers works just fine.
Any help would be very much appreciated.
See #1716 and #1725
Thanks @jlguardi for pointing me to this. #1725 resolved the issue for me. I really appreciate the help.
Hi are there any updates about how to solve this issue of old_version while registering.
I have tried all the options found in these posts but with no luck yet.
Thank you.
e
Guys please share , I am facing probleme in C# as old version
I am getting no_routes if I use "s40" as Environment and "old_version" when environment is android. My current version of yowsup is 2.5.2 and yowsup-cli is 2.0.15.
check my comment on #1905 was able to fix the old_verion & no_routes issue.
I hope someone is still following this thread. I am working on raspberry pi communication with Whats app.
Now i have stuck on yowsup registration fail. Reason old version. How to get out of this. This is my first time working with python and raspberry pi. How to get version of yowsup. How to update yowsup library. Please let me know about the solution.
Most helpful comment
@ToninoTarsi
The esasiest way is download my fork:
If you are using git:Android_2.12.440