Git Product home page Git Product logo

notifymuch's People

Contributors

gauteh avatar kspi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

notifymuch's Issues

Distutils installs with python2 shebang although python3 required

Notifymuch has to be run using at least python3.2 since the calls to os.makedir use the argument exist_ok which was only introduced in python3.2. During the install process, however, distutils changes the shebang in the notifymuch executable from

#!/usr/bin/env python3

to

#!/usr/bin/python

When this executable is then called it runs under python2 and crashes upon encountering the call to os.makedirs.

ModuleNotFoundError: No module named 'notifymuch'

On running notifymuch in python3 (see #5) the following error occurs:

Traceback (most recent call last):
  File "/usr/local/bin/notifymuch", line 33, in <module>
    from notifymuch.notification import show_notification
ModuleNotFoundError: No module named 'notifymuch'

For what it's worth, pylint gives 'no-name-in-module' errors for lines 20 (no 'messages') and 33 (no 'notification').

License missing

The repository does not have a license file, which makes it not so easy to package this.

Tag releases

It would be nice for downstream packaging if releases where tagged in git.

Daemonized problems

Hello, got problem with notification for daemonized processes.

The process
offlineimap systemd service unit
-> offlineimap post sync hook : notmuch new + tags + blabla
-> notmuch post new hook : .mails/.notmuch/hooks/post-new : notifymuch

And I got

Mar 28 08:07:28 XXXXXXXXXX offlineimap[2832]: Calling hook: /home/XXXX/bin/offlineimap-postsync
Mar 28 08:07:28 XXXXXXXXXX offlineimap[2832]: Hook stdout: No new mail.
Mar 28 08:07:28 XXXXXXXXXX offlineimap[2832]: Hook stderr:Unable to init server: Could not connect: Connection refused
Mar 28 08:07:28 XXXXXXXXXX offlineimap[2832]: Unable to init server: Could not connect: Connection refused
Mar 28 08:07:28 XXXXXXXXXX offlineimap[2832]: (notifymuch:15689): Gtk-CRITICAL **: 08:07:28.313: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (scre>
Mar 28 08:07:28 XXXXXXXXXX offlineimap[2832]: (notifymuch:15689): GLib-GIO-CRITICAL **: 08:07:28.317: g_application_release: assertion 'application->priv->use>
Mar 28 08:07:28 XXXXXXXXXX offlineimap[2832]: Traceback (most recent call last):
Mar 28 08:07:28 XXXXXXXXXX offlineimap[2832]:   File "/usr/lib/python3.7/site-packages/notifymuch/notification.py", line 34, in on_startup
Mar 28 08:07:28 XXXXXXXXXX offlineimap[2832]:     icon = Gtk.IconTheme.get_default().lookup_icon(
Mar 28 08:07:28 XXXXXXXXXX offlineimap[2832]: AttributeError: 'NoneType' object has no attribute 'lookup_icon'
Mar 28 08:07:28 XXXXXXXXXX offlineimap[2832]: Hook return code: 0

notifymuch works well when run from my terminal emulator. I guess the problem is that the process do not have environment variables.
What can I do ?

Ty all, kiss

import warning: specify version

Hi,

I started getting the following warning when using notifymuch:

sys:1: PyGIWarning: Notify was imported without specifying a version first. Use gi.require_version('Notify', '0.7') before import to ensure that the right version gets loaded

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.