TypeError: stat() argument 1 must be encoded string without null bytes, not str
AlanDecode opened this issue · comments
AlanDecode commented
After installing autojump, when cd into a directory containing pytorch checkpoint (which is pickled python data I guess), below error occurs:
Error processing line 2 of /nfs/volume-382-9/zhouyutao/pretrained/deeplabv3_resnet101_coco-586e9e4e.pth:
Traceback (most recent call last):
File "/usr/lib/python2.7/site.py", line 162, in addpackage
if not dircase in known_paths and os.path.exists(dir):
File "/usr/lib/python2.7/genericpath.py", line 26, in exists
os.stat(path)
TypeError: stat() argument 1 must be encoded string without null bytes, not str
Remainder of file ignored
I guess that autojump is analyzing the directory by reading contents inside it, but somehow failed to handle the checkpoint data.