Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A autojump
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 158
    • Issues 158
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 54
    • Merge requests 54
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • William Ting
  • autojump
  • Issues
  • #635
Closed
Open
Issue created Jul 30, 2021 by Administrator@rootContributor

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

Created by: AlanDecode

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.

Assignee
Assign to
Time tracking