Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sand4rt opened this issue Jan 11, 2025 · 0 comments
Open

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

sand4rt opened this issue Jan 11, 2025 · 0 comments
Labels
bug Unexpected problem or unintended behavior

Comments

@sand4rt
Copy link

sand4rt commented Jan 11, 2025

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

Steps to reproduce

1. pip install yowsup
2. curl -o ~/.local/share/weechat/python/whatsapp.py https://raw.githubusercontent.com/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

@sand4rt sand4rt added the bug Unexpected problem or unintended behavior label Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

1 participant