numz / sd-wav2lip-uhq

Wav2Lip UHQ extension for Automatic1111
Apache License 2.0
1.23k stars 163 forks source link

The system cannot find the path specified #14

Closed JekillHY closed 1 year ago

JekillHY commented 1 year ago

Hi! Trying to install this extension. But after installing and restarting the UI an error is thrown. I am using the portable build A1111 by Xpuct and all the extensions I have installed are working properly. This build is updated with the original version. FFMPEG and other dependencies are installed, paths are set.

Screenshots of the error THERE

Is there any solution to this problem?

alexbofa commented 1 year ago

The same


File "D:\SD\launch.py", line 39, in <module>
    main()
  File "D:\SD\launch.py", line 35, in main
    start()
  File "D:\SD\modules\launch_utils.py", line 390, in start
    import webui
  File "D:\SD\webui.py", line 61, in <module>
    from modules import shared, sd_samplers, upscaler, extensions, localization, ui_tempdir, ui_extra_networks, config_states
  File "D:\SD\modules\sd_samplers.py", line 1, in <module>
    from modules import sd_samplers_compvis, sd_samplers_kdiffusion, shared
  File "D:\SD\modules\sd_samplers_compvis.py", line 9, in <module>
    from modules import sd_samplers_common, prompt_parser, shared
  File "D:\SD\modules\sd_samplers_common.py", line 5, in <module>
    from modules import devices, processing, images, sd_vae_approx, sd_samplers, sd_vae_taesd
  File "D:\SD\modules\processing.py", line 13, in <module>
    from skimage import exposure
  File "D:\SD\venv\lib\site-packages\skimage\__init__.py", line 141, in <module>
    from .data import data_dir
  File "<frozen importlib._bootstrap>", line 1075, in _handle_fromlist
  File "D:\SD\venv\lib\site-packages\lazy_loader\__init__.py", line 77, in __getattr__
    submod = importlib.import_module(submod_path)
  File "D:\SD\python\lib\importlib\__init__.py", line 126, in import_module    return _bootstrap._gcd_import(name[level:], package, level)
  File "D:\SD\venv\lib\site-packages\skimage\data\_fetchers.py", line 134, in <module>
    image_fetcher, data_dir = create_image_fetcher()
  File "D:\SD\venv\lib\site-packages\skimage\data\_fetchers.py", line 117, in create_image_fetcher
    path=pooch.os_cache("scikit-image"),
  File "D:\SD\venv\lib\site-packages\pooch\utils.py", line 99, in os_cache
    return Path(appdirs.user_cache_dir(project))
  File "D:\SD\venv\lib\site-packages\appdirs.py", line 293, in user_cache_dir
    path = os.path.normpath(_get_win_folder("CSIDL_LOCAL_APPDATA"))
  File "D:\SD\venv\lib\site-packages\appdirs.py", line 481, in _get_win_folder_with_pywin32
    dir = shell.SHGetFolderPath(0, getattr(shellcon, csidl_name), 0, 0)
pywintypes.com_error: (-2147024893, 'The system cannot find the path specified.', None, None)
Press any key to continue . . .```
numz commented 1 year ago

Hi!

Really sorry about this error, can you tell me :

Thanks

alexbofa commented 1 year ago

Hello!

Python 3.10.9 (tags/v3.10.9:1dd9be6, Dec  6 2022, 20:01:21) [MSC v.1934 64 bit (AMD64)]
Version: v1.5.1
Commit hash: 68f336bd994bed5442ad95bad6b6ad5564a5409a

I fixed it like this, but I don't know if it's right, but it works. I assume this is an error in the appdirs module

I created a .bat with such data, before replacing ..\extensions\sd-wav2lip-uhq\requirements.txt this requirements.txt

set appdata=tmp
set userprofile=tmp
set temp=tmp
set path=git\cmd;python;venv\scripts
call venv\scripts\activate.bat
pip uninstall appdirs
numz commented 1 year ago

Thanks for your fix,

Appdirs is a depreciate package, i'm ok with the solution

I close this issue because it not due to sd-wav2lip-uhq

Thanks

alexbofa commented 1 year ago

Do you know why it can be created appdirs? I can't find an extension yet that creates this module from time to time.

numz commented 1 year ago

I think that came from your Installer

Ask to the dev

Regards