Nux!


Home » Repos » Report a problem or request a package » radiotray bug (wrong import lib)
radiotray bug [message #1412] Fri, 16 August 2013 10:13 Go to next message
sergiuniculescu is currently offline  sergiuniculescu
Messages: 12
Registered: August 2013
Location: Romania
Junior Member
Hi,
There is a small bug in radiotray package. Please modify line 24 from /usr/share/radiotray/plugins/NotificationPlugin.py
from
import pynotify
to
import pyinotify

Thanks!
Re: radiotray bug [message #1413 is a reply to message #1412] Fri, 16 August 2013 11:08 Go to previous messageGo to next message
nux is currently offline  nux
Messages: 1659
Registered: January 2012
Senior Member
Administrator

Hello and thanks,

How is this bug manifesting?

Re: radiotray bug [message #1414 is a reply to message #1412] Fri, 16 August 2013 18:26 Go to previous messageGo to next message
sergiuniculescu is currently offline  sergiuniculescu
Messages: 12
Registered: August 2013
Location: Romania
Junior Member
Step to reproduce:
$ radiotray 
/usr/share/radiotray/plugins
Gnome Media Keys, Controls Radio Tray through keyboard multimedia keys, GnomeMediaKeysPlugin.py, Carlos Ribeiro
Notifications, Shows message notifications on the desktop, NotificationPlugin.py, Carlos Ribeiro
Traceback (most recent call last):
  File "/usr/bin/radiotray", line 15, in <module>
    radiotray.main(sys.argv[1:])
  File "/usr/lib/python2.6/site-packages/radiotray/radiotray.py", line 36, in main
    RadioTray()
  File "/usr/lib/python2.6/site-packages/radiotray/RadioTray.py", line 114, in __init__
    self.pluginManager.discoverPlugins()
  File "/usr/lib/python2.6/site-packages/radiotray/PluginManager.py", line 126, in discoverPlugins
    m = __import__(info.clazz)
  File "/usr/share/radiotray/plugins/NotificationPlugin.py", line 24, in <module>
    import pynotify
ImportError: No module named pynotify

The problem is at line 24 in /usr/share/radiotray/plugins/NotificationPlugin.py. Please modify it to
import pyinotify
because radiotray requires python-inotify package who provides /usr/bin/pyinotify
Re: radiotray bug [message #1416 is a reply to message #1412] Fri, 16 August 2013 21:47 Go to previous messageGo to next message
nux is currently offline  nux
Messages: 1659
Registered: January 2012
Senior Member
Administrator

Hi,

I'm not a programmer, so please understand my reluctance to "randomly" edit stuff. Your request does seem ok, however I can't duplicate your problem:

Here's how it looks when I start radiotray:

radiotray 
/usr/share/radiotray/plugins
Gnome Media Keys, Controls Radio Tray through keyboard multimedia keys, GnomeMediaKeysPlugin.py, Carlos Ribeiro
Notifications, Shows message notifications on the desktop, NotificationPlugin.py, Carlos Ribeiro
Sleep Timer, Stops playing after a predefined time, SleepTimerPlugin.py, Carlos Ribeiro
HelloWorld, This is a test plugin, HelloWorld.py, Carlos Ribeiro
started
History, Shows song history, HistoryPlugin.py, Carlos Ribeiro


What exactly are you doing in radiotray that triggers that error about inotify?
Re: radiotray bug [message #1417 is a reply to message #1412] Fri, 16 August 2013 21:54 Go to previous messageGo to next message
sergiuniculescu is currently offline  sergiuniculescu
Messages: 12
Registered: August 2013
Location: Romania
Junior Member
Nothing, I've just installed radiotray and I've run it. But I can't run it if I don't modify that line in NotificationPlugin.py. I don't know why in your situation it works.

Thanks!
Re: radiotray bug [message #1418 is a reply to message #1412] Fri, 16 August 2013 22:23 Go to previous message
nux is currently offline  nux
Messages: 1659
Registered: January 2012
Senior Member
Administrator

Well, thanks for coming with a potential solution, if someone finds this via google, they have you to thank.. Smile

Previous Topic: Package request: reaver
Next Topic: Package request: mc
Goto Forum:
  


Current Time: Wed Jun 26 03:19:56 BST 2019

Total time taken to generate the page: 0.02154 seconds