{"id":72,"date":"2013-04-30T17:19:17","date_gmt":"2013-04-30T14:19:17","guid":{"rendered":"http:\/\/mednis.info\/wp\/?p=72"},"modified":"2013-05-01T10:43:40","modified_gmt":"2013-05-01T07:43:40","slug":"gtk-import-segmentation-fault","status":"publish","type":"post","link":"http:\/\/mednis.info\/wp\/?p=72","title":{"rendered":"gtk import Segmentation fault"},"content":{"rendered":"<p>When I tried to run my program (<a href=\"http:\/\/biosystems.lv\/moderator2\/\" title=\"ModeRator - The Model Comparator\">ModeRator<\/a>) I get this error:<br \/>\n<code>\/usr\/lib64\/python2.7\/site-packages\/gobject\/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed<br \/>\n  import gobject._gobject<br \/>\n\/usr\/lib64\/python2.7\/site-packages\/gtk-2.0\/gtk\/__init__.py:40: Warning: specified class size for type `PyGtkGenericCellRenderer' is smaller than the parent type's `GtkCellRenderer' class size<br \/>\n  from gtk import _gtk<br \/>\n\/usr\/lib64\/python2.7\/site-packages\/gtk-2.0\/gtk\/__init__.py:40: Warning: g_type_get_qdata: assertion `node != NULL' failed<br \/>\n  from gtk import _gtk<br \/>\nSegmentation fault (core dumped)<br \/>\n<\/code><\/p>\n<p>I &#8216;fixed&#8217; the problem by disabling the import of matplotlib<\/p>\n<p>It turns out that it is possible to import only one of them:<br \/>\n<code>from gi.repository import GObject, Gtk<\/code><br \/>\n<strong>or<\/strong><br \/>\n<code>import matplotlib.pyplot as plt<\/code><\/p>\n<p>Comment out one of these lines end the error is gone!<br \/>\nBetter explanation of problems like this is found here: <a href=\"http:\/\/blog.rabbitvcs.org\/archives\/312\">http:\/\/blog.rabbitvcs.org\/archives\/312<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When I tried to run my program (ModeRator) I get this error: \/usr\/lib64\/python2.7\/site-packages\/gobject\/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0&#8242; failed import gobject._gobject \/usr\/lib64\/python2.7\/site-packages\/gtk-2.0\/gtk\/__init__.py:40: Warning: specified class size for type `PyGtkGenericCellRenderer&#8217; is smaller than the parent type&#8217;s `GtkCellRenderer&#8217; class size from gtk import _gtk \/usr\/lib64\/python2.7\/site-packages\/gtk-2.0\/gtk\/__init__.py:40: Warning: g_type_get_qdata: assertion `node != NULL&#8217; failed from gtk import &hellip; <a href=\"http:\/\/mednis.info\/wp\/?p=72\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">gtk import Segmentation fault<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[10,8,3],"tags":[],"_links":{"self":[{"href":"http:\/\/mednis.info\/wp\/index.php?rest_route=\/wp\/v2\/posts\/72"}],"collection":[{"href":"http:\/\/mednis.info\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/mednis.info\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/mednis.info\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/mednis.info\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=72"}],"version-history":[{"count":4,"href":"http:\/\/mednis.info\/wp\/index.php?rest_route=\/wp\/v2\/posts\/72\/revisions"}],"predecessor-version":[{"id":77,"href":"http:\/\/mednis.info\/wp\/index.php?rest_route=\/wp\/v2\/posts\/72\/revisions\/77"}],"wp:attachment":[{"href":"http:\/\/mednis.info\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=72"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/mednis.info\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=72"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/mednis.info\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=72"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}