matching-networks-pytorch icon indicating copy to clipboard operation
matching-networks-pytorch copied to clipboard

ValueError: source code string cannot contain null bytes

Open mengyaaa opened this issue 5 years ago • 2 comments

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

mengyaaa avatar Jun 20 '19 13:06 mengyaaa

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.

lovelyqian avatar Jul 02 '19 03:07 lovelyqian

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

venuv avatar Mar 20 '20 03:03 venuv