Deep-Live-Cam
Deep-Live-Cam copied to clipboard
When click the "select a face" button to upload a photo, an error occurs.
Exception in Tkinter callback
Traceback (most recent call last):
File "/Users/gujin/workspace/python/Deep-Live-Cam/.venv/lib/python3.10/site-packages/PIL/ImageTk.py", line 58, in _pyimagingtkcall
tk.call(command, photo, repr(ptr))
_tkinter.TclError: invalid command name "PyImagingPhoto"
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/gujin/.local/share/uv/python/cpython-3.10.16-macos-aarch64-none/lib/python3.10/tkinter/__init__.py", line 1921, in __call__
return self.func(*args)
File "/Users/gujin/workspace/python/Deep-Live-Cam/.venv/lib/python3.10/site-packages/customtkinter/windows/widgets/ctk_button.py", line 554, in _clicked
self._command()
File "/Users/gujin/workspace/python/Deep-Live-Cam/modules/ui.py", line 161, in <lambda>
root, text=_("Select a face"), cursor="hand2", command=lambda: select_source_path()
File "/Users/gujin/workspace/python/Deep-Live-Cam/modules/ui.py", line 595, in select_source_path
source_label.configure(image=image)
File "/Users/gujin/workspace/python/Deep-Live-Cam/.venv/lib/python3.10/site-packages/customtkinter/windows/widgets/ctk_label.py", line 222, in configure
self._update_image()
File "/Users/gujin/workspace/python/Deep-Live-Cam/.venv/lib/python3.10/site-packages/customtkinter/windows/widgets/ctk_label.py", line 141, in _update_image
self._label.configure(image=self._image.create_scaled_photo_image(self._get_widget_scaling(),
File "/Users/gujin/workspace/python/Deep-Live-Cam/.venv/lib/python3.10/site-packages/customtkinter/windows/widgets/image/ctk_image.py", line 113, in create_scaled_photo_image
return self._get_scaled_light_photo_image(scaled_size)
File "/Users/gujin/workspace/python/Deep-Live-Cam/.venv/lib/python3.10/site-packages/customtkinter/windows/widgets/image/ctk_image.py", line 99, in _get_scaled_light_photo_image
self._scaled_light_photo_images[scaled_size] = ImageTk.PhotoImage(self._light_image.resize(scaled_size))
File "/Users/gujin/workspace/python/Deep-Live-Cam/.venv/lib/python3.10/site-packages/PIL/ImageTk.py", line 131, in __init__
self.paste(image)
File "/Users/gujin/workspace/python/Deep-Live-Cam/.venv/lib/python3.10/site-packages/PIL/ImageTk.py", line 187, in paste
_pyimagingtkcall("PyImagingPhoto", self.__photo, ptr)
File "/Users/gujin/workspace/python/Deep-Live-Cam/.venv/lib/python3.10/site-packages/PIL/ImageTk.py", line 62, in _pyimagingtkcall
from . import _imagingtk
Has anyone encountered this issue?