enthought/mayavi — Issue #20: Qt embedding example doesn't work
Author: mattions
Created: 2011-12-08 14:57:17+00:00
State: open

I've just installed the latest Mayavi and I found out that the Qt backend is misbehaving.

When I run the example application http://github.enthought.com/mayavi/mayavi/auto/example_qt_embedding.html, as soon you open the Envisage GUI, the application crash badly:

Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/traitsui/qt4/image_enum_editor.py", line 286, in sizeHint
pixmap = self._get_pixmap(name)
File "/usr/local/lib/python2.7/dist-packages/traitsui/qt4/image_enum_editor.py", line 292, in _get_pixmap
return self._editor.get_pixmap(name)
File "/usr/local/lib/python2.7/dist-packages/traitsui/qt4/image_enum_editor.py", line 51, in get_pixmap
name = ''.join((factory.prefix, name, factory.suffix))
TypeError: sequence item 1: expected string or Unicode, NoneType found

This was not happening with mayavi 3.6.0.
Any idea how to fix it?