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

Telegram plugin not showing in dropdown #71

Open
fringefilmsoz opened this issue Jan 31, 2023 · 12 comments
Open

Telegram plugin not showing in dropdown #71

fringefilmsoz opened this issue Jan 31, 2023 · 12 comments

Comments

@fringefilmsoz
Copy link

fringefilmsoz commented Jan 31, 2023

I have installed the telegram plugin, but cannot access it's setup.

Also installed pip and the telegram bot with: pip install python-telegram-bot --upgrade

Python version is 3.9.2
SIP version: 4.1.53

Have tried rebooting and uninstalling and reinstalling the plugin. Same for the pup package - uninstall and install again.

image

@fringefilmsoz fringefilmsoz changed the title Telegram plugin not showing dropdown Telegram plugin not showing in dropdown Jan 31, 2023
@Dan-in-CA
Copy link
Owner

Probably the reason it is not showing up in the plugins menu is because it is not loading.
That plugin has not been updated in a long time. It was contributed by a user when SIP was running under Python2.
I will take a look and see if I can get working.

@Dan-in-CA
Copy link
Owner

Dan-in-CA commented Jan 31, 2023

The documentation for the python-telegraph-bot has a note:
"PTB has undergone significant changes in v20. Please read the documentation carefully and also check out the transition guide in the wiki"
It may take a bit of time to update the plugin.

I will post here when it is ready.
Dan

@Dan-in-CA
Copy link
Owner

Dan-in-CA commented Jan 31, 2023

OK.
The telegramBot plugin has been updated so it will load.
Just re-install the plugin to get the update.
I have not tested beyond that. The help file is working but the instructions may be a bit out of date.

@fringefilmsoz
Copy link
Author

fringefilmsoz commented Jan 31, 2023 via email

@fringefilmsoz
Copy link
Author

fringefilmsoz commented Feb 2, 2023

Hi Dan,
I manually copied over the code in each of the files you modified.
Unfortunately, behavior remains the same, not showing in my dropdown.
Rebooted system, still no luck.

@Dan-in-CA
Copy link
Owner

I would recommend using the plugin manager to re-install.
I installed the Telegram Bot in a new copy of SIP and It is showing up.

You could also try disabling the plugin and re enabling it.

@fringefilmsoz
Copy link
Author

fringefilmsoz commented Feb 3, 2023

Still no luck.

Steps I've tried:

  1. Disabling and enabling.
  2. Uninstalling. This doesn't work. it doesn't uninstall.
  3. Deleting the following files manually, and reinstalling from the plugin manager.
    The plugin does re-install and can be enabled/disabled. Even when installed from plugin manager, it can't be uninstalled (even after ensuring it's disabled.) But still, nothing shows in the plugins dropdown.
./plugins/manifests/telegram_bot.manifest
./plugins/telegramBot.py
./plugins/__pycache__/telegramBot.cpython-39.pyc
./static/docs/plugins/telegramBot-docs.html
./templates/telegramBot.html

image

EDIT: Additional info:
I tried resolving: http://sip-system.local/telegramBot-sp
It was not resolved and returned to the SIP home screen.
This is perplexing, as I can see in the /plugins/telegramBot.py seems to have correct url.append config.

@Dan-in-CA
Copy link
Owner

Not sure what is causing your problem but I will do some more testing on this end.
Dan

@Dan-in-CA
Copy link
Owner

One thing that may help diagnose the problem would be if you could start SIP from the command line.
when SIP starts it prints some information. If you look just above the list of plugins loaded there will probably be an error message that could provide a clue to what is going on.

Dan

@fringefilmsoz
Copy link
Author

Error is detected.

Ignoring exception while loading the telegramBot plug-in.
No module named 'telegram'

PIP certainly indicates that it is installed.
python-telegram-bot 20.0

@Dan-in-CA
Copy link
Owner

Dan-in-CA commented Feb 4, 2023

Try installing with pip3.
pip3 install python-telegram-bot

@fringefilmsoz
Copy link
Author

Hmm. A also looked and tried that. I wonder why it's not finding the plugin.

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

No branches or pull requests

2 participants