Bug 1017473

Summary: radiotray
Product: [openSUSE] openSUSE Tumbleweed Reporter: Forgotten User GtlNwG8-0_ <forgotten_GtlNwG8-0_>
Component: OtherAssignee: openSUSE GNOME <os.gnome.maintainers>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: dimstar, fkrueger, forgotten_9yTPaETZeY, forgotten_GtlNwG8-0_, forgotten_Ipcm46b0iF
Version: Current   
Target Milestone: Current   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Forgotten User GtlNwG8-0_ 2016-12-29 06:53:02 UTC
After installing the program radiotray on the Mate-DE the program wont start up.
Not graphical and not in a terminal.
Comment 1 Frank Krüger 2017-01-02 15:03:53 UTC
It does not start/work on openSUSE Leap 42.2 either(KDE Plasma 5 LTS):

(radiotray:9881): Gtk-WARNING **: Theme parsing error: gtk.css:68:35: The style property GtkButton:child-displacement-x is deprecated and shouldn't be used anymore. It will be removed in a future version

(radiotray:9881): Gtk-WARNING **: Theme parsing error: gtk.css:69:35: The style property GtkButton:child-displacement-y is deprecated and shouldn't be used anymore. It will be removed in a future version

(radiotray:9881): Gtk-WARNING **: Theme parsing error: gtk.css:73:46: The style property GtkScrolledWindow:scrollbars-within-bevel is deprecated and shouldn't be used anymore. It will be removed in a future version
/usr/lib/python2.7/site-packages/radiotray/XmlDataProvider.py:23: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk
cannot import name Gst
Traceback (most recent call last):
  File "/usr/bin/radiotray", line 15, in <module>
    radiotray_runner.main(sys.argv[1:])
  File "/usr/lib/python2.7/site-packages/radiotray/radiotray_runner.py", line 39, in main
    RadioTray()
  File "/usr/lib/python2.7/site-packages/radiotray/RadioTray.py", line 72, in __init__
    self.audio = AudioPlayerGStreamer(self.mediator, self.cfg_provider, eventManager)
  File "/usr/lib/python2.7/site-packages/radiotray/AudioPlayerGStreamer.py", line 55, in __init__
    self.souphttpsrc = Gst.ElementFactory.make("souphttpsrc", "source")
NameError: global name 'Gst' is not defined
Comment 2 Forgotten User 9yTPaETZeY 2017-01-18 16:48:44 UTC
I have the same problem in openSUSE LEAP 42.2 KDE Plasma 5 LTS:

alex@linux-f5ky:~> radiotray

(radiotray:11043): Gtk-WARNING **: Theme parsing error: gtk.css:68:35: The style property GtkButton:child-displacement-x is deprecated and shouldn't be used anymore. It will be removed in a future version

(radiotray:11043): Gtk-WARNING **: Theme parsing error: gtk.css:69:35: The style property GtkButton:child-displacement-y is deprecated and shouldn't be used anymore. It will be removed in a future version

(radiotray:11043): Gtk-WARNING **: Theme parsing error: gtk.css:73:46: The style property GtkScrolledWindow:scrollbars-within-bevel is deprecated and shouldn't be used anymore. It will be removed in a future version
/usr/lib/python2.7/site-packages/radiotray/XmlDataProvider.py:23: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk
cannot import name Gst
Traceback (most recent call last):
  File "/usr/bin/radiotray", line 15, in <module>
    radiotray_runner.main(sys.argv[1:])
  File "/usr/lib/python2.7/site-packages/radiotray/radiotray_runner.py", line 39, in main
    RadioTray()
  File "/usr/lib/python2.7/site-packages/radiotray/RadioTray.py", line 72, in __init__
    self.audio = AudioPlayerGStreamer(self.mediator, self.cfg_provider, eventManager)
  File "/usr/lib/python2.7/site-packages/radiotray/AudioPlayerGStreamer.py", line 55, in __init__
    self.souphttpsrc = Gst.ElementFactory.make("souphttpsrc", "source")
NameError: global name 'Gst' is not defined
alex@linux-f5ky:~>
Comment 3 Dominique Leuenberger 2017-01-18 16:59:05 UTC
is installing typelib-1_0-Gst-1_0 sufficient to solve the issue for you?
Comment 4 Bernhard Wiedemann 2017-01-18 17:00:38 UTC
This is an autogenerated message for OBS integration:
This bug (1017473) was mentioned in
https://build.opensuse.org/request/show/451230 42.2 / python-gst
Comment 5 Forgotten User 9yTPaETZeY 2017-01-18 17:06:43 UTC
(In reply to Dominique Leuenberger from comment #3)
> is installing typelib-1_0-Gst-1_0 sufficient to solve the issue for you?

Oh yeah ! The problem was solved =)
Comment 6 Dominique Leuenberger 2017-01-18 17:11:09 UTC
(In reply to Олександр Без from comment #5)
> (In reply to Dominique Leuenberger from comment #3)
> > is installing typelib-1_0-Gst-1_0 sufficient to solve the issue for you?
> 
> Oh yeah ! The problem was solved =)

Perfect - the fix is already on the way to Leap 42.2 - python-gst will ensure to pull this in as it needs it.

For Tumbleweed, where this bug originated from, this has been fixed a few days back.

Marking as FIXED
Comment 7 Bjørn Lie 2017-01-18 17:14:49 UTC
*** Bug 1011358 has been marked as a duplicate of this bug. ***
Comment 8 Forgotten User 9yTPaETZeY 2017-01-18 17:20:31 UTC
There is one more small problem. Radiotray is working but icon in the system tray looks like empty space, but menu is working. =(
Comment 9 Frank Krüger 2017-01-19 07:01:42 UTC
Unfortunately, installing typelib-1_0-Gst-1_0 does not solve the issue for me (openSUSE Leap 42.2 with KDE Plasma 5 LTS). In fact, the radiotray icon appears in the task bar, but cannot be opened:

(radiotray:2568): Gtk-WARNING **: Theme parsing error: gtk.css:68:35: The style property GtkButton:child-displacement-x is deprecated and shouldn't be used anymore. It will be removed in a future version

(radiotray:2568): Gtk-WARNING **: Theme parsing error: gtk.css:69:35: The style property GtkButton:child-displacement-y is deprecated and shouldn't be used anymore. It will be removed in a future version

(radiotray:2568): Gtk-WARNING **: Theme parsing error: gtk.css:73:46: The style property GtkScrolledWindow:scrollbars-within-bevel is deprecated and shouldn't be used anymore. It will be removed in a future version
/usr/lib/python2.7/site-packages/radiotray/XmlDataProvider.py:23: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk
/usr/lib/python2.7/site-packages/radiotray/AudioPlayerGStreamer.py:64: FutureWarning: The behavior of this method will change in future versions. Use specific 'len(elem)' or 'elem is not None' test instead.
  if(cfg_provider._settingExists("buffer_size")):
Sleep Timer, Stops playing after a predefined time, SleepTimerPlugin.py, Carlos Ribeiro
StationSwitcher, Allows cycling through stations, StationSwitcherPlugin.py, Mark F
HelloWorld, This is a test plugin, HelloWorld.py, Carlos Ribeiro
started
Notifications, Shows message notifications on the desktop, NotificationPlugin.py, Carlos Ribeiro
/usr/share/radiotray/plugins/NotificationPlugin.py:25: 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.
  from gi.repository import Notify
Mate Media Keys, Controls Radio Tray through keyboard multimedia keys, MateMediaKeysPlugin.py, Ken
Gnome Media Keys, Controls Radio Tray through keyboard multimedia keys, GnomeMediaKeysPlugin.py, Carlos Ribeiro
History, Shows song history, HistoryPlugin.py, Carlos Ribeiro
Comment 10 Forgotten User 9yTPaETZeY 2017-01-19 08:23:07 UTC
(In reply to Frank Kruger from comment #9)
> Unfortunately, installing typelib-1_0-Gst-1_0 does not solve the issue for
> me (openSUSE Leap 42.2 with KDE Plasma 5 LTS). In fact, the radiotray icon
> appears in the task bar, but cannot be opened:

Hi. To try change in /home/USERNAME/.local/share/radiotray/config.xml next option:

  <!-- valid options are 'appindicator', 'systray' and 'chooser' -->
  <option name="gui_engine" value="appindicator"/>

 "appindicator" to "systray" ^^^^^^^^^^^^^^^^^^
Comment 11 Frank Krüger 2017-01-19 21:52:02 UTC
(In reply to Олександр Без from comment #10)
> (In reply to Frank Kruger from comment #9)
> > Unfortunately, installing typelib-1_0-Gst-1_0 does not solve the issue for
> > me (openSUSE Leap 42.2 with KDE Plasma 5 LTS). In fact, the radiotray icon
> > appears in the task bar, but cannot be opened:
> 
> Hi. To try change in /home/USERNAME/.local/share/radiotray/config.xml next
> option:
> 
>   <!-- valid options are 'appindicator', 'systray' and 'chooser' -->
>   <option name="gui_engine" value="appindicator"/>
> 
>  "appindicator" to "systray" ^^^^^^^^^^^^^^^^^^

Thanks for your suggestion, but this does not work either on openSUSE Leap 42.2 (with Plasma KDE 5 LTS) and openSUSE Tumbleweed 20170118 (icon appears in the task bar, but cannot be opened). Any idea?
Comment 12 Forgotten User 9yTPaETZeY 2017-01-19 23:12:06 UTC
(In reply to Frank Kruger from comment #11)
> (In reply to Олександр Без from comment #10)
> > (In reply to Frank Kruger from comment #9)
> > > Unfortunately, installing typelib-1_0-Gst-1_0 does not solve the issue for
> > > me (openSUSE Leap 42.2 with KDE Plasma 5 LTS). In fact, the radiotray icon
> > > appears in the task bar, but cannot be opened:
> > 
> > Hi. To try change in /home/USERNAME/.local/share/radiotray/config.xml next
> > option:
> > 
> >   <!-- valid options are 'appindicator', 'systray' and 'chooser' -->
> >   <option name="gui_engine" value="appindicator"/>
> > 
> >  "appindicator" to "systray" ^^^^^^^^^^^^^^^^^^
> 
> Thanks for your suggestion, but this does not work either on openSUSE Leap
> 42.2 (with Plasma KDE 5 LTS) and openSUSE Tumbleweed 20170118 (icon appears
> in the task bar, but cannot be opened). Any idea?

Did you install next libs ? :
typelib-1_0-AppIndicator-0_1  (12.10.1)
typelib-1_0-AppIndicator3-0_1
python-appindicator
libappindicator3-1
libappindicator1 

If not yet, then install all them and try my previous suggestion.

On my openSUSE Leap 42.2 (with Plasma KDE 5 LTS) radiotray working !
Comment 13 Frank Krüger 2017-01-20 06:52:25 UTC
I installed the libs you have mentioned, i.e.,

typelib-1_0-AppIndicator-0_1  (12.10.1)
typelib-1_0-AppIndicator3-0_1
python-appindicator
libappindicator3-1
libappindicator1

and changed config.xml according to your suggestion. Radiotray is now working on openSUSE Leap 42.2 with KDE PLasma 5 LTS, but the icon in the taskbar disappeared. So it seems that the issue with radiotray is more involved.
Comment 14 Forgotten User 9yTPaETZeY 2017-01-20 07:42:33 UTC
(In reply to Frank Kruger from comment #13)
> I installed the libs you have mentioned, i.e.,
> 
> typelib-1_0-AppIndicator-0_1  (12.10.1)
> typelib-1_0-AppIndicator3-0_1
> python-appindicator
> libappindicator3-1
> libappindicator1
> 
> and changed config.xml according to your suggestion. Radiotray is now
> working on openSUSE Leap 42.2 with KDE PLasma 5 LTS, but the icon in the
> taskbar disappeared. So it seems that the issue with radiotray is more
> involved.

And now we have the same problem =( Look my comment #6 in this page.
Comment 15 Swamp Workflow Management 2017-01-28 13:09:29 UTC
openSUSE-RU-2017:0310-1: An update that has one recommended fix can now be installed.

Category: recommended (moderate)
Bug References: 1017473
CVE References: 
Sources used:
openSUSE Leap 42.2 (src):    python-gst-1.8.3-3.1, python3-gst-1.8.3-3.1
Comment 16 Frank Krüger 2017-04-11 19:52:02 UTC
(In reply to Олександр Без from comment #14)
> (In reply to Frank Kruger from comment #13)
> > I installed the libs you have mentioned, i.e.,
> > 
> > typelib-1_0-AppIndicator-0_1  (12.10.1)
> > typelib-1_0-AppIndicator3-0_1
> > python-appindicator
> > libappindicator3-1
> > libappindicator1
> > 
> > and changed config.xml according to your suggestion. Radiotray is now
> > working on openSUSE Leap 42.2 with KDE PLasma 5 LTS, but the icon in the
> > taskbar disappeared. So it seems that the issue with radiotray is more
> > involved.
> 
> And now we have the same problem =( Look my comment #6 in this page.

Is there any news regarding a possible solution? BTW, is radiotray still maintained? Thx.
Comment 17 Frank Krüger 2017-06-27 22:31:57 UTC
Radiotray 0.7.3 works pretty well with Leap 42.3 Build 0289, but with Tumbleweed snapshot 20170626 I get the error

gsturidecodebin.c(1394): gen_source_element (): /GstPlayBin:player/GstURIDecodeBin:uridecodebin5

Any idea? Thx.
Comment 18 Frank Krüger 2017-07-01 09:34:57 UTC
With openSUSE Tumbleweed 20170629 radiotray works as expected. So please feel free to close this bug.
Comment 19 Dominique Leuenberger 2017-07-01 11:13:01 UTC
(In reply to Frank Kruger from comment #18)
> With openSUSE Tumbleweed 20170629 radiotray works as expected. So please
> feel free to close this bug.