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

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -