Giter Club home page Giter Club logo

Comments (2)

torzdf avatar torzdf commented on July 24, 2024

No. it's the correct version of Pillow...

This is a system issue, in some way (a required file missing on your PC, or a conflict of some kind).

In the first instance, try this to see if it resolves it:
https://forum.faceswap.dev/app.php/faqpage#f1r1

from faceswap.

josh3io avatar josh3io commented on July 24, 2024

C:\Users\josh\faceswap>"C:\Users\josh\Miniconda3\scripts\activate.bat" && conda activate "faceswap" && python "C:\Users\josh\faceswap/faceswap.py" gui
Setting Faceswap backend to NVIDIA
02/29/2024 10:44:58 INFO Log level set to: INFO
02/29/2024 10:45:04 ERROR Got Exception on main handler:
Traceback (most recent call last):
File "C:\Users\josh\faceswap\lib\cli\launcher.py", line 223, in execute_script
script = self._import_script()
File "C:\Users\josh\faceswap\lib\cli\launcher.py", line 53, in import_script
module = import_module(mod)
File "C:\Users\josh\miniconda3\envs\faceswap\lib\importlib_init
.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in load_unlocked
File "", line 883, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\Users\josh\faceswap\scripts\gui.py", line 9, in
from lib.gui import (TaskBar, CliOptions, CommandNotebook, ConsoleOut, DisplayNotebook,
File "C:\Users\josh\faceswap\lib\gui_init
.py", line 4, in
from lib.gui.command import CommandNotebook
File "C:\Users\josh\faceswap\lib\gui\command.py", line 9, in
from .control_helper import ControlPanel
File "C:\Users\josh\faceswap\lib\gui\control_helper.py", line 15, in
from .custom_widgets import ContextMenu, MultiOption, ToggledFrame, Tooltip
File "C:\Users\josh\faceswap\lib\gui\custom_widgets.py", line 14, in
from .utils import get_config
File "C:\Users\josh\faceswap\lib\gui\utils_init
.py", line 4, in
from .config import get_config, initialize_config, PATHCACHE
File "C:\Users\josh\faceswap\lib\gui\utils\config.py", line 12, in
from lib.gui.config import Config as UserConfig
File "C:\Users\josh\faceswap\lib\gui_config.py", line 8, in
from matplotlib import font_manager
File "C:\Users\josh\miniconda3\envs\faceswap\lib\site-packages\matplotlib_init
.py", line 161, in
from . import _api, _version, cbook, _docstring, rcsetup
File "C:\Users\josh\miniconda3\envs\faceswap\lib\site-packages\matplotlib\rcsetup.py", line 27, in
from matplotlib.colors import Colormap, is_color_like
File "C:\Users\josh\miniconda3\envs\faceswap\lib\site-packages\matplotlib\colors.py", line 52, in
from PIL import Image
File "C:\Users\josh\miniconda3\envs\faceswap\lib\site-packages\PIL\Image.py", line 100, in
from . import _imaging as core
ImportError: DLL load failed while importing _imaging: The specified module could not be found.
02/29/2024 10:45:04 CRITICAL An unexpected crash has occurred. Crash report written to 'C:\Users\josh\faceswap\crash_report.2024.02.29.104500909341.log'. You MUST provide this file if seeking assistance. Please verify you are running the latest version of faceswap before reporting

(faceswap) C:\Users\josh\faceswap>ls
CODE_OF_CONDUCT.md pycache docs locales tools
Dockerfile.cpu _config.yml faceswap.py plugins tools.py
Dockerfile.gpu config faceswap_gui.log requirements update_deps.py
INSTALL.md crash_report.2024.02.29.104006270120.log faceswap_gui.log.1 scripts
LICENSE crash_report.2024.02.29.104030719334.log faceswap_setup.log setup.cfg
README.md crash_report.2024.02.29.104242856258.log faceswap_win_launcher.bat setup.py
USAGE.md crash_report.2024.02.29.104500909341.log lib tests

(faceswap) C:\Users\josh\faceswap>ls requirements
_requirements_base.txt requirements_cpu.txt requirements_nvidia.txt
requirements_apple_silicon.txt requirements_directml.txt requirements_rocm.txt

(faceswap) C:\Users\josh\faceswap>cat requirements/requirements_nvidia.txt
-r _requirements_base.txt

Exclude badly numbered Python2 version of nvidia-ml-py

nvidia-ml-py>=11.525,<300
pynvx==1.0.0 ; sys_platform == "darwin"
tensorflow>=2.10.0,<2.11.0

(faceswap) C:\Users\josh\faceswap>cat requirements/_requirements_base.txt
tqdm>=4.65
psutil>=5.9.0
numexpr>=2.8.4
numpy>=1.25.0
opencv-python>=4.7.0.0
pillow>=9.4.0,<10.0.0
scikit-learn>=1.2.2
fastcluster>=1.2.6
matplotlib>=3.7.1
imageio>=2.26.0
imageio-ffmpeg>=0.4.8
ffmpy>=0.3.0
pywin32>=228 ; sys_platform == "win32"

(faceswap) C:\Users\josh\faceswap>pip install pillow
Requirement already satisfied: pillow in c:\users\josh\miniconda3\envs\faceswap\lib\site-packages (9.3.0)

(faceswap) C:\Users\josh\faceswap>pip install pillow==9.4.0
Collecting pillow==9.4.0
Downloading Pillow-9.4.0-cp310-cp310-win_amd64.whl.metadata (9.4 kB)
Downloading Pillow-9.4.0-cp310-cp310-win_amd64.whl (2.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.5/2.5 MB 12.1 MB/s eta 0:00:00
Installing collected packages: pillow
Attempting uninstall: pillow
Found existing installation: Pillow 9.3.0
Uninstalling Pillow-9.3.0:
Successfully uninstalled Pillow-9.3.0
Successfully installed pillow-9.4.0

from faceswap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.