[tip] Problem with linux notifications - solved
- Dominant language
- Python
- Stars
- 5k
- Forks
- 216
- PR merge metrics
- No merged PRs in 30d
Description
Hi guys,
Trying to run a `$ntfy send test` command after installing ntfy using `sudo pip install ntfy` and i get the following exception:
```
ERROR: Failed to send notification using default
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/ntfy/__init__.py", line 48, in notify
**backend_config)
File "/usr/local/lib/python2.7/site-packages/ntfy/backends/default.py", line 22, in notify
raise DefaultNotifierError(e, module)
DefaultNotifierError
```
I searched something like this in the closed issues and i found the issue #95, where the SteveEdson had the same problem and he said that he ran the command `$ cat ~/.config/ntfy/ntfy.yml` to check if the config file is ok, and there i noticed that this path doesn't exist on my `.config` folder. So I created the ntfy folder using `mkdir ntfy` and then i used a text editor to create the `ntfy.yml` and put the following code inside it:
```
---
backends:
- linux
```
so, when i ran `$ ntfy send test` again, it resulted in the follow message:
`ImportError: No module named dbus`
So i realized that i don't had the dbus package installed on my machine, then i ran `sudo apt-get install python-dbus` to install this and when i ran again `$ntfy send test` it works pretty nice!
Maybe it is too obvious or a newbie question, but i decide to post it here because it stucked me when i try to run the script for the first time, and i wasted some time to discover how to fix that. I hope that issue can help someone that have the same trouble when try to install the app, so i think that can be usefull.
se ya! :)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.