[MacPorts] #38357: import vtk in python 2.7.3
#38357: import vtk in python 2.7.3 --------------------------+-------------------------------- Reporter: j.pogacnik@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: | Port: --------------------------+-------------------------------- Hello, I'm running OSX 10.7.5. When I try to import vtk in Python2.7.3, I receive this error and Python crashes: Fatal Python error: Interpreter not initialized (version mismatch?) I have installed python2.7.3 and vtk5 from macports. I've ensured that the Python port selected is python27 (2.7.3). Not sure what else to do. Any advice? Please let me know if you need any additional information. Many thanks! Justin -- Ticket URL: <https://trac.macports.org/ticket/38357> MacPorts <http://www.macports.org/> Ports system for OS X
#38357: vtk5: cannot import in python 2.7.3 ---------------------------+--------------------------- Reporter: j.pogacnik@… | Owner: adfernandes@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: vtk5 | ---------------------------+--------------------------- Changes (by larryv@…): * owner: macports-tickets@… => adfernandes@… * port: => vtk5 Old description:
Hello,
I'm running OSX 10.7.5. When I try to import vtk in Python2.7.3, I receive this error and Python crashes:
Fatal Python error: Interpreter not initialized (version mismatch?)
I have installed python2.7.3 and vtk5 from macports. I've ensured that the Python port selected is python27 (2.7.3). Not sure what else to do.
Any advice? Please let me know if you need any additional information.
Many thanks!
Justin
New description: Hello, I'm running OSX 10.7.5. When I try to import vtk in Python2.7.3, I receive this error and Python crashes: {{{ Fatal Python error: Interpreter not initialized (version mismatch?) }}} I have installed python2.7.3 and vtk5 from macports. I've ensured that the Python port selected is python27 (2.7.3). Not sure what else to do. Any advice? Please let me know if you need any additional information. Many thanks! Justin -- Comment: Thanks for the ticket. In the future, please Cc relevant port maintainers. -- Ticket URL: <https://trac.macports.org/ticket/38357#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#38357: vtk5: cannot import in python 2.7.3 ---------------------------+--------------------------- Reporter: j.pogacnik@… | Owner: adfernandes@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: vtk5 | ---------------------------+--------------------------- Comment (by adfernandes@…): Hi, Justin - The error you describe comes from having python trying to load a `vtk` module for a different python interpreter. VTK should build correctly using the macports python; nothing should be built using the system python. Are all your ports up-to-date? Where I've seen this problem before is when python is trying to load an old vtk (one built without macports, or something like that). {{{ sudo port -dv clean all sudo port -dv selfupdate sudo port -dv upgrade outdated }}} Should help. -- Ticket URL: <https://trac.macports.org/ticket/38357#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#38357: vtk5: cannot import in python 2.7.3 ---------------------------+--------------------------- Reporter: j.pogacnik@… | Owner: adfernandes@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: invalid | Keywords: Port: vtk5 | ---------------------------+--------------------------- Changes (by adfernandes@…): * status: new => closed * resolution: => invalid Comment: Submitter reported out-of-band that the issue was bypassed. -- Ticket URL: <https://trac.macports.org/ticket/38357#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts