Bad Interpreter

Richards Noah (IFR LIT MET) Noah.Richards at infineon.com
Mon Jan 3 15:39:29 EST 2005


<RajaSrinivasan at hotmail.com> wrote in message
news:1104783849.754892.47560 at c13g2000cwb.googlegroups.com...
> I have seen some previous messages about such a problem. I have this
> problem but it is not clear what the solution really was.
>
> I am running FC2, python 2.3.3
>
> the script i have sock.py runs if i say something like :
>
> python sock.py
>
> but ./sock.py results in a :bad interpreter error
> how do i troubleshoot something like this?
>
> regards
>

What does the first line of your script look like?  It needs to be pointing
to the python interpreter binary, which you can locate with:

which python

(on the command line).  Check and make sure it is.  If it is and you are
still getting this problem, post some code and the complete error.

HTH.





More information about the Python-list mailing list