wting / autojump

A cd command that learns - easily navigate directories from the command line
Other
16.08k stars 703 forks source link

TypeError: stat() argument 1 must be encoded string without null bytes, not str #635

Open AlanDecode opened 2 years ago

AlanDecode commented 2 years ago

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.