0

当我尝试在使用 mayavi 的程序上可视化某些内容时,出现以下错误:

控制台输出:

File "/home/meniwis/syscave/src/python/syscave/gui/flowsim3d.py", line 15, 
in <module> from mayavi.modules.scalar_cut_plane import ScalarCutPlane
ImportError: No module named mayavi.modules.scalar_cut_plane

这里的文件“/home/meniwis/syscave/src/python/syscave/gui/flowsim3d.py:

line 01:import os
line 02:import sys
line 03:import sip
line 04:if sip.getapi('QString') >1:
line 05:    QString=unicode
line 06:
line 07:os.environ['ETS_TOOLKIT'] = 'qt4'
line 08:
line 09:import numpy as np
line 10:from numpy import linspace, pi, cos, sin
line 11:
line 12:try:
line 13:    from enthought.mayavi.modules.scalar_cut_plane import ScalarCutPlane
line 14:except ImportError:
line 15:    from mayavi.modules.scalar_cut_plane import ScalarCutPlane

我在用:

-Ubuntu 13.10
-Python 2.7
-epd-7.3-1-rh5-x86_64, which, as i know, comes with mayavi.

关于可能导致错误的任何线索?

预先感谢。问候。

4

0 回答 0