Cannot run backintime-gnome on Centos 7

Bug #1406087 reported by Damo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Back In Time
Fix Committed
Undecided
Unassigned

Bug Description

On running backintime-gnome on Centos 7, receive the following error.

Traceback (most recent call last):
  File "/usr/share/backintime/gnome/app.py", line 30, in <module>
    import pynotify
ImportError: No module named pynotify

It used to work in Centos 6. I have noticed the following package which was available in 6, is no longer available in 7.

notify-python-0.1.1-10.el6.x86_64

This package contained the following files

rpm -ql notify-python-0.1.1-10.el6.x86_64
/usr/lib64/pkgconfig/notify-python.pc
/usr/lib64/python2.6/site-packages/gtk-2.0/pynotify
/usr/lib64/python2.6/site-packages/gtk-2.0/pynotify/__init__.py
/usr/lib64/python2.6/site-packages/gtk-2.0/pynotify/__init__.pyc
/usr/lib64/python2.6/site-packages/gtk-2.0/pynotify/__init__.pyo
/usr/lib64/python2.6/site-packages/gtk-2.0/pynotify/_pynotify.so
/usr/share/doc/notify-python-0.1.1
/usr/share/doc/notify-python-0.1.1/AUTHORS
/usr/share/doc/notify-python-0.1.1/COPYING
/usr/share/doc/notify-python-0.1.1/ChangeLog
/usr/share/doc/notify-python-0.1.1/NEWS
/usr/share/doc/notify-python-0.1.1/README
/usr/share/pygtk/2.0/defs/pynotify.defs

I haven't been able to find an equivalent (ie a package with new name that replaces it).

sudo yum whatprovides \*pynotify\*
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.mirror.uber.com.au
 * epel: fedora.mirror.serversaustralia.com.au
 * extras: centos.mirror.digitalpacific.com.au
 * updates: centos.mirror.digitalpacific.com.au
No matches found

Another change between Centos 6 and 7 is a move from 2.6 to 2.7 of Python.

Because this appears to be an omission by the distribution to include the required library, I appreciate this makes it difficult for you guys to resolve. I've attempted to compile the missing library manually, but I get an error:

pynotify.c: In function '_wrap_notify_notification_new':
pynotify.c:168:5: error: unknown type name 'GtkWidget'
     GtkWidget *attach = NULL;
     ^

I am wondering whether the gui version of backintime could have a configure option that omits the desktop notification system (I certainly don't need it), such that it still works on Centos7? Not sure how much effort this would require on your team's part.

Thanks for the great software guys.

Damien.

Related branches

Revision history for this message
Germar (germar) wrote :

Hmm. I don't have time to test this at the moment but please try to remove the line 'import pynotify' from /usr/share/backintime/gnome/app.py
I'm pretty sure this is just an old leftover as we moved to /usr/bin/notify-send some time ago.

Revision history for this message
Damo (damo-clarky) wrote :

No problem.

I followed your instructions and it now works again.

Thanks so much for taking the time to respond.

This one is an easy fix. :)

Cheers,
Damien.

Germar (germar)
Changed in backintime:
status: New → Fix Committed
milestone: none → 1.0.42
Revision history for this message
Germar (germar) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.