Patricks-iMac:work patrick$ sudo port select python python27
Selecting ‘python27’ for ‘python’ succeeded. ‘python27’ is now active.
Patricks-iMac:work patrick$ python if_else_mod.py
Fatal Python error: PyThreadState_Get: no current thread
Abort trap: 6
As you can see python crashes and I also get another GUI fail message.
Running like python2.7 if_else_mod.py still works, though. I tried to
revert the above change, but:
Patricks-iMac:work patrick$ sudo port select python python
Selecting ‘python’ for ‘python’ failed: The specified version ‘python’
is not valid.
Think I will just stick with the way that works, until I at some point
need to change something and then dive more into this. Thanks for your
patience though.
HiPatrick - Thanks for the feedback. I’ve heard of your issue before;
never experienced it myself. Do you mind if I ask you to do a few things
to help debug & maybe we can figure out a better way to keep GR / Python
/ MP happy? I not, that’s fine too; just thought I’d ask.
If you want to revert ‘python’ back to where it was, do “sudo port
select python none”.
what does “which python” return after you do “sudo port select python
python27”? Hopefully it is now /opt/local/bin/python?
What happens when you execute the following (assuming (2) is still
valid, not (1))?
{{{
PYTHONPATH= /opt/local/bin/python -c “import sys; print sys.version;
print sys.path”
PYTHONPATH= /usr/bin/python -c “import sys; print sys.version; print
sys.path”
}}}