After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 573103 - ldtpeditor could not find glade file 'ldtpeditor.glade'
ldtpeditor could not find glade file 'ldtpeditor.glade'
Status: RESOLVED FIXED
Product: LDTP
Classification: Other
Component: editor
1.5.0
Other All
: Normal blocker
: ---
Assigned To: Nagappan Alagappan
LDTP Development Mailing List
Depends on:
Blocks:
 
 
Reported: 2009-02-25 12:05 UTC by Sandro Millien
Modified: 2009-04-16 05:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fixes glade path (1.42 KB, patch)
2009-04-12 22:34 UTC, Nagappan Alagappan
committed Details | Review

Description Sandro Millien 2009-02-25 12:05:44 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:
Comment 1 Nagappan Alagappan 2009-02-25 23:32:25 UTC
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
Comment 2 Nagappan Alagappan 2009-02-25 23:34:07 UTC
Also could you please locate the file and update this bug, where this ldtpeditor.glade got installed ? are you trying from current source directory ?
Comment 3 Sandro Millien 2009-02-26 00:02:12 UTC
Ok, when I install with prefix=/usr it works.
Thanks.
Comment 4 Sandro Millien 2009-02-26 00:50:05 UTC
I have to say that my ste
Comment 5 Sandro Millien 2009-03-27 00:04:48 UTC
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 -----------------------------------------------
Comment 6 Nagappan Alagappan 2009-04-12 22:34:03 UTC
Created attachment 132574 [details] [review]
Fixes glade path
Comment 7 Nagappan Alagappan 2009-04-12 22:45:59 UTC
Thanks for the bug report, fix is in git.