Gourmet crashes

  • Done
  • quality assurance status badge
Details
3 participants
  • Caleb Herbert
  • Ludovic Courtès
  • Mark Meyer
Owner
unassigned
Submitted by
Caleb Herbert
Severity
normal
C
C
Caleb Herbert wrote on 9 Nov 2017 17:18
(address . bug-guix@gnu.org)
1510244334.3024.28.camel@leela
Gourmet crashed.

Description: Trisquel GNU/Linux 7.0, Belenos
guix (GNU Guix) bb27eb0dbfa27d4aeb7525ee5ef70f624506af0b
/gnu/store/d0gp66bh3d7bqci8psgr8w6vpsw9hg8a-profile/bin/gourmet

Log:

Script started on Wed 08 Nov 2017 02:21:42 AM CST
cal@leela:~/Desktop$ which gourmet
/gnu/store/d0gp66bh3d7bqci8psgr8w6vpsw9hg8a-profile/bin/gourmet
cal@leela:~/Desktop$ gourmet
** (process:12494): WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags'
** (process:12494): WARNING **: Trying to register gtype 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'
** (process:12494): WARNING **: Trying to register gtype 'GSocketMsgFlags' as enum when in fact it is of type 'GFlags'
(.gourmet-real:12494): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine",
(.gourmet-real:12494): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine",
(.gourmet-real:12494): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine",
(.gourmet-real:12494): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine",
(.gourmet-real:12494): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine",
(.gourmet-real:12494): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine",
(.gourmet-real:12494): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine",
(.gourmet-real:12494): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine",
(.gourmet-real:12494): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine",
(.gourmet-real:12494): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine",
(.gourmet-real:12494): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine",
(.gourmet-real:12494): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine",
(.gourmet-real:12494): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine",
(.gourmet-real:12494): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine",
(.gourmet-real:12494): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine",
(.gourmet-real:12494): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine",
(.gourmet-real:12494): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine",
(.gourmet-real:12494): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine",
(.gourmet-real:12494): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine",
(.gourmet-real:12494): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine",
(.gourmet-real:12494): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine",
(.gourmet-real:12494): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine",
Traceback (most recent call last):
File "/gnu/store/mfnwbma7cp23dcjxhq2h246ka964082g-gourmet-0.17.4/bin/.gourmet-real", line 16, in <module>
from gourmet import GourmetRecipeManager
File "/gnu/store/mfnwbma7cp23dcjxhq2h246ka964082g-gourmet-0.17.4/lib/python2.7/site-packages/gourmet/__init__.py", line 5, in <module>
import gglobals
File "/gnu/store/mfnwbma7cp23dcjxhq2h246ka964082g-gourmet-0.17.4/lib/python2.7/site-packages/gourmet/gglobals.py", line 174, in <module>
add_icon(os.path.join(imagedir,filename),stock_id,label,modifier,keyval)
File "/gnu/store/mfnwbma7cp23dcjxhq2h246ka964082g-gourmet-0.17.4/lib/python2.7/site-packages/gourmet/gglobals.py", line 159, in add_icon
pb = gtk.gdk.pixbuf_new_from_file(file_name)
glib.GError: Failed to open file 'gnu/store/mfnwbma7cp23dcjxhq2h246ka964082g-gourmet-0.17.4/share/gourmet/images/AddToShoppingList.png': No such file or directory
cal@leela:~/Desktop$ exit
exit
Script done on Wed 08 Nov 2017 02:21:56 AM CST

I don't know what other information I could collect that would be
helpful, but if there is, I'll report it.

--
Caleb Herbert
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAABAgAGBQJaBH/uAAoJECtRKJ3bAGX5HFwQAIXe+eWprTcftgPhuWvAmMXS
fYx7K/CC5LTqhnF1ru+mDpnqwIJrjPfKkBLpxWVtWr5hwOPGK6A6+OFCw0qY5Cjt
lvGRiQhSzk3Xtw7RHGUhMjtqEA0EzuNSfuzIaj2b/d17CweNsZatJv2ffdk+Dnzp
iFhgmfJPg1uUJPU+rBT/aZqqtaEKtBU2q2nCsvgoaSs5dQeTnp73qaXmwHqJrEcT
G1t/U8ZQG9ZRrCMDfW5XucB2qQ33AauXbaE1kEHlB94Vz5QRS6tQe/fnoxRTuabk
r1NLLwkb1aKZ51avq0fElrm5n/4QNJnUIPUr4XRzdBIZpXcrbenG4MbaSMenlDzq
8XwiU4hcCexg4KZp6gR15a0Egit5XoONtjpmhVinisTLkjzlOp9fV8JYfLKP415R
qM9G02wQraNlGldGzxOcPW2BFWnEtzmpB7L2jSyWIJbmUc9/bHxbbu9VeNQdWAy8
Dc648Z/AEloY3wiRQ+IV6mY730r6M7XHpVqzXJCV9xXYrz4x8JGMkMuy50GNaqLD
RkA6Kg+NnYQ/nwHjWi2fbeEhPfqw9od/fIlhIjd6Vltjl8NBWBxWPNX6mI16hNMj
ZZ9YEFkz9bPefsQCZaNFmggRpSNLWAWwbbZGiOHhCqngg481LdgN6nJMvBuKZEIX
hGM+UZUL64R1gynkrhjt
=UILj
-----END PGP SIGNATURE-----


M
M
Mark Meyer wrote on 17 Dec 2017 14:15
Broken installation
(address . 29227@debbugs.gnu.org)
1513516555.3671317.1207764784.13449F62@webmail.messagingengine.com
Hi,
does the following patch resolve the issue for you? This does two
things:

- fix up the install phase to set the correct paths in settings.py
- add python-lxml as an input to fix another plugin

There is one remaining problem:

ImportError: No module named BeautifulSoup
WARNING: Failed to load plugin web_import_plugin

So this particular plugin won't work. I didn't look deeply into this,
but I think this is due to referencing a very old version of
beautifulsoup, which is not currently packages, the current
BeautifulSoup4 version uses 'bs4' as a module path, while the import
states

import BeatifulSoup

So, I'd rather skip that plugin for now.

Cheers, Mark

--
Mark Meyer
mark@ofosos.org
M
M
Mark Meyer wrote on 17 Dec 2017 14:17
(address . 29227@debbugs.gnu.org)
1513516641.3672010.1207765576.23574AE5@webmail.messagingengine.com
This is the patch attached.

On Sun, Dec 17, 2017, at 14:15, Mark Meyer wrote:
Toggle quote (29 lines)
> Hi,
> does the following patch resolve the issue for you? This does two
> things:
>
> - fix up the install phase to set the correct paths in settings.py
> - add python-lxml as an input to fix another plugin
>
> There is one remaining problem:
>
> ImportError: No module named BeautifulSoup
> WARNING: Failed to load plugin web_import_plugin
>
> So this particular plugin won't work. I didn't look deeply into this,
> but I think this is due to referencing a very old version of
> beautifulsoup, which is not currently packages, the current
> BeautifulSoup4 version uses 'bs4' as a module path, while the import
> states
>
> import BeatifulSoup
>
> So, I'd rather skip that plugin for now.
>
> Cheers, Mark
>
> --
> Mark Meyer
> mark@ofosos.org


--
Mark Meyer
mark@ofosos.org
From 3ffb47334201539e66eaf9cba6bd54ed2330e9ee Mon Sep 17 00:00:00 2001
From: Mark Meyer <mark@ofosos.org>
Date: Sun, 17 Dec 2017 14:08:17 +0100
Subject: [PATCH] gnu: gourmet: Fix runtime failure and enhance plugin.

* gnu/packages/nutrition.scm (gourmet)[inputs]: Add python-lxml.
[arguments]: Custom install phase.
---
gnu/packages/nutrition.scm | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

Toggle diff (26 lines)
diff --git a/gnu/packages/nutrition.scm b/gnu/packages/nutrition.scm
index 90019f848..0e03253cf 100644
--- a/gnu/packages/nutrition.scm
+++ b/gnu/packages/nutrition.scm
@@ -52,11 +52,18 @@
(inputs
`(("pygtk" ,python2-pygtk)
("sqlalchemy" ,python2-sqlalchemy)
+ ("python-lxml" ,python2-lxml)
("python-pillow" ,python2-pillow)
("elib.intl" ,python2-elib.intl)))
(arguments
`(#:python ,python-2 ;exception and print syntax
- #:tests? #f)) ;tests look bitrotted
+ #:tests? #f ;tests look bitrotted
+ #:phases
+ (modify-phases %standard-phases
+ (replace 'install
+ (lambda* (#:key make-flags #:allow-other-keys)
+ (zero? (system* "python" "setup.py" "install" "--prefix"
+ (assoc-ref %outputs "out"))))))))
(home-page "http://thinkle.github.io/gourmet/")
(synopsis "Recipe organizer")
(description
--
2.15.1
L
L
Ludovic Courtès wrote on 17 Dec 2017 17:25
Re: [bug#29755] [PATCH] Fix gourmet
(name . Mark Meyer)(address . mark@ofosos.org)
87bmixb9u9.fsf@gnu.org
Hi Mark,

Mark Meyer <mark@ofosos.org> skribis:

Toggle quote (11 lines)
> This patch introduces a custom install phase for the gourmet variable,
> because the combination of --root=/ and --prefix=/gnu/store/... will
> lead to the generated paths in settings.py ending up with no preceding
> slash. This means that the base dir in setting py is set to
> 'gnu/store/...gourmet...' instead of '/gnu/store/...gourmet...'.
>
> This also adds another input to enable a plugin.
>
> This is in response to guix #29227 and should fix the crash that is
> observed.

[...]

Toggle quote (8 lines)
> From 3ffb47334201539e66eaf9cba6bd54ed2330e9ee Mon Sep 17 00:00:00 2001
> From: Mark Meyer <mark@ofosos.org>
> Date: Sun, 17 Dec 2017 14:08:17 +0100
> Subject: [PATCH] gnu: gourmet: Fix runtime failure and enhance plugin.
>
> * gnu/packages/nutrition.scm (gourmet)[inputs]: Add python-lxml.
> [arguments]: Custom install phase.

Awesome, I added “Fixes” and “Reported by” lines to the commit log and
pushed as 217f704c6aa6a95caea0ebb7a252b8b2f1d78860.

Thanks!

Ludo’.
Closed
?