Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: source code string cannot contain null bytes #5

Open
mengyaaa opened this issue Jun 20, 2019 · 2 comments
Open

ValueError: source code string cannot contain null bytes #5

mengyaaa opened this issue Jun 20, 2019 · 2 comments

Comments

@mengyaaa
Copy link

File "mainOmniglot.py", line 1, in
from data_loader import OmniglotNShotDataset
ValueError: source code string cannot contain null bytes
Can any help?Thank you...

@lovelyqian
Copy link

open “data_loader.py” by vim, and you will find the “^@”, just delete them.

and if you use Pycharm or other IDEs, you can not observe this null byte.

@venuv
Copy link

venuv commented Mar 20, 2020

from stackoverflow and worked -- sed -i 's/\x0//g' FILENAME

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants