GNOME Bugzilla – Bug 573103
ldtpeditor could not find glade file 'ldtpeditor.glade'
Last modified: 2009-04-16 05:25:45 UTC
Please describe the problem: After installing ldpt 1.5.0 (from git repository), I ran command : ldtpeditor. It resulted in the following error: ~$ ldtpeditor (ldtpeditor:8107): libglade-WARNING **: could not find glade file '/usr/share/local/ldtp/glade/ldtpeditor.glade' Glade file not found Steps to reproduce: 1. run command : ldtpeditor 2. Observe error Actual results: Application do not start and throw following exception: (ldtpeditor:8107): libglade-WARNING **: could not find glade file '/usr/share/local/ldtp/glade/ldtpeditor.glade' Glade file not found Expected results: ldtpeditor's GUI to appear. Does this happen every time? yes Other information:
Sandro, Usually I install ./configure --prefix=/usr;make;sudo make install and haven't noticed this. For now, can you please uninstall existing installation and try this ? Thanks
Also could you please locate the file and update this bug, where this ldtpeditor.glade got installed ? are you trying from current source directory ?
Ok, when I install with prefix=/usr it works. Thanks.
I have to say that my ste
It is because LDTP use hardcoded paths in file ldtpeditor. So when I install whith prefix=/opt , failure happens. --- file ldtpeditor : line 98-104 -------------------------------------------- class LdtpEditorGui (gnome.Program): def __init__ (self): """ In this init we are going to display the main serverinfo window """ gnome.Program.__init__ (self) ldtpEditorApp = gnome.program_init ('LDTP Editor', '1.0.0') gladeFileName = "ldtpeditor.glade" self.gladeFilePath = './' + gladeFileName if os.path.exists (gladeFileName): self.gladeFilePath = sys.path [0] + '/' + gladeFileName else: self.gladeFilePath = '/usr/share/ldtp/glade/' + gladeFileName if os.path.exists (self.gladeFilePath) is False: self.gladeFilePath = '/usr/share/local/ldtp/glade/' + gladeFileName self.wTree = gtk.glade.XML (self.gladeFilePath) --- file ldtpeditor -----------------------------------------------
Created attachment 132574 [details] [review] Fixes glade path
Thanks for the bug report, fix is in git.