[MacPorts] #39586: vtk5 @5.10.1_0
#39586: vtk5 @5.10.1_0 -------------------------------------+-------------------------------- Reporter: lkelley@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: vtk python import error | Port: vtk5 @5.10.1_0 -------------------------------------+-------------------------------- 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! -- Ticket URL: <https://trac.macports.org/ticket/39586> MacPorts <http://www.macports.org/> Ports system for OS X
#39586: vtk5 @5.10.1_0 -----------------------------+------------------------------------- Reporter: lkelley@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: vtk python import error Port: vtk5 @5.10.1_0 | -----------------------------+------------------------------------- Comment (by lkelley@…): 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. -- Ticket URL: <https://trac.macports.org/ticket/39586#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#39586: vtk5 @5.10.1_0 ------------------------+-------------------------------- Reporter: lkelley@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: vtk5 | ------------------------+-------------------------------- Changes (by macsforever2000@…): * keywords: vtk python import error => * cc: css@… (removed) * port: vtk5 @5.10.1_0 => vtk5 -- Ticket URL: <https://trac.macports.org/ticket/39586#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#39586: vtk5 @5.10.1_0 ------------------------+-------------------------------- Reporter: lkelley@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: vtk5 | ------------------------+-------------------------------- Comment (by macsforever2000@…): It works fine for me. What version of Mac OS X are you running? What version of XCode? {{{ $ uname -a $ xcodebuild -version }}} -- Ticket URL: <https://trac.macports.org/ticket/39586#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#39586: vtk5 @5.10.1_0 ------------------------+-------------------------------- Reporter: lkelley@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: vtk5 | ------------------------+-------------------------------- Comment (by macsforever2000@…): Also, what is the output of the following? {{{ which python }}} -- Ticket URL: <https://trac.macports.org/ticket/39586#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#39586: vtk5 @5.10.1_0 ------------------------+-------------------------------- Reporter: lkelley@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: vtk5 | ------------------------+-------------------------------- Comment (by Peter.Danecek@…): 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 ... -- Ticket URL: <https://trac.macports.org/ticket/39586#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#39586: vtk5 @5.10.1_0 ------------------------+-------------------------------- Reporter: lkelley@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: vtk5 | ------------------------+-------------------------------- Changes (by petr@…): * cc: Peter.Danecek@… (removed) -- Ticket URL: <https://trac.macports.org/ticket/39586#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts