Setting Correct Python for Mac binaries

Asked by Colin McAuliffe

Hello all,

When I open fenics I get the following error message followed by logout

Python Version Mismatch Detected

This package will only work with the Mac OS X system provided Python. Using Python installed manually from python.org or using Python from MacPorts, Fink, or similar will not work. Your copy of python is located at /Library/Frameworks/Python.framework/Versions/6.2

Unfortunately I do not know how to set the path to the right version of python, can anyone help?

Thanks
Colin

Question information

Language:
English Edit question
Status:
Solved
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Solved by:
Colin McAuliffe
Solved:
Last query:
Last reply:
Revision history for this message
Johannes Ring (johannr) said :
#1

What do you get when you run "which python" in a terminal? If you get /usr/local/bin/python, then I guess you have installed Python manually from python.org. In that case, you will have to remove this before you can use the FEniCS package. It might be enough to just remove the symbolic link(s) under /usr/local/bin, but I'm not sure.

Revision history for this message
Colin McAuliffe (cjm2176) said :
#2

which python gives

/Library/Frameworks/Python.framework/Versions/6.2/bin

I removed the link from here and I am now able to sucesfully run fenics demos

Thanks!
Colin

Revision history for this message
Jesse Chan (jchan985) said :
#3

I have Python 2.6, which I'm trying to update to 2.7; what is the requirement for this update to be compatible with FEniCS? Do I just need to install into /usr/bin?

Revision history for this message
Jesse Chan (jchan985) said :
#4

I have Python 2.6, which I'm trying to update to 2.7; what is the requirement for this update to be compatible with FEniCS? Do I just need to install into /usr/bin?