Opened 11 years ago

Closed 11 years ago

#38357 closed defect (invalid)

vtk5: cannot import in python 2.7.3

Reported by: j.pogacnik@… Owned by: adfernandes (Andrew Fernandes)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc:
Port: vtk5

Description (last modified by larryv (Lawrence Velázquez))

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

Change History (3)

comment:1 Changed 11 years ago by larryv (Lawrence Velázquez)

Description: modified (diff)
Owner: changed from macports-tickets@… to adfernandes@…
Port: vtk5 added
Summary: import vtk in python 2.7.3vtk5: cannot import in python 2.7.3

Thanks for the ticket. In the future, please Cc relevant port maintainers.

comment:2 Changed 11 years ago by adfernandes (Andrew Fernandes)

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.

comment:3 Changed 11 years ago by adfernandes (Andrew Fernandes)

Resolution: invalid
Status: newclosed

Submitter reported out-of-band that the issue was bypassed.

Note: See TracTickets for help on using tickets.