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

Plugin not found (telegram) #107

Open
Rossibrother opened this issue Feb 2, 2023 · 8 comments
Open

Plugin not found (telegram) #107

Rossibrother opened this issue Feb 2, 2023 · 8 comments

Comments

@Rossibrother
Copy link

Rossibrother commented Feb 2, 2023

Hey, ich bekomme diesen Fehler:

02.02.2023 16:22:32,270 - routerManager   [ERROR   ] plugin not found: telegram
02.02.2023 16:22:32,271 - bw_server       [CRITICAL] Error while building routers
02.02.2023 16:22:32,271 - bw_server       [ERROR   ] BOSWatch interrupted by an error

wenn ich den Server starten will.
Woran kann das liegen?

@janspeller
Copy link
Member

Vermutlich fehlte hier das Python Modul für Telegram, korrekt? @Rossibrother

@Rossibrother
Copy link
Author

Dachte ich, aber es wird immer noch nicht gefunden, hab alles versucht was in den anderen issues dazu steht hat aber leider nichts geklappt.

@Schrolli91 Schrolli91 reopened this Feb 3, 2023
@Schrolli91
Copy link
Member

Dann zeig mal deine config dazu bitte

@Schrolli91 Schrolli91 changed the title Plugin not foung Plugin not found (telegram) Feb 3, 2023
@Rossibrother
Copy link
Author

Rossibrother commented Feb 3, 2023

server:
  port: 8080
  name: BW3 Server        # name of the BW3 Server instance
  useBroadcast: no        # serve server ip on broadcast request

alarmRouter:
- Router 1

router:
- name: Router 1
  route:
- type: plugin
      name: Telegram Plugin
      res: telegram
      config:
        message_pocsag: "{RIC}({SRIC})\n{MSG}"
        botToken: "bot_token"
        chatIds:
          - "chatId"

@Schrolli91
Copy link
Member

Nutzt du aktuell den dev Branch?
Check mal ob es i Plugin Ordner einen telegram Unterordner gibt bitte.
Eigentlich sehe ich keinen Grund, wieso das Plugin nicht gefunden werden sollte.

@Rossibrother
Copy link
Author

Ich benutze den dev Branch, im Ordner ist die telegram.py, andere Plugins z.b. http funktionieren ohne Probleme

@janspeller
Copy link
Member

Hast du das benötigte modul für telegram installiert? Mir ist letztens bei einer Neuinstallation mal aufgefallen, dass es da mit der neusten version probleme gibt.

@Schrolli91 Ich bin hier an einer lösung mit einer anderen Bibliothek dran, python-telegram-bot hat mit der v20 einen relativ großen API-Change gemacht, für einfaches "senden" von Nachrichten wird die Bibliothek viel zu groß. Alternatives Plugin ist bei mir seit ca. 2 Wochen im Test.

@PeterLaemmle
Copy link

Alternativ kann man die alte Version wie folgt erzwingen:
pip install python-telegram-bot==13.13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants