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 first run doesn't work, Invalid backend #165

Open
jinnatar opened this issue Feb 19, 2018 · 6 comments
Open

Telegram first run doesn't work, Invalid backend #165

jinnatar opened this issue Feb 19, 2018 · 6 comments

Comments

@jinnatar
Copy link

jinnatar commented Feb 19, 2018

Installed 2.5.1 as:

%> sudo -H pip install 'ntfy[telegram,emoji]'

Trying to run as per docs:

%> ntfy -b telegram send "hello world"
ERROR: Invalid backend telegram

My .config/ntfy/ntfy.yml is very simple, removing it does not help nor does adding telegram to the backends list or adding an empty telegram config block:

backends:
  - pushover
pushover:
  user_key: FOO

Installed on Ubuntu LTS 16.04, python2.7

%> python -V
Python 2.7.12
@dschep
Copy link
Owner

dschep commented Feb 19, 2018

I didn't write or use the telegram backend so I don't really know. Thoughts @rahiel?

@rahiel
Copy link
Contributor

rahiel commented Mar 20, 2018

I can't reproduce this. I don't have a .config/ntfy/ntfy.yml and did a clean install of ntfy[telegram,emoji] on python 2.7 and it works.

@Artanicus maybe try uninstalling ntfy and installing it on Python3? (So use pip3 instead)

@jinnatar
Copy link
Author

Python3 install seems to work. Any ideas why a 2.7 install would fail?

@rahiel
Copy link
Contributor

rahiel commented Mar 24, 2018

Maybe you have more stuff installed in your 2.7 environment, so some modules may clash. And I guess your Python3 environment is clean, i.e. you haven't installed (much) with pip3.

Don't forget to close this issue.

@ne0c0de
Copy link

ne0c0de commented Apr 4, 2018

same issue here, did you find a workaround @Artanicus ?

(I tried to install with both pip and pip3 non of them worked)

@rahiel how can i debug it?

btw these are the commands that i executed after installation:

Successfully installed ntfy appdirs ruamel.yaml
Cleaning up...
root@appserver2:~# pip3 install ntfy[telegram]
Requirement already satisfied (use --upgrade to upgrade): ntfy[telegram] in /usr/local/lib/python3.4/dist-packages
  Installing extra requirements: 'telegram'
Cleaning up...
root@appserver2:~# ntfy -b telegram send "Telegram configured for ntfy"
ERROR: Invalid backend telegram
root@appserver2:~#

@slavaGanzin
Copy link

@rahiel in my setup(python3) telegram_send stop working. ntfy-telegram backend just show generic error. But i tried to use telegram-send from cli and it shows it doesn't have some dependencies: future, chardet in my case.

I reinstall all telegram_send dependencies by hand and ntfy-telegram starts to work. So it's not a problem with ntfy code it's problem with dependencies of a dependency.

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

5 participants