Ipython, python fails to to import Viewer

I have installed sfepy 2015.3 on python 2.7.10, mayavi 4.4.3, VTK 6.1.0 and Qt 4.8.6 All but three tests not related to viewer have passed. On the python or ipython windows when I try to import:
from sfepy.postprocess.viewer import Viewer
I get the following message:
/usr/lib/python2.7/site-packages/traits/etsconfig/etsconfig.pyc in _set_too
lkit(self, toolkit)
211 if self._toolkit and self._toolkit != toolkit:
212 raise ValueError, "cannot set toolkit to %s because it
has "\
--> 213 "already been set to %s" % (toolkit, se
lf._toolkit)
214
215 self._toolkit = toolkit
ValueError: cannot set toolkit to wx because it has already been set to qt4
can somebody help with this problem?. I am new with sfepy.

Hi!
This is probably related to [1]. We do not have a solution for this problem yet. Until it is fixed, you can either use directly the mayavi application to load and visualize the results (or paraview or other VTK-compatible viewers), or downgrade mayavi to 4.3.
And of course, any help with debugging/fixing this issue would be appreciated!
r.
[1] https://github.com/sfepy/sfepy/issues/292
On 10/28/2015 08:12 PM, silesa...@hotmail.com wrote:
I have installed sfepy 2015.3 on python 2.7.10, mayavi 4.4.3, VTK 6.1.0 and Qt 4.8.6 All but three tests not related to viewer have passed. On the python or ipython windows when I try to import:
from sfepy.postprocess.viewer import Viewer
I get the following message:
/usr/lib/python2.7/site-packages/traits/etsconfig/etsconfig.pyc in _set_too lkit(self, toolkit) 211 if self._toolkit and self._toolkit != toolkit: 212 raise ValueError, "cannot set toolkit to %s because it has "
--> 213 "already been set to %s" % (toolkit, se lf._toolkit) 214 215 self._toolkit = toolkitValueError: cannot set toolkit to wx because it has already been set to qt4
can somebody help with this problem?. I am new with sfepy.
participants (2)
-
Robert Cimrman
-
silesa...@hotmail.com