yowsup icon indicating copy to clipboard operation
yowsup copied to clipboard

KeyError: 'dbus'

Open timbone-de opened this issue 12 years ago • 5 comments

I got this error on the registration command: Traceback (most recent call last): File "yowsup-cli", line 306, in elif args["dbus"]: KeyError: 'dbus'

Sry, I am still learning with python

My command is: python yowsup-cli -c config.example --register 8xx–0xx

timbone-de avatar Jan 24 '14 06:01 timbone-de

The elif args["dbus"] line is faulty. But, you should not even get there, since you did not select the dbus option. So, it means your configuration file is invalid. Check your configuration file and see if everything in there is correct.

Details: Comment-out line 306 and 307 in yowsup-cli (put a # at the beginning of these lines)

ghost avatar Feb 02 '14 13:02 ghost

It happened to me too. It was my fault as I wasn't including the config file when "yowsup-cli" was being called: $ ./yowsup-cli -r sms Traceback (most recent call last): File "./yowsup-cli", line 306, in elif args["dbus"]: KeyError: 'dbus' $ ./yowsup-cli -c config.modemusb -r sms Detected cc: 34 status: sent retry_after: 1805 length: 6 method: sms

ieguiguren avatar Apr 23 '14 04:04 ieguiguren

Yes worked!

hexvalid avatar Jun 05 '14 00:06 hexvalid

when i comment-out line 306 and 307, says "Error: config file is invalid" i dont know what can i do now how do you resolved it, ErkanMDR?

joshua-pi avatar Jun 21 '14 05:06 joshua-pi

@joshua-pi it says your config file is invalid. Maybe you can post it here, so we can check it. Did you specify one anyway with the -c option?

ghost avatar Jun 21 '14 07:06 ghost