Skip to content

whatsapp.py: 'YowInterfaceLayer' is not defined + update to python3 #567

Open
@sand4rt

Description

@sand4rt

Script / WeeChat

  • Name of script: whatsapp.py
  • Script version: 0.2
  • WeeChat version: 4.5.1

Bug summary

Thank you for creating weechat! I’d love to use a single chat client for all messages, including WhatsApp. It worked for me some time ago, but i’m now encountering issues. It seems others are experiencing the same problem, as mentioned here: https://stackoverflow.com/questions/71370880/unable-to-start-weechat-with-whastapp-script

edit: using matrix; https://github.com/poljar/weechat-matrix-rs + a whatsapp bridge is an better option..

Steps to reproduce

1. pip install yowsup
2. curl -o ~/.local/share/weechat/python/whatsapp.py https://github.com/raw/weechat/scripts/main/python/whatsapp.py
3. /script load whatsapp.py in weechat

Current behavior

weechat is unable to find the YowInterfaceLayer (or any other yowsup imports)

21:36:50        weechat     │ python: stdout/stderr (?):   File "/home/q4pa/.local/share/weechat/python/autoload/whatsapp.py", line 397, in <module>
21:36:50        weechat     │ python: stdout/stderr (?):     class Server(YowInterfaceLayer):
21:36:50        weechat     │ python: stdout/stderr (?):                  ^^^^^^^^^^^^^^^^^
21:36:50        weechat     │ python: stdout/stderr (?): NameError: name 'YowInterfaceLayer' is not defined

Expected behavior

To now throw the 'YowInterfaceLayer' is not defined error

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUnexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions