Bug 11086 - nagstamon fails to start - missing $HOME/resources/nagstamon.svg
Summary: nagstamon fails to start - missing $HOME/resources/nagstamon.svg
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 3
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA3-32-OK MGA3-64-OK
Keywords: Triaged, validated_update
Depends on:
Blocks:
 
Reported: 2013-08-27 11:57 CEST by claire robinson
Modified: 2014-05-08 18:04 CEST (History)
4 users (show)

See Also:
Source RPM: nagstamon
CVE:
Status comment:


Attachments
strace.txt (786.49 KB, text/plain)
2013-08-27 11:59 CEST, claire robinson
Details

Description claire robinson 2013-08-27 11:57:04 CEST
Please see the update for nagstamon in bug 10779

It worked without error on an x86_64 system upgraded from mga2 to 3, if that has any relevance, but failed on an i586 installed with mga3.

For others it fails x86_64 in the same way.


$ nagstamon

No module named egg.trayicon

Could not load egg.trayicon, so you cannot put nagstamon statusbar into systray.

Traceback (most recent call last):
  File "/usr/bin/nagstamon", line 88, in <module>
    output = GUI.GUI(conf=conf, servers=servers, Resources=Resources, debug_queue=debug_queue, GUILock=GUILock)
  File "/usr/lib/python2.7/site-packages/Nagstamon/GUI.py", line 115, in __init__
    self._CreateOutputVisuals()
  File "/usr/lib/python2.7/site-packages/Nagstamon/GUI.py", line 192, in _CreateOutputVisuals
    gtk.window_set_default_icon_from_file(self.Resources + os.sep + "nagstamon" + self.BitmapSuffix)
glib.GError: Failed to open file '/home/claire/resources/nagstamon.svg': No such file or directory


The svg is actually at /usr/lib/python2.7/site-packages/Nagstamon/resources/nagstamon.svg




Reproducible: 

Steps to Reproduce:
Comment 1 claire robinson 2013-08-27 11:59:12 CEST
Created attachment 4288 [details]
strace.txt

strace output.
Manuel Hiebel 2013-08-27 19:11:31 CEST

Keywords: (none) => Triaged
Assignee: bugsquad => guillomovitch

Comment 2 Guillaume Rousse 2013-09-01 17:14:20 CEST
> $ nagstamon
> 
> No module named egg.trayicon
> 
> Could not load egg.trayicon, so you cannot put nagstamon statusbar into
> systray.
That's just a warning, and unrelated to other error. Fixing it would require installing gnome-python-extras, which would introduce an unwanted gnome dependency. I'm not sure this is worth the result.

>     gtk.window_set_default_icon_from_file(self.Resources + os.sep +
> "nagstamon" + self.BitmapSuffix)
> glib.GError: Failed to open file '/home/claire/resources/nagstamon.svg': No
> such file or directory
This is the actual issue, due to a missing dependency on python-pkg-resources. The fact than this package is itself needed for rpm-mageia-setup-build, needed to build any package, masked the issue sofar for me.

I just submitted nagstamon-0.9.9-1.3.mga3 in updates_testing.

Status: NEW => ASSIGNED

Comment 3 David Walser 2013-09-01 17:34:18 CEST
Thanks Guillaume!  Assigning to QA.

Feel free to reword the advisory if you don't like mine :o)

Advisory:
----------------------------------------

This fixes an issue with nagstamon where it wasn't able to load a needed image
file if another required package was not installed.

----------------------------------------
Updated packages in core/updates_testing:
----------------------------------------
nagstamon-0.9.9-1.3.mga3

from nagstamon-0.9.9-1.3.mga3.src.rpm

CC: (none) => guillomovitch
Assignee: guillomovitch => qa-bugs

Comment 4 martyn vidler 2013-09-06 22:14:38 CEST
MGA3 32 bit 

 sudo urpmi nagstamon
[sudo] password for spiky: 


    $MIRRORLIST: media/core/updates_testing/nagstamon-0.9.9-1.2.mga3.noarch.rpm
installing nagstamon-0.9.9-1.2.mga3.noarch.rpm from /var/cache/urpmi/rpms      
Preparing...                     #############################################
      1/1: nagstamon             #############################################



20:56:29:spiky@Mag-3-testing:~$ nagstamon

No image in icon, Application wont launch with terminal.

No module named egg.trayicon

Could not load egg.trayicon, so you cannot put nagstamon statusbar into systray.

Traceback (most recent call last):
  File "/usr/bin/nagstamon", line 88, in <module>
    output = GUI.GUI(conf=conf, servers=servers, Resources=Resources, debug_queue=debug_queue, GUILock=GUILock)
  File "/usr/lib/python2.7/site-packages/Nagstamon/GUI.py", line 115, in __init__
    self._CreateOutputVisuals()
  File "/usr/lib/python2.7/site-packages/Nagstamon/GUI.py", line 192, in _CreateOutputVisuals
    gtk.window_set_default_icon_from_file(self.Resources + os.sep + "nagstamon" + self.BitmapSuffix)
glib.GError: Failed to open file '/home/spiky/resources/nagstamon.svg': No such file or directory



sudo urpmi nagstamon
[sudo] password for spiky: 
To satisfy dependencies, the following packages are going to be installed:
  Package                        Version      Release       Arch    
(medium "Core Release (distrib1)")
  python-pkg-resources           0.6.28       6.mga3        noarch  
(medium "Core Updates Testing (distrib5)")
  nagstamon                      0.9.9        1.3.mga3      noarch  
1.4MB of additional disk space will be used.
355KB of packages will be retrieved.
Proceed with the installation of the 2 packages? (Y/n) y


    rsync://www.mirrorservice.org/mageia.org/pub/mageia/distrib/3/i586/media/core/release/python-pkg-resources-0.6.28-6.mga3.noarch.rpm
    rsync://www.mirrorservice.org/mageia.org/pub/mageia/distrib/3/i586/media/core/updates_testing/nagstamon-0.9.9-1.3.mga3.noarch.rpm
installing nagstamon-0.9.9-1.3.mga3.noarch.rpm python-pkg-resources-0.6.28-6.mga3.noarch.rpm from /var/cache/urpmi/rpms
Preparing...                     ############################################
      1/2: python-pkg-resources  ############################################
      2/2: nagstamon 

There is no icon image on applications just a blank square with nagstamon underneath, When started from the icon or terminal it launches ok and shows small icon with error, I have not connected to anything, (maybe that is why showing error). As far as I can tell it is working correctly.

CC: (none) => martynvidler

martyn vidler 2013-09-06 22:15:04 CEST

Whiteboard: (none) => MGA-3-32-OK

martyn vidler 2013-09-06 22:29:56 CEST

Whiteboard: MGA-3-32-OK => MGA3-32-OK

Comment 5 martyn vidler 2013-09-06 22:47:19 CEST
I just tried from terminal again, it reports 

No module named egg.trayicon

Could not load egg.trayicon, so you cannot put nagstamon statusbar into systray

missed this the 1st time.
Comment 6 martyn vidler 2013-09-06 22:49:20 CEST
MGA3 64


Ran  same tests as comment 4

old version didn't launch

installed new version it ran as above also with 

No module named egg.trayicon

Could not load egg.trayicon, so you cannot put nagstamon statusbar into systray

Whiteboard: MGA3-32-OK => (none)

Comment 7 Guillaume Rousse 2013-09-07 14:49:18 CEST
As already stated in comment #2, this is just a minor warning. Feel free to install gnome-python-extras if you want don't care about the additional dependencies just to get rid of it.

BTW, urpmi output doesn't have any interest here.
martyn vidler 2013-09-07 17:33:57 CEST

Whiteboard: (none) => MGA3-32-OK MGA3-64-OK

Comment 8 martyn vidler 2013-09-07 17:36:37 CEST
Validating.

Could sysadmin please push from core/updates_testing to updates.


Thank You
Comment 9 Dave Hodgins 2013-09-08 00:37:04 CEST
Advisory 11086.adv committed to svn.

Someone from the sysadmin team please push 11086.adv to updates.

Keywords: (none) => validated_update
CC: (none) => davidwhodgins, sysadmin-bugs

Comment 10 Nicolas Vigier 2013-09-13 22:19:15 CEST
http://advisories.mageia.org/MGAA-2013-0101.html

Status: ASSIGNED => RESOLVED
CC: (none) => boklm
Resolution: (none) => FIXED

Nicolas Vigier 2014-05-08 18:04:19 CEST

CC: boklm => (none)


Note You need to log in before you can comment on or make changes to this bug.