Python: source code string cannot contain null bytes
For posterity: I had the same problem and fixed it using, sed -i ‘s/\x0//g’ FILENAME The file seemed to be messed up in numerous ways (wrong endings, etc); no idea how… See https://stackoverflow.com/a/2399817/230468