os Path "FileNotFoundError: [Errno 2] No such file or directory:"
Question:
I’m trying to open files from this path C:UsersUsuarioLlamasllamas-pythonface
but I’m getting FileNotFoundError: [Errno 2] No such file or directory:
im1 = Image.open(f' ./llamas-python/face/{face_files[item["Face"]]}.png').convert('RGBA')
Any helpĀ”?
Answers:
Try something like
im1 = Image.open(f'.\llamas-python\face\{face_files[item["Face"]]}.png').convert('RGBA')
I’m trying to open files from this path C:UsersUsuarioLlamasllamas-pythonface
but I’m getting FileNotFoundError: [Errno 2] No such file or directory:
im1 = Image.open(f' ./llamas-python/face/{face_files[item["Face"]]}.png').convert('RGBA')
Any helpĀ”?
Try something like
im1 = Image.open(f'.\llamas-python\face\{face_files[item["Face"]]}.png').convert('RGBA')