[vtkusers] new user attempting install on mac OSX
Tobias
tobias.straub at lmu.de
Tue Apr 22 07:21:36 EDT 2003
Am Freitag, 18.04.03 um 15:00 Uhr schrieb Adrian Umpleby:
>> so i followed the mayavi build instructions. everything went fine. i
>> tested vtk-usage using mayavi's included python test-script. fine.
>> then when i start mayavi (whatever way) i get a segmentation fault.
>
> 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
GNU gdb 5.3-20021014 (Apple version gdb-250) (Sat Dec 7 02:14:27 GMT
2002)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "powerpc-apple-macos10".
warning: Couldn't find library name in dyld_resolve_load_flag.
warning: Couldn't find library name in dyld_resolve_load_flag.
Reading symbols for shared libraries .... done
(gdb) run
Starting program: /Applications/Python.app/Contents/MacOS/python
[Switching to process 595 thread 0xb03]
..starting up
Reading symbols for shared libraries . done
Reading symbols for shared libraries
..................................................... done
original argc=1
original argv[0] = "/Applications/Python.app/Contents/MacOS/python"
modified argc=1
modified argv[0] = "/Applications/Python.app/Contents/MacOS/python"
Python 2.2.2 (#2, Mar 26 2003, 10:45:21)
[GCC 3.1 20020420 (prerelease)] on darwin
Type "copyright", "credits" or "license" for more information.
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
running sitecustomize.py
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
>>> import Tkinter
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
>>> import mayavi
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Program received signal EXC_BAD_ACCESS, Could not access memory.
0x90004aa4 in szone_malloc ()
(gdb) bt
[...]
#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
#4176 0x003f3c48 in load_next (mod=0x91820, altmod=0x0,
p_name=0xbfffd887, buf=0xbfffd880 "mayavi.Common", p_buflen=0xbfffdc90)
at Python/import.c:1766
#4177 0x003f5a20 in import_module_ex (name=0x0, globals=0x42,
locals=0x28022248, fromlist=0x442794) at Python/import.c:1617
#4178 0x003f4ce8 in PyImport_ImportModuleEx (name=0x30c574 "Common",
globals=0x31ef80, locals=0x31ef80, fromlist=0x442794) at
Python/import.c:1658
#4179 0x003c8dc0 in builtin___import__ (self=0x5e010, args=0x42) at
Python/bltinmodule.c:40
#4180 0x00378ea4 in PyObject_Call (func=0x5e010, arg=0x42,
kw=0x28022248) at Objects/abstract.c:1688
#4181 0x003d24dc in PyEval_CallObjectWithKeywords (func=0x8f370,
arg=0x2f4640, kw=0x0) at Python/ceval.c:3058
#4182 0x003cfdd8 in eval_frame (f=0x85f750) at Python/ceval.c:1843
#4183 0x003d1670 in PyEval_EvalCodeEx (co=0x2f4640, globals=0x42,
locals=0x90004a44, args=0x7540b0, argcount=0, kws=0x0, kwcount=0,
defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2595
#4184 0x003d4194 in PyEval_EvalCode (co=0x5e010, globals=0x42,
locals=0x28022248) at Python/ceval.c:481
#4185 0x003f28cc in PyImport_ExecCodeModuleEx (name=0x7539c0 "Z",
co=0x2f4640, pathname=0x8b6f0 "") at Python/import.c:505
#4186 0x003f56a0 in load_source_module (name=0x8f370 "",
pathname=0xbfffe080
"/Library/Frameworks/Python.framework/Versions/2.2/lib/python2.2/site-
packages/mayavi/__init__.pyc", fp=0x44dba0) at Python/import.c:787
#4187 0x003f30fc in load_module (name=0xbfffef10 "mayavi",
fp=0xa0006b48, buf=0xbfffe540
"/Library/Frameworks/Python.framework/Versions/2.2/lib/python2.2/site-
packages/mayavi/__init__.py", type=-2139062144) at Python/import.c:1371
#4188 0x003f5934 in load_package (name=0xbfffef10 "mayavi",
pathname=0x765ec0 "") at Python/import.c:844
#4189 0x003f3258 in load_module (name=0xbfffef10 "mayavi", fp=0x0,
buf=0xbfffea10
"/Library/Frameworks/Python.framework/Versions/2.2/lib/python2.2/site-
packages/mayavi", type=-2139062144) at Python/import.c:1394
#4190 0x003f41bc in import_submodule (mod=0x442794, subname=0x6b
<Address 0x6b out of bounds>, fullname=0xbfffef10 "mayavi") at
Python/import.c:1910
#4191 0x003f3c48 in load_next (mod=0x442794, altmod=0x0,
p_name=0xbfffef10, buf=0xbfffef10 "mayavi", p_buflen=0xbffff320) at
Python/import.c:1766
#4192 0x003f5a20 in import_module_ex (name=0x0, globals=0x42,
locals=0x28022248, fromlist=0x442794) at Python/import.c:1617
#4193 0x003f4ce8 in PyImport_ImportModuleEx (name=0x2f99e4 "mayavi",
globals=0x9c7e0, locals=0x9c7e0, fromlist=0x442794) at
Python/import.c:1658
#4194 0x003c8dc0 in builtin___import__ (self=0x5e010, args=0x42) at
Python/bltinmodule.c:40
#4195 0x00378ea4 in PyObject_Call (func=0x5e010, arg=0x42,
kw=0x28022248) at Objects/abstract.c:1688
#4196 0x003d24dc in PyEval_CallObjectWithKeywords (func=0x8f370,
arg=0x91c20, kw=0x0) at Python/ceval.c:3058
#4197 0x003cfdd8 in eval_frame (f=0x85f750) at Python/ceval.c:1843
#4198 0x003d1670 in PyEval_EvalCodeEx (co=0x91c20, globals=0x42,
locals=0x90004a44, args=0x917a0, argcount=0, kws=0x0, kwcount=0,
defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2595
#4199 0x003d4194 in PyEval_EvalCode (co=0x5e010, globals=0x42,
locals=0x28022248) at Python/ceval.c:481
#4200 0x004005f4 in run_node (n=0x917a0, filename=0x42 <Address 0x42
out of bounds>, globals=0x321860, locals=0x442794, flags=0x0) at
Python/pythonrun.c:1079
#4201 0x003ffb70 in PyRun_InteractiveOneFlags (fp=0x91c20,
filename=0x8f370 "", flags=0x8b6f0) at Python/pythonrun.c:590
#4202 0x003ff950 in PyRun_InteractiveLoopFlags (fp=0x2ed5d4,
filename=0x91810 "", flags=0x42f97c) at Python/pythonrun.c:526
#4203 0x00401054 in PyRun_AnyFile (fp=0xa0000cd4, filename=0x42
<Address 0x42 out of bounds>) at Python/pythonrun.c:489
#4204 0x00002778 in Py_Main (argc=9748, argv=0x0, filename=0x2614
".\005") at ../../Mac/Python/macmain.c:667
#4205 0x000025f0 in main (argc=1, argv=0xbffff97c) at
../../Mac/Python/macmain.c:568
#4206 0x0000226c in _start (argc=9748, argv=0xbffff97c,
envp=0xbffff984) at /SourceCache/Csu/Csu-45/crt.c:267
#4207 0x000020ec in start ()
(gdb)
> So you don't find it hangs when you try to 'import vtk' in python? Or
> 'package require vtk' in tclsh?
>
no hangs!
>> i have aqua tkinter in the python framework and that works. and also
>> the python interpreter.
>
> 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
bye
Tobias
More information about the vtkusers
mailing list