Thanks for the hint! I solved the prob myself: must have been a tab or whitespace beyond the last line of the script. That irritated py2exe for some reason. After deleting everything after the last line it compiled well. Bye, Harald