Hallo,
waere toll, wenn mir da jemand weiterhelfen koennte, bei mir funktioniert die Installation naemlich nicht so wirklich;
cmake lief durch, make auch, danach habe ich im ${VTK_ROOT}/VTK-build/Wrappings/Python Verzeichnis
sudo setup.py install
ausgefuehrt, lief alles chic, nur...
...meine anderen Programme, die ich mit VTK verwenden moechte, laufen unter Snow Leopard 10.6.8 im 32-Bit Modus.
Also habe ich VTK mit
CMAKE_OSX_ARCHITECTURES:STRING=i386
installiert und dann hinterher, da Python automatisch in Snow Leopard im 64 Bit Modus startet, anscheinend unabhaengig von in /etc/launchd.conf gesetzter
VERSIONER_PYTHON_PREFER_32_BIT yes
arch -i386 /usr/bin/python2.7
gestartet.
Da bekomme ich jetzt immer den Fehler
>>> import vtk
Fatal Python error: Interpreter not initialized (version mismatch?)
Abort trap
Wenn ich stattdessen
arch -i386 vtkpython
aufrufe, bekomme ich
$ arch -i386 vtkpython
dyld: Library not loaded: libvtksys.5.8.dylib
Referenced from: /sw/bin/vtkpython
Reason: image not found
Trace/BPT trap
Aufruf von vtkpython ohne arch -i386 liefert dasselbe.
$ pwd
/sw/lib/vtk-5.8
$ ls -l libvtksys.5.8.dylib
lrwxr-xr-x 1 root admin 21 Sep 28 15:49 libvtksys.5.8.dylib -> libvtksys.5.8.0.dylib
$ ls -l libvtksys.5.8.0.dylib
-rwxr-xr-x 1 root admin 521728 Sep 28 18:40 libvtksys.5.8.0.dylib
sudo vtkpython startet (schaetze ich muss bei libvtksys.5.8.0.dylib und dem Link des euid Bit setzen?)
Allerdings:
$ sudo vtkpython
vtk version 5.8.0
Python 2.7 (r27:82500, Sep 24 2011, 10:34:41)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> vtk.__version__
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'vtk' is not defined
>>> import vtk
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named vtk
>>>
Bin etwas verwirrt, ist vtkpython nicht gerade fuer vtk gemacht?
Vielen Dank fuer Eure Zeit und Muehe.
Gruss
Phil.