I struggled to install the VTK package, and finally it looked as if everything was installed successfully.
When I import vtk , I get an error:
Fatal Python error: PyThreadState_Get: no current thread Abort trap: 6
What is the default env python that points to /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
If I use /usr/bin/python which points to /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7/ it works fine!
How can I make the vtk module work for my python by default?
Why I want to use /opt/local/ python instead of /System/ python:
All my other modules are installed through MacPorts to install /opt/local/ python. Therefore, if I use /opt/local/bin/python to import vtk, I suddenly cannot use matplotlib , scipy , etc.
Why I can not install vtk using MacPorts:
I keep getting errors installing macports vtk --- I sent a trac error but I havenβt heard anything yet.
Thanks!
source share