osx - Python: source code string cannot contain null bytes -
i'm using max os x 10.10.3, , got graphics.py
show in python 3, before saying no module existed.
however, when try import graphics
, or from graphics import *
, message:
"source code string cannot contain null bytes"
does mac user (using python 3) perhaps know wrong? has used zelle book , graphics.py
module? thanks.
for posterity: had same problem , fixed using,
sed -i 's/\x0//g' filename
the file seemed messed in numerous ways (wrong endings, etc); no idea how...
Comments
Post a Comment