Could it also produce the error if the #! line contains the wrong name for the Python interpreter?
#!