Comments (12)
Please, check my last commit 6ccb046. It seems that OS X have not 'notify-send' command. I changed the way to send notifications. Now the program requires additional library notify2 as dependency. Install it and it should be work.
from mail-notifier.
Thanks for prompt response. I pulled latest changes, installed notify2
, and now I get following error:
File "/usr/local/lib/python3.6/site-packages/notify2.py", line 39, in <module>
import dbus
ModuleNotFoundError: No module named 'dbus'
There are some people having similar problems i.e. https://stackoverflow.com/questions/37521162/how-solve-importerror-no-module-named-dbus
But none of the proposed solutions worked for me, including installing dbus
package via Homebrew.
from mail-notifier.
Try to install the program in virtualenv. Follow the instructions to install virtualenv, activate it and install PyQt5
, notify2
and probably dbus
inside of virtualenv.
from mail-notifier.
But none of the proposed solutions worked for me, including installing
dbus
package via Homebrew.
Did you try to install dbus-python via pip?
from mail-notifier.
Did you try to install dbus-python via pip?
Installation fails without clear reason and a lot of junk output. I'm trying to dig through logs..
It seems there was relevant package in Homebrew but it got removed at some point. There are some outdated instructions online that recommend installing brew install homebrew/python/python-dbus
I'll try downloading sources and installing it manually
from mail-notifier.
I've made some progress but it still doesn't work.
To properly use notify2
on OS X you have to install dbus
with Homebrew:
brew install pkg-config dbus dbus-glib
brew services start dbus
Then:
pip3 install notify2 dbus-python
But I still have an error when trying to launch mail-notifier.py
:
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.freedesktop.Notifications': no such name
It seems that dbus service is not properly registered in the system. Other people had this problem https://github.com/fr31/spotifylyrics/issues/19#issuecomment-242543039 but no workaround as far as I can tell.
from mail-notifier.
I made quick fix to prevent crashing if OS notification is different than Linux. Baloon notification won't work, but it will print notification to console output (better, than nothing) instead and it won't crash. Please, test this commit.
I will continue to work on this problem, but I'm not sure, that I succeed to resolve it and it won't be soon.
from mail-notifier.
Please, test this commit.
It still crashes because right now notify2 initialization is the problem. You'll have to make it conditional, probably including import notify2
which I'm not sure how to do...
I will continue to work on this problem
I will also try to resolve service error and update this issue if I find a solution.
from mail-notifier.
Ok, I came back to first notification method (which using notify-send
), but added try: ... except: ... to prevent crashing. Please, check b04cb9a, is it workable? You should see notification in terminal output instead of baloon.
from mail-notifier.
Yes, this is working.
Thanks.
from mail-notifier.
I have one idea how to solve this problem, but I need to install OS X in Virtual Box and understand how it works there. It will take some time.
from mail-notifier.
Thanks, I'll keep an eye out for updates.
But I think this issue should be closed. The crash was a bug, and it's fixed now that you handle OS X notifications issue gracefully.
from mail-notifier.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mail-notifier.