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...

see https://stackoverflow.com/a/2399817/230468


Comments

Popular posts from this blog

android - questions about switching from C2DM to GCM -

c++ - Qt setGeometry: Unable to set geometry -

batch file - How to extract all multi-volume RAR archives from subfolders of a folder? -