Hi all
I recently cloned the source from github and all the tests passed. I am trying to run posproc.py on cylinder.vtk and it results in the following errors.
python2 postproc.py cylinder.vtk
Traceback (most recent call last):
File "postproc.py", line 42, in <module>
from sfepy.postprocess import Viewer, get_data_ranges,
create_file_source
File "/mysrc/sfepy/sfepy/postprocess/__init__.py", line 1, in <module>
from viewer import Viewer, ViewerGUI
File "/mysrc/sfepy/sfepy/postprocess/viewer.py", line 19, in <module>
from traitsui.api
File "/usr/lib/python2.7/site-packages/traitsui/api.py", line 35, in
<module>
from .editors.api import (ArrayEditor, BooleanEditor, ButtonEditor,
File "/usr/lib/python2.7/site-packages/traitsui/editors/__init__.py",
line 22, in <module>
from .api import (toolkit, ArrayEditor, BooleanEditor, ButtonEditor,
File "/usr/lib/python2.7/site-packages/traitsui/editors/api.py", line 10,
in <module>
from .code_editor import CodeEditor
File "/usr/lib/python2.7/site-packages/traitsui/editors/code_editor.py",
line 36, in <module>
class ToolkitEditorFactory ( EditorFactory ):
File "/usr/lib/python2.7/site-packages/traitsui/editors/code_editor.py",
line 48, in ToolkitEditorFactory
mark_color = Color( 0xECE9D8 )
File "/usr/lib/python2.7/site-packages/traits/traits.py", line 487, in
__call__
return self.maker_function( *args, **metadata )
File "/usr/lib/python2.7/site-packages/traits/traits.py", line 1191, in
Color
return ColorTrait( *args, **metadata )
File "/usr/lib/python2.7/site-packages/traitsui/toolkit_traits.py", line
7, in ColorTrait
return toolkit().color_trait( *args, **traits )
File "/usr/lib/python2.7/site-packages/traitsui/toolkit.py", line 117, in
toolkit
_toolkit = _import_toolkit( toolkit_name )
File "/usr/lib/python2.7/site-packages/traitsui/toolkit.py", line 51, in
_import_toolkit
return __import__( name, globals=globals(), level=1 ).toolkit
File "/usr/lib/python2.7/site-packages/traitsui/wx/__init__.py", line 26,
in <module>
import toolkit
File "/usr/lib/python2.7/site-packages/traitsui/wx/toolkit.py", line 55,
in <module>
from pyface.wx.drag_and_drop
File "/usr/lib/python2.7/site-packages/pyface/wx/drag_and_drop.py", line
21, in <module>
wxversion.select("2.8")
File "/usr/lib/python2.7/site-packages/wxversion.py", line 144, in select
raise AlreadyImportedError("wxversion.select() must be called before
wxPython is imported")
wxversion.AlreadyImportedError: wxversion.select() must be called before
wxPython is imported
Any ideas?
Regards
jagan