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

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

Open
AlanDecode opened this issue Jul 30, 2021 · 0 comments

Comments

@AlanDecode
Copy link

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.

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

1 participant