gcommit is broken

Bug #68127 reported by Alexander Belchenko
2
Affects Status Importance Assigned to Milestone
Bazaar GTK+ Frontends
Fix Released
Undecided
Szilveszter Farkas

Bug Description

$ bzr gcommit
Glade file cannot be found.
bzr: ERROR: exceptions.SystemExit: 1

Traceback (most recent call last):
  File "D:\Bazaar\sandbox\bzr.dev\bzrlib\commands.py", line 623, in run_bzr_catch_errors
    return run_bzr(argv)
  File "D:\Bazaar\sandbox\bzr.dev\bzrlib\commands.py", line 585, in run_bzr
    ret = run(*run_argv)
  File "D:\Bazaar\sandbox\bzr.dev\bzrlib\commands.py", line 291, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "D:\Bazaar\plugins.work\gtk\__init__.py", line 211, in run
    from olive.commit import CommitDialog
  File "D:\Bazaar\plugins.work\gtk\olive\__init__.py", line 54, in ?
    sys.exit(1)
SystemExit: 1

Revision history for this message
Szilveszter Farkas (phanatic) wrote :

I wouldn't consider this as a bug. Where is olive.glade located? Have you installed bzr-gtk to the default location, or somewhere else?

Changed in bzr-gtk:
status: Unconfirmed → Needs Info
Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 68127] Re: gcommit is broken

Szilveszter Farkas пишет:
> I wouldn't consider this as a bug. Where is olive.glade located? Have
> you installed bzr-gtk to the default location, or somewhere else?

More about this bug: I checkout bzr-gtk sources to plugins directory
with name gtk.

I completely don't like idea of installing bzr-grk+olive. Because I
working on and having to reinstall after each change is irritate me.
So my personal efforts is to make olive able to work without installing.

Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 68127] gcommit is broken
Revision history for this message
Szilveszter Farkas (phanatic) wrote :

Thanks for the fixes. I've merged your changes into my integration branch.

Changed in bzr-gtk:
assignee: nobody → phanatic
status: Needs Info → Fix Committed
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

On Wed, 2006-10-25 at 09:06 +0000, bialix wrote:
> Fix available in my branch:
> https://launchpad.net/people/bialix/+branch/bzr-gtk/win32
Is there any chance you can make this fix available separately? I'd like to merge your fixes for gcommit, but without merging your unicode fixes.

Jelmer

--
Jelmer Vernooij <email address hidden> - http://samba.org/~jelmer/

Revision history for this message
Alexander Belchenko (bialix) wrote :
Download full text (21.9 KiB)

Jelmer Vernooij пишет:
> On Wed, 2006-10-25 at 09:06 +0000, bialix wrote:
>> Fix available in my branch:
>> https://launchpad.net/people/bialix/+branch/bzr-gtk/win32
> Is there any chance you can make this fix available separately? I'd like to merge your fixes for gcommit, but without merging your unicode fixes.

Here is cherrypicked patch.

=== added file 'olive/guifiles.py'
--- olive/guifiles.py 1970-01-01 00:00:00 +0000
+++ olive/guifiles.py 2006-11-02 13:06:16 +0000
@@ -0,0 +1,54 @@
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+"""Glade file name"""
+
+import os
+import sys
+
+
+# Get the glade file name
+if sys.platform == 'win32':
+ GLADEFILENAME = os.path.join(os.path.dirname(sys.executable),
+ "share/olive/olive.glade")
+else:
+ GLADEFILENAME = "/usr/share/olive/olive.glade"
+
+if not os.path.isfile(GLADEFILENAME):
+ # Load from sources directory if not installed
+ dir_ = os.path.split(os.path.dirname(__file__))[0]
+ GLADEFILENAME = os.path.join(dir_, "olive.glade")
+ # Check again
+ if not os.path.isfile(GLADEFILENAME):
+ # Fail
+ print _('Glade file cannot be found.')
+ sys.exit(1)
+
+# Get the cmenu.ui file name
+if sys.platform == 'win32':
+ UIFILENAME = os.path.dirname(sys.executable) + "/share/olive/cmenu.ui"
+else:
+ UIFILENAME = "/usr/share/olive/cmenu.ui"
+
+if not os.path.isfile(UIFILENAME):
+ # Load from current directory if not installed
+ dir_ = os.path.split(os.path.dirname(__file__))[0]
+ UIFILENAME = os.path.join(dir_, "cmenu.ui")
+ # Check again
+ if not os.path.isfile(UIFILENAME):
+ # Fail
+ print _('UI description file cannot be found.')
+ sys.exit(1)
+
+

=== modified file '__init__.py'
--- __init__.py 2006-10-08 20:51:52 +0000
+++ __init__.py 2006-11-02 13:07:43 +0000
@@ -71,7 +71,7 @@
             tree1 = wt
             tree2 = tree1.basis_tree()

- from bzrlib.plugins.gtk.viz.diffwin import DiffWindow
+ from viz.diffwin import DiffWindow
         import gtk
         window = DiffWindow()
         window.connect("destroy", lambda w: gtk.main_quit())
@@ -210,14 +210,31 @@

         from olive.commit import CommitDialog
         from bzrlib.commit import Commit
- from bzrlib.errors import (BzrCommandError, PointlessCommit, ConflictsInTree,
- StrictCommitFailed)
-
- (wt, path) = WorkingTree.open_containing(filename)
-
- ...

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 68127] Re: gcommit is broken

Was fixed in 0.12.0

  status fixreleased
--
Jelmer Vernooij <email address hidden> - http://samba.org/~jelmer/

Changed in bzr-gtk:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.