I am trying to learn MayaVi, but getting stuck on opening figures.
Displaying figures in mlab just results in a segfault. It does not seem to matter what I plot, so I think that the problem is in the act of displaying, not in the object I am trying to display. For example:
import numpy as np
from mayavi import mlab
x = y = np.arange(-5, 5, 1)
s = np.meshgrid(x, y)
mlab.surf(s)
results in the error:
Segmentation fault (core dumped)
I am using Python 2.7.3, EPD 7.3-1 (64-bit) on Linux.
EDIT: I actually get a different error if I try to display an image, which is one of my goals.
import numpy as np
from mayavi import mlab
from PIL import Image
img = Image.open('milkyway.png')
mlab.imshow(img)
results in
Fatal error in __driConfigOptions line 108393789, column 108392770: parsing finished.
Abort (core dumped)
EDIT2: Okay, it is definitely an issue in opening the figures, because if I just test:
from mayavi import mlab
mlab.figure()
I get the initial error (a segfault).