Re: [Bug 524665] Unable to import 'main' on startup



Updated the bug and stable branch with a patch that fixes all Python
path-related complaints and problems.

What about for Sudoku? Make sense to sync defaults.py.in?

On Wed, May 28, 2008 at 9:22 PM, Robert Ancell <robert ancell gmail com> wrote:
> Can someone have a look at this? I'm not sure how the installed_mode
> is supposed to work (glchess.in.in/defaults.py.in) but it appears not
> to be working in Ubuntu. Debian has patched their version. I can't see
> any changes from 2.22.1 that I've made that should have stopped things
> working.
>
>
> ---------- Forwarded message ----------
> From: gnome-games (bugzilla.gnome.org) <bugzilla-daemon bugzilla gnome org>
> Date: 2008/5/29
> Subject: [Bug 524665] Unable to import 'main' on startup
> To: robert ancell gmail com
>
>
> If you have any questions why you received this email, please see the text at
> the end of this email. Replies to this email are NOT read, please see the text
> at the end of this email. You can add comments to this bug at:
>  http://bugzilla.gnome.org/show_bug.cgi?id=524665
>
>  gnome-games | glchess | Ver: 2.22.x
>
> Josselin Mouette changed:
>
>          What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                CC|                            |joss malsain org
>
>
>
>
> ------- Comment #61 from Josselin Mouette  2008-05-28 23:51 UTC -------
> The cure introduced in r7608 is worse than the disease. Now the defaults are
> always taken from the build directory, not the installation directory. It does
> not even start up anymore:
>
> (glchess:12668): libglade-WARNING **: could not find glade file
> '/scratch/build-area/gnome-games-2.22.2/glchess/glade/glchess.glade'
> Traceback (most recent call last):
>  File "/usr/games/glchess", line 58, in <module>
>   start_game()
>  File "/var/lib/python-support/python2.5/glchess/glchess.py", line 21, in
> start_game
>   app = main.Application()
>  File "/var/lib/python-support/python2.5/glchess/main.py", line 441, in
> __init__
>   self.ui = UI(self)
>  File "/var/lib/python-support/python2.5/glchess/main.py", line 328, in
> __init__
>   self.controller = gtkui.GtkUI(self)
>  File "/var/lib/python-support/python2.5/glchess/gtkui/gtkui.py", line 221, in
> __init__
>   self._gui = loadGladeFile('glchess.glade')
>  File "/var/lib/python-support/python2.5/glchess/gtkui/gtkui.py", line 46, in
> loadGladeFile
>   return gtk.glade.XML(os.path.join(GLADE_DIR, name), root, domain = DOMAIN)
> RuntimeError: could not create GladeXML object
>
> Actually, there is no reason at all to reference the build directory in the
> installed files, especially in so fragile code paths.
>
>
> --
> See http://bugzilla.gnome.org/page.cgi?id=email.html for more info
> about why you received
> this email, why you can't respond via email, how to stop receiving
> emails (or reduce the number you receive), and how to contact someone
> if you are having problems with the system.
>
> You can add comments to this bug at
> http://bugzilla.gnome.org/show_bug.cgi?id=524665.
> _______________________________________________
> Games-list mailing list
> Games-list gnome org
> http://mail.gnome.org/mailman/listinfo/games-list
>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]