Skip to content

TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType #3

@AMAMAM7

Description

@AMAMAM7

Hello~Thanks for your work. But i encountered a problem
The error is as follows:
0it [00:00, ?it/s]Traceback (most recent call last):
File "/Users/for_am/Documents/a/FaceXRaymaster/faceBlending.py", line 174, in
main()
File "/Users/for_am/Documents/a/FaceXRaymaster/faceBlending.py", line 42, in main
for i, srcFace in enumerate(srcFaces):
File "/Users/for_am/opt/anaconda3/lib/python3.7/site-packages/tqdm/std.py", line 1081, in iter
for obj in iterable:
File "/Users/for_am/Documents/a/FaceXRaymaster/utils.py", line 31, in files
if os.path.isfile(path):
File "/Users/for_am/opt/anaconda3/lib/python3.7/genericpath.py", line 30, in isfile
st = os.stat(path)
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType

Hope you can help me! Thanks !☺️

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