[Pythonmac-SIG] Interesting problem trying to install & run MayaVi

W.T. Bridgman wtbridgman at radix.net
Sat Sep 27 23:25:13 EDT 2003


A possible related issue is in my other post this evening.

I've been corresponding on the VTK users list about building a standard  
'recipe' for getting VTK and MayaVi working under MacOS X (for those  
interested, the current draft of the recipe is available through the  
discussion list on www.vtk.org - I plan to post it to this list and  
perhaps Jack's site when I feel it's reasonably complete).

Anyway, I seem to be able to reliably build VTK with Carbon interfaces  
but MayaVi still fails with a segfault when I try to install and run  
it.  Doing a 'vtkpython -v mayavi' displayed a failure right around  
loading tkFileDialog.py.  However, this file seems to load fine on it's  
own.

One of the possible issues for the MayaVi failure I'm pursuing is that  
there could be something missing between building Python with Tkinter  
from source vs. installation via PackageManager.  I had previously  
installed Tkinter from PM and am now doing it by installing  
TclTkAqua.dmg and then building Python and additional components from  
the source packages.

I encounted a problem installing PIL 1.1.4 mentioned in my other  
message.  I'm not sure if these problems are related so please provide  
any enlightenment.

Anyway, I continued with my VTK installation which still works and then  
started on MayaVi.  Now MayaVi seems to load tkFileDialog.py fine but  
fails a little later, around the time of loading cStringIO.so (listing  
below).  This suggests to me that the problem may be deeper in  
MacPython.

BTW, TckTkAqua.dmg is 8.4.4 and I'm using the Python 2.3 tarball for  
the source build.  It seemed to find and configure for Tk just fine.

Any ideas or suggestions?

Thanks,
Tom

[Dirac:Users/bridgman/MayaVi-1.2.cvs20030924] bridgman% vtkpython -v  
mayavi
Python 2.3 (#1, Sep 26 2003, 22:27:14)
[GCC 3.1 20020420 (prerelease)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
#  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ 
string.pyc matches  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ 
string.py
import string # precompiled from  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ 
string.pyc
import strop # dynamically loaded from  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib- 
dynload/strop.so
#  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ 
getopt.pyc matches  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ 
getopt.py
import getopt # precompiled from  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ 
getopt.pyc
#  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-tk/ 
Tkinter.pyc matches  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-tk/ 
Tkinter.py
import Tkinter # precompiled from  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-tk/ 
Tkinter.pyc
import _tkinter # dynamically loaded from  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib- 
dynload/_tkinter.so
#  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-tk/ 
Tkconstants.pyc matches  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-tk/ 
Tkconstants.py
import Tkconstants # precompiled from  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-tk/ 
Tkconstants.pyc
import MacOS # dynamically loaded from  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib- 
dynload/MacOS.so
# /Volumes/DiracData2/Users/bridgman/MayaVi-1.2.cvs20030924/Main.pyc  
matches  
/Volumes/DiracData2/Users/bridgman/MayaVi-1.2.cvs20030924/Main.py
import Main # precompiled from  
/Volumes/DiracData2/Users/bridgman/MayaVi-1.2.cvs20030924/Main.pyc
#  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ 
traceback.pyc matches  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ 
traceback.py
import traceback # precompiled from  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ 
traceback.pyc
#  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ 
glob.pyc matches  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/glob.py
import glob # precompiled from  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/glob.pyc
#  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ 
fnmatch.pyc matches  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ 
fnmatch.py
import fnmatch # precompiled from  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ 
fnmatch.pyc
#  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/re.pyc  
matches  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/re.py
import re # precompiled from  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/re.pyc
#  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/sre.pyc  
matches  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/sre.py
import sre # precompiled from  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/sre.pyc
#  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ 
sre_compile.pyc matches  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ 
sre_compile.py
import sre_compile # precompiled from  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ 
sre_compile.pyc
import _sre # builtin
#  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ 
sre_constants.pyc matches  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ 
sre_constants.py
import sre_constants # precompiled from  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ 
sre_constants.pyc
#  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ 
sre_parse.pyc matches  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ 
sre_parse.py
import sre_parse # precompiled from  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ 
sre_parse.pyc
#  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-tk/ 
tkFileDialog.pyc matches  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-tk/ 
tkFileDialog.py
import tkFileDialog # precompiled from  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-tk/ 
tkFileDialog.pyc
#  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-tk/ 
tkCommonDialog.pyc matches  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-tk/ 
tkCommonDialog.py
import tkCommonDialog # precompiled from  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-tk/ 
tkCommonDialog.pyc
#  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-tk/ 
tkMessageBox.pyc matches  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-tk/ 
tkMessageBox.py
import tkMessageBox # precompiled from  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-tk/ 
tkMessageBox.pyc
#  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-tk/ 
tkColorChooser.pyc matches  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-tk/ 
tkColorChooser.py
import tkColorChooser # precompiled from  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-tk/ 
tkColorChooser.pyc
# /Volumes/DiracData2/Users/bridgman/MayaVi-1.2.cvs20030924/Common.pyc  
matches  
/Volumes/DiracData2/Users/bridgman/MayaVi-1.2.cvs20030924/Common.py
import Common # precompiled from  
/Volumes/DiracData2/Users/bridgman/MayaVi-1.2.cvs20030924/Common.pyc
#  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ 
pickle.pyc matches  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ 
pickle.py
import pickle # precompiled from  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ 
pickle.pyc
import marshal # builtin
import struct # dynamically loaded from  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib- 
dynload/struct.so
import binascii # dynamically loaded from  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib- 
dynload/binascii.so
import cStringIO # dynamically loaded from  
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib- 
dynload/cStringIO.so
Segmentation fault
[Dirac:Users/bridgman/MayaVi-1.2.cvs20030924] bridgman%




More information about the Pythonmac-SIG mailing list