Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Labellioで作った分類器を自前のubuntuで動かそうとした時に出たエラーと解決策 ref:
Gdk-CRITICAL **: gdk_cursor_new_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
Traceback (most recent call last):
File "", line 8, in <module>
from labellio import Classifier, Config, ImageLoader, Label
File "/usr/local/lib/python2.7/dist-packages/labellio/", line 2, in <module>
from labellio.classifier import Classifier
File "/usr/local/lib/python2.7/dist-packages/labellio/", line 6, in <module>
from import Net
File "/usr/local/lib/python2.7/dist-packages/labellio/", line 4, in <module>
import caffe
File "/root/caffe/python/caffe/", line 1, in <module>
from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver
File "/root/caffe/python/caffe/", line 15, in <module>
File "/root/caffe/python/caffe/", line 2, in <module>
File "/usr/local/lib/python2.7/dist-packages/skimage/io/", line 15, in <module>
File "/usr/local/lib/python2.7/dist-packages/skimage/io/", line 93, in reset_plugins
File "/usr/local/lib/python2.7/dist-packages/skimage/io/", line 73, in _load_preferred_plugins
_set_plugin(p_type, preferred_plugins['all'])
File "/usr/local/lib/python2.7/dist-packages/skimage/io/", line 85, in _set_plugin
use_plugin(plugin, kind=plugin_type)
File "/usr/local/lib/python2.7/dist-packages/skimage/io/", line 255, in use_plugin
File "/usr/local/lib/python2.7/dist-packages/skimage/io/", line 299, in _load
File "/usr/local/lib/python2.7/dist-packages/skimage/io/_plugins/", line 3, in <module>
import matplotlib.pyplot as plt
File "/usr/local/lib/python2.7/dist-packages/matplotlib/", line 114, in <module>
_backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
File "/usr/local/lib/python2.7/dist-packages/matplotlib/backends/", line 32, in pylab_setup
File "/usr/local/lib/python2.7/dist-packages/matplotlib/backends/", line 11, in <module>
from . import backend_gtk3
File "/usr/local/lib/python2.7/dist-packages/matplotlib/backends/", line 58, in <module>
cursors.MOVE :,
TypeError: constructor returned NULL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.