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

Notifications fail to work with pynotify (on Debian stretch) #336

Closed
irl opened this issue Jun 26, 2016 · 3 comments
Closed

Notifications fail to work with pynotify (on Debian stretch) #336

irl opened this issue Jun 26, 2016 · 3 comments
Labels

Comments

@irl
Copy link
Collaborator

irl commented Jun 26, 2016

Notifications seem to cause an exception with pynotify. They work fine with gobject though.

This is using Debian stretch, exception and installed package versions below:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bugwarrior/command.py", line 56, in pull
    synchronize(issue_generator, config, main_section, dry_run)
  File "/usr/lib/python2.7/dist-packages/bugwarrior/db.py", line 366, in synchronize
    send_notification(issue, 'Created', conf)
  File "/usr/lib/python2.7/dist-packages/bugwarrior/notifications.py", line 93, in send_notification
    import pynotify
  File "/usr/lib/python2.7/dist-packages/gtk-2.0/pynotify/__init__.py", line 1, in <module>
    from _pynotify import *
ImportError: could not import gobject (could not find _PyGObject_API object)
+++-==================-==============-==============-==========================================
ii  python-gobject     3.20.1-1       all            Python 2.x bindings for GObject - transiti
ii  python-gobject-2   2.28.6-12+b1   amd64          deprecated static Python bindings for the 
ii  python-notify      0.1.1-4        amd64          Python bindings for libnotify
@irl irl added the bug label Jul 27, 2016
@ghost
Copy link

ghost commented Dec 4, 2016

I just ran into the same issue.

@irl: Did you find a workaround for this?

@irl
Copy link
Collaborator Author

irl commented Dec 4, 2016

@urzds looking at my bugwarriorrc, I see I turned off notifications. I did get it to work with the not pynotify method iirc though.

@ghost
Copy link

ghost commented Dec 4, 2016

I changed my bugwarriorrc to backend = gobject and applied PR #419, now it works.

ralphbean added a commit that referenced this issue Mar 15, 2017
According to #336, they don't work.  It also looks like they just use
gobject notifications under the hood.. and we support that directly.

No use keeping an option around that doesn't work, right?  ;)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants