weechat / scripts

Official scripts for WeeChat.
https://weechat.org/scripts/
231 stars 220 forks source link

whatsapp.py and yowsup 3.0.0 #332

Open dfroger opened 5 years ago

dfroger commented 5 years ago

It seems that whatsapp.py needs to be upgraded for yowsup 3.0.0, these imports do not work for me:

from yowsup.layers.auth import AuthError
dfroger commented 5 years ago

Related commit in yowsup.

dfroger commented 5 years ago

also, self.getStack() no more has .setCredentials attribute

dfroger commented 5 years ago

Note: I start working on it in this branch (but I don't have much time for it today)

sand4rt commented 2 months ago

@dfroger were you able to get whatsapp.py working? I installed both Yowsup v3 and v2, but facing the following error:

python: stdout/stderr (?): /.local/share/weechat/python/autoload/whatsapp.py:1432: SyntaxWarning: invalid escape sequence '\ '
python: stdout/stderr (?):   weechat.prnt("", "whatsapp: use only characters: a-z A-Z 0-9 [ \ ] ^ _ - { | } @ .")
python: stdout/stderr (?): Package python-yowsup (yowsup) must be installed to use whatsapp protocol.
python: stdout/stderr (?): Get yowsup with your package manager, or at this URL: https://github.com/tgalal/yowsup
python: stdout/stderr (?): Traceback (most recent call last):
python: stdout/stderr (?):   File ".local/share/weechat/python/autoload/whatsapp.py", line 396, in <module>
python: stdout/stderr (?):     class Server(YowInterfaceLayer):
python: stdout/stderr (?):                  ^^^^^^^^^^^^^^^^^
python: stdout/stderr (?): NameError: name 'YowInterfaceLayer' is not defined
python: unable to parse file ".local/share/weechat/python/autoload/whatsapp.py"
script: 313 scripts for WeeChat 4.3.4