Strange Python problem on Linux.

Paul Jackson pj at sgi.com
Tue Feb 29 11:33:10 EST 2000


Along the lines of the previous suggestion that the "#! ..." line
might have odd chars, in addition to trying 'cat -v', also try:

    head -1 mdef.py > silly.py
    echo 'print "What's wrong?"' >> silly.py
    chmod u+x silly.py
    ./silly.py

If the 'odd character' guess is right, then the silly.py
constructed with a ver batim copy of the same first line will
also fail.

That or just edit 'mdef.py', deleting the first line and rekeying
it from scratch, if you are more interested in cures than in
a diagnosis.

-- 

=======================================================================
I won't rest till it's the best ...	   Software Production Engineer
Paul Jackson (pj at sgi.com; pj at usa.net) 3x1373 http://sam.engr.sgi.com/pj



More information about the Python-list mailing list