From: ludo@gnu.org (Ludovic Courtès)
To: Federico Beffa <beffa@ieee.org>
Cc: Guix-devel <guix-devel@gnu.org>
Subject: Re: matplotlib broken
Date: Tue, 16 Jun 2015 13:50:28 +0200 [thread overview]
Message-ID: <87r3pbvpmj.fsf@gnu.org> (raw)
In-Reply-To: <CAKrPhPMQTdHRnBo8eUPdvkGgrr5cV0cMBVOfn0i-evC1BqiZ4A@mail.gmail.com> (Federico Beffa's message of "Tue, 16 Jun 2015 08:51:08 +0200")
Federico Beffa <beffa@ieee.org> skribis:
> ludo@gnu.org (Ludovic Courtès) writes:
>
>> I don’t know if I’m missing something, but when I type ‘matplotlib’ at
>> the prompt, I get:
>>
>> /gnu/store/g4m8q73cq4lym3v1ag7pnk5zv49mdifs-python-matplotlib-1.4.2/lib/python3.4/site-packages/matplotlib-1.4.2-py3.4-linux-x86_64.egg/matplotlib/backends/backend_gtk3.py in <module>()
>> 19 except ValueError:
>> 20 raise ImportError(
>> ---> 21 "Gtk3 backend requires the GObject introspection bindings for Gtk 3 "
>> 22 "to be installed.")
>> 23
>>
>> ImportError: Gtk3 backend requires the GObject introspection bindings for Gtk 3 to be installed.
>>
>> This may well be related to <http://bugs.gnu.org/20765>: Because Guix
>> has incomplete dependency information, it might GC some of the things
>> that these eggs refer to, and so things may or may not work depending on
>> whether they have been GC’d.
>
> To solve this error I think you need to set
> export GI_TYPELIB_PATH="$HOME/.guix-profile/lib/girepository-1.0"
> We should probably add a search path specification for that.
Oh right. It’s actually in gobject-introspection, which makes sense but
is inconvenient in this case. Not sure how to handle it.
> For me it does display a window as expected, but it doesn't show the
> curve (line in this case).
Indeed, in:
guix environment --pure --ad-hoc gobject-introspection pango gtk+ python-ipython -E ipython
I get the behavior you describe, and the console shows alarming
warnings like:
TypeError: Couldn't find foreign struct converter for 'cairo.Context'
which explains the blank page, I guess. If Python’s FFI uses GIR files,
then that’s probably because it couldn’t find Cairo’s GIR files in
$GI_TYPELIB_PATH?
My 2¢,
Ludo’.
next prev parent reply other threads:[~2015-06-16 11:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-09 16:01 matplotlib broken Federico Beffa
2015-06-15 20:49 ` Ludovic Courtès
2015-06-16 6:51 ` Federico Beffa
2015-06-16 11:50 ` Ludovic Courtès [this message]
2015-06-16 16:36 ` Federico Beffa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r3pbvpmj.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=beffa@ieee.org \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.