I'm getting this error from the Unix Z shell (I'm on Mac):
python: posix_spawn: /System/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python: No such file or directory
What am I doing? I'm just running a software in which I put my executable python script. My script is working without any issue, I can also run it from the shell by itself and still works.
I have to mention I'm using Python 2.7, even when I launch Python from the shell it starts with Python 2.7 and not the Version2.6. I actually tried to remove Python 2.6 from the Frameworks but again the same error.
python2.7 sreloc.py as a line (instead of just
sreloc.py) for example (this is a piece of the big code where my script lies):
do $inv python2.7 sreloc.py $fmm>$diagnos cp $ttim $mtrav
the error I'm getting is:
/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'sreloc.py': [Errno 2] No such file or directory
I'm really interested in solving this last problem, or anyway being able to run sreloc.py as a part of the main code, but any idea about the first one would be appreciated.