Skip to content

TypeError: expected str, bytes or os.PathLike object, not NoneType #52

@XiruiTeng

Description

@XiruiTeng

Traceback (most recent call last):
File "test.py", line 179, in
conf_arg.update(yamlread(args.get('conf_path')))
File "/root/test/RePaint/utils/init.py", line 29, in yamlread
return yaml.safe_load(txtread(path=path))
File "/root/test/RePaint/utils/init.py", line 23, in txtread
path = os.path.expanduser(path)
File "/root/anaconda3/envs/try/lib/python3.7/posixpath.py", line 235, in expanduser
path = os.fspath(path)
TypeError: expected str, bytes or os.PathLike object, not NoneType?
I meet this error can anyone help me ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions