[vtkusers] new user attempting install on mac OSX
Adrian Umpleby
a.umpleby at imperial.ac.uk
Sun Apr 27 10:09:27 EDT 2003
Hi again,
I've been away for nearly a week, so apologies for the delay...
>> Can you 'gdb' that to get a stack trace?
>
> so this is what gdb tells me when importing mayavi with the python
> interpreter.
>
> (~) % gdb /Applications/Python.app/Contents/MacOS/python
> ...
> >>> import Tkinter
Do you need to import Tkinter before mayavi? -I know I don't (though it
does not appear to matter if I do import it first)...
> ...
> (gdb) bt
>
> [...]
The actual 'crash location' can best be seen from those first lines that
you skipped.
> #4170 0x003d1670 in PyEval_EvalCodeEx (co=0x7a4e40, globals=0x42,
> locals=0x90004a44, args=0x3, argcount=0, kws=0x0, kwcount=0, defs=0x0,
> defcount=0, closure=0x0) at Python/ceval.c:2595
> #4171 0x003d4194 in PyEval_EvalCode (co=0x5e010, globals=0x42,
> locals=0x28022248) at Python/ceval.c:481
> #4172 0x003f28cc in PyImport_ExecCodeModuleEx (name=0x311b68 "Z\035",
> co=0x7a4e40, pathname=0x8b6f0 "") at Python/import.c:505
> #4173 0x003f56a0 in load_source_module (name=0x0, pathname=0xbfffcec0
> "/Library/Frameworks/Python.framework/Versions/2.2/lib/python2.2/site-
> packages/mayavi/Common.pyc", fp=0x44dba0) at Python/import.c:787
> #4174 0x003f30fc in load_module (name=0xbfffd880 "mayavi.Common",
> fp=0xa0006ba0, buf=0xbfffd380
> "/Library/Frameworks/Python.framework/Versions/2.2/lib/python2.2/site-
> packages/mayavi/Common.py", type=-2139062144) at Python/import.c:1371
> #4175 0x003f41bc in import_submodule (mod=0x91820, subname=0x83
> <Address 0x83 out of bounds>, fullname=0xbfffd880 "mayavi.Common") at
> Python/import.c:1910
> ...
Having said that, I'm not sure I really have any idea where to start
looking for the problem...
Does it give a similar crash if you just import Common from mayavi,
instead of importing mayavi as a whole:
from mayavi import Common
>> So you don't find it hangs when you try to 'import vtk' in python? Or
>> 'package require vtk' in tclsh?
>>
> no hangs!
Curious! IIRC, you compiled it all in the same way as myself (Carbon,
Python+Tcl wrapping), except for adding the Java wrapping (maybe I'll
have to try adding that...)
It's looking like the problems you're having are not specifically to do
with VTK.
>> Where (and when) did you get Tkinter for Aqua?
>
> i mean i have Tcl/TkAqua working with Tkinter. following the
> instructions found at
> http://www.astro.washington.edu/owen/InstallingPythonOnJaguar.html
I'll check that, thanks!
Adrian
More information about the vtkusers
mailing list