-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
Open
Labels
2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.mdhttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: pythonPython is a high-level, general-purpose programming language.Python is a high-level, general-purpose programming language.
Description
Issue description
Matplotlib with the GTK3 backend doesn't seem to be working. However, I am not actually sure how this feature is intended to be used.
Steps to reproduce
# matplotlib.nix
with import <nixpkgs> {};
# (python3.withPackages (pkgs: with pkgs; [ (matplotlib.override { enableGtk3 = true; }) ])).env
(python2.withPackages (pkgs: with pkgs; [ (matplotlib.override { enableGtk3 = true; }) ])).env
$ nix-shell matplotlib.nix
[nix-shell:~/tmp]$ MPLBACKEND=GTK3Cairo python
Python 2.7.14 (default, Sep 16 2017, 17:49:51)
[GCC 6.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from matplotlib import pyplot as plt
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/nix/store/v90d6zrgljzvjvibm97ssm9pm0ha8bin-python-2.7.14-env/lib/python2.7/site-packages/matplotlib/pyplot.py", line 115, in <module>
_backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
File "/nix/store/v90d6zrgljzvjvibm97ssm9pm0ha8bin-python-2.7.14-env/lib/python2.7/site-packages/matplotlib/backends/__init__.py", line 32, in pylab_setup
globals(),locals(),[backend_name],0)
File "/nix/store/v90d6zrgljzvjvibm97ssm9pm0ha8bin-python-2.7.14-env/lib/python2.7/site-packages/matplotlib/backends/backend_gtk3cairo.py", line 6, in <module>
from . import backend_gtk3
File "/nix/store/v90d6zrgljzvjvibm97ssm9pm0ha8bin-python-2.7.14-env/lib/python2.7/site-packages/matplotlib/backends/backend_gtk3.py", line 21, in <module>
"Gtk3 backend requires the GObject introspection bindings for Gtk 3 "
ImportError: Gtk3 backend requires the GObject introspection bindings for Gtk 3 to be installed.
>>>Technical details
Please run nix-shell -p nix-info --run "nix-info -m" and paste the
results.
- system:
"x86_64-linux" - host os:
Linux 4.13.0-38-generic, Ubuntu, 16.04.4 LTS (Xenial Xerus) - multi-user?:
no - sandbox:
no - version:
nix-env (Nix) 2.0 - channels(gil2a4):
"nixpkgs-18.03pre126020.931a0b8be80" - channels(root):
"" - nixpkgs:
/etc/nixpkgs
^ have also run on the latest 18.03
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.mdhttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: pythonPython is a high-level, general-purpose programming language.Python is a high-level, general-purpose programming language.