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: expected str, bytes or os.PathLike object, not NoneType #52

Open
XiruiTeng opened this issue Mar 6, 2024 · 1 comment
Open

Comments

@XiruiTeng
Copy link

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 ?

@XiruiTeng
Copy link
Author

Do you find the solution? I meet this error too

I ran the project again and this error disappeared. Amazing.

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