Opened 11 years ago

Closed 4 years ago

#39586 closed defect (wontfix)

vtk5 @5.10.1_0

Reported by: lzkelley (Luke) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: petrrr
Port: vtk5

Description

I previously installed the VTK package from source, but couldn't get it to work with my MacPorts python (/opt/local/bin/python which points to /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7), it only worked with my system python (/usr/bin/python which points to /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7).

I then installed the vtk5 port (vtk5 @5.10.1_0+python27+tcltk+x11), but I'm getting the same result:

$ python
Python 2.7.5 (default, Jun 28 2013, 22:20:00) 
[GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import vtk
Fatal Python error: PyThreadState_Get: no current thread
Abort trap: 6

again, it works fine if I use the system python. I noticed that the vtk5 package contained a 'vtkpython' --- and 'import vtk' fails for that as-well. I've attached my system error report for the crash.

As a temporary solution I was going to just use the system python, but because I have modules installed via MacPorts, I can't import numpy, matplotlib, etc from the system python. I'd also be interested in ways to resolve that issue - so at least I can get some work done....

Thanks!

Attachments (1)

python_vtk_error.txt (13.3 KB) - added by lzkelley (Luke) 11 years ago.
System error message for python crash at 'import vtk'

Download all attachments as: .zip

Change History (10)

Changed 11 years ago by lzkelley (Luke)

Attachment: python_vtk_error.txt added

System error message for python crash at 'import vtk'

comment:1 Changed 11 years ago by lzkelley (Luke)

I figured out how to use macports modules with my system python... so I do have a working work-around. I'd still love to figure out what the problem is however.

comment:2 Changed 11 years ago by mf2k (Frank Schima)

Cc: css@… removed
Keywords: vtk python import error removed
Port: @5.10.1_0 removed

comment:3 Changed 11 years ago by mf2k (Frank Schima)

It works fine for me. What version of Mac OS X are you running? What version of XCode?

$ uname -a
$ xcodebuild -version

comment:4 Changed 11 years ago by mf2k (Frank Schima)

Also, what is the output of the following?

which python

comment:5 Changed 10 years ago by petrrr

I just realised that vtk5 does not declare dependency on python2?, even if it actually uses the library path for example. In general python handling could be revised, e.g. allowing to install against multiple python versions. I came across this ticket when searching, the issue here may not really explain only by this, but it might be related for example unintended linking against System python? Just a stupid guess ...

comment:6 Changed 10 years ago by petrrr

Cc: Peter.Danecek@… added

Cc Me!

comment:7 Changed 10 years ago by petrrr

Cc: petr@… added

Cc Me!

comment:8 Changed 10 years ago by petrrr

Cc: Peter.Danecek@… removed

comment:9 Changed 4 years ago by mf2k (Frank Schima)

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.