yowsup icon indicating copy to clipboard operation
yowsup copied to clipboard

yowsup registration issue

Open AnithaU opened this issue 9 years ago • 3 comments

Hi,

I have installed yowsup in raspberry pi 3 and tried to register with an airtel mobile number for sending alert message for my IOT project. Since I am new to python and raspberry pi, I am not able to understand why it is showing below error. Kindly assist me on this.

sudo python yowsup-cli registration --requestcode sms --phone 919513122227 --cc 91 --mcc 404 --mnc 45 yowsup-cli v2.0.15 yowsup v2.5.2

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 189, in process self.handleRequestCode(self.args["requestcode"], config) File "yowsup-cli", line 206, in handleRequestCode method File "/home/pi/yowsup/yowsup/registration/coderequest.py", line 41, in init self.addParam("token", YowsupEnv.getCurrent().getToken(p_in)) File "/home/pi/yowsup/yowsup/env/env.py", line 52, in getCurrent env = envs[0] IndexError: list index out of range

AnithaU avatar Nov 24 '17 13:11 AnithaU

Tell env that the program should use (android or s40).

look: yowsup-cli registration --requestcode sms --phone 919513122227 --cc 91 --mcc 404 --mnc 45 --e android

brunaoalx avatar Nov 27 '17 19:11 brunaoalx

please add -d and post the full logs

tgalal avatar Dec 30 '17 08:12 tgalal

The registration issue has been resolved.. Thank you. Can you please provide a python code to send an image through yowsup.

AnithaU avatar Dec 31 '17 05:12 AnithaU