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

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)