Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
GTK segfault with GTK3 and mpl_toolkits#1813
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
This looks as if you do not have the development files for Gtk3 installed. Would you mind testing the attached patch? It should give you an error message to this effect. |
try: | ||
gi.require_version("Gtk", "3.0") | ||
except ValueError: | ||
raise ImportError("Gtk3 backend gtk3 development files to be installed.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Missing word: "requires".
Also, this has me puzzled, because I can run the gtk3agg backend on ubuntu Precise, but I don't have the libgtk-3-dev package installed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
It seems things are packaged somewhat differently on Debian/Ubuntu than on Fedora. I think on Ubuntu, the required package is: gir1.2-gtk3.0https://launchpad.net/ubuntu/precise/+package/gir1.2-gtk-3.0
Since we don't really know what distro the user will be using, I'm inclined to change this to:
"The Gtk3 backend requires that the GObject introspection bindings for Gtk 3 are installed."
That should give a user enough to Google something by.
GTK segfault with GTK3 and mpl_toolkits
GTK segfault with GTK3 and mpl_toolkits
Something goes wrong when using a GTK3 backend and the mpl_toolkits. See this very minimal testcase:
Most likely, something imports the old GTK2 bindings, run following for the same error:
Grepping the sourcecode gives mpl_toolkits/gtktools.py where it is used, but I can't even find where it is imported.