-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python{2,3}.pkgs.gobject3 with GTK3 - not found? #39637
Comments
Actually,
Seems to work. Why doesn't my first method? |
Duplicate of #39637? GObject bindings require some environments variables to be set (at least # matplotlib.nix
with import <nixpkgs> {};
let
matplotlib = python3.pkgs.matplotlib.override { enableGtk3 = true; };
in stdenv.mkDerivation rec {
name = "my-statistics-tools";
buildInputs = [
python
matplotlib # probably needs to be separate for environment variables to propagate correctly
];
shellHook = ''
MPLBACKEND=GTK3Cairo exec python
'';
} It segfaults for me, though. |
@jtojnar You tagged this issue as the duplicate by accident :) |
Right, I meant #25351 |
@jtojnar I have a similar issue of python segfaulting when I try to import Gtk from gi.repository.
Results in |
Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly:
|
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/python-matplotlib-gtk-backend-not-working/17419/5 |
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
Technical details
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste theresults.
"x86_64-linux"
Linux 4.13.0-38-generic, Ubuntu, 16.04.4 LTS (Xenial Xerus)
no
no
nix-env (Nix) 2.0
"nixpkgs-18.03pre126020.931a0b8be80"
""
/etc/nixpkgs
^ have also run on the latest 18.03
The text was updated successfully, but these errors were encountered: