krita-ai-diffusion icon indicating copy to clipboard operation
krita-ai-diffusion copied to clipboard

Nothing works for me, Windows just can't find anything. What should I do?

Open LyraCelbritz opened this issue 9 months ago • 5 comments

Image Nothing works for me, Windows just can't find anything. What should I do?

LyraCelbritz avatar May 11 '25 11:05 LyraCelbritz

  File "C:\Users\User\AppData\Roaming\krita\pykrita\ai_diffusion\server.py", line 310, in install
    await self._install(cb)
  File "C:\Users\User\AppData\Roaming\krita\pykrita\ai_diffusion\server.py", line 150, in _install
    await try_install(self.path / "uv", self._install_uv, network, cb)
  File "C:\Users\User\AppData\Roaming\krita\pykrita\ai_diffusion\server.py", line 631, in try_install
    raise e
  File "C:\Users\User\AppData\Roaming\krita\pykrita\ai_diffusion\server.py", line 626, in try_install
    await installer(*args)
  File "C:\Users\User\AppData\Roaming\krita\pykrita\ai_diffusion\server.py", line 205, in _install_uv
    await _execute_process("Python", cmd, self.path, cb, env=env)
  File "C:\Users\User\AppData\Roaming\krita\pykrita\ai_diffusion\server.py", line 603, in _execute_process
    process = await create_process(cmd[0], *cmd[1:], cwd=cwd, additional_env=env, pipe_stderr=True)
  File "C:\Users\User\AppData\Roaming\krita\pykrita\ai_diffusion\util.py", line 222, in create_process
    p = await asyncio.create_subprocess_exec(
  File "asyncio\subprocess.py", line 218, in create_subprocess_exec
  File "asyncio\base_events.py", line 1667, in subprocess_exec
  File "asyncio\windows_events.py", line 394, in _make_subprocess_transport
  File "asyncio\base_subprocess.py", line 36, in __init__
  File "asyncio\windows_events.py", line 890, in _start
  File "asyncio\windows_utils.py", line 153, in __init__
  File "subprocess.py", line 969, in __init__
  File "subprocess.py", line 1438, in _execute_child
FileNotFoundError: [WinError 2] Не удается найти указанный файл
2025-05-11 20:45:46,253 ERROR Installation failed
2025-05-11 20:45:46,253 INFO Found server installation vincomplete at D:\RTX\Krita (x64)\python\ComfyUI
2025-05-11 20:49:29,443 INFO Installation started in D:\RTX\Krita (x64)\python\ComfyUI
2025-05-11 20:49:29,446 INFO Downloading https://astral.sh/uv/0.6.10/install.ps1 to D:\RTX\Krita (x64)\python\ComfyUI\.cache\install_uv.ps1
2025-05-11 20:49:30,528 INFO Executing powershell -ExecutionPolicy Bypass -File D:\RTX\Krita (x64)\python\ComfyUI\.cache\install_uv.ps1
2025-05-11 20:49:30,531 ERROR [WinError 2] Не удается найти указанный файл
Traceback (most recent call last):
  File "C:\Users\User\AppData\Roaming\krita\pykrita\ai_diffusion\server.py", line 310, in install
    await self._install(cb)
  File "C:\Users\User\AppData\Roaming\krita\pykrita\ai_diffusion\server.py", line 150, in _install
    await try_install(self.path / "uv", self._install_uv, network, cb)
  File "C:\Users\User\AppData\Roaming\krita\pykrita\ai_diffusion\server.py", line 631, in try_install
    raise e
  File "C:\Users\User\AppData\Roaming\krita\pykrita\ai_diffusion\server.py", line 626, in try_install
    await installer(*args)
  File "C:\Users\User\AppData\Roaming\krita\pykrita\ai_diffusion\server.py", line 205, in _install_uv
    await _execute_process("Python", cmd, self.path, cb, env=env)
  File "C:\Users\User\AppData\Roaming\krita\pykrita\ai_diffusion\server.py", line 603, in _execute_process
    process = await create_process(cmd[0], *cmd[1:], cwd=cwd, additional_env=env, pipe_stderr=True)
  File "C:\Users\User\AppData\Roaming\krita\pykrita\ai_diffusion\util.py", line 222, in create_process
    p = await asyncio.create_subprocess_exec(
  File "asyncio\subprocess.py", line 218, in create_subprocess_exec
  File "asyncio\base_events.py", line 1667, in subprocess_exec
  File "asyncio\windows_events.py", line 394, in _make_subprocess_transport
  File "asyncio\base_subprocess.py", line 36, in __init__
  File "asyncio\windows_events.py", line 890, in _start
  File "asyncio\windows_utils.py", line 153, in __init__
  File "subprocess.py", line 969, in __init__
  File "subprocess.py", line 1438, in _execute_child
FileNotFoundError: [WinError 2] Не удается найти указанный файл
2025-05-11 20:49:30,531 ERROR Installation failed
2025-05-11 20:49:30,531 INFO Found server installation vincomplete at D:\RTX\Krita (x64)\python\ComfyUI```

LyraCelbritz avatar May 11 '25 11:05 LyraCelbritz

It needs to find Windows PowerShell, which usually comes with a standard windows installation.

What Windows version do you use? You might be able to install it if its missing, search for "windows powershell not found" or similar.

Acly avatar May 11 '25 14:05 Acly

windows 10

LyraCelbritz avatar May 11 '25 15:05 LyraCelbritz

What the hell, I already have Windows PowerShell

LyraCelbritz avatar May 11 '25 15:05 LyraCelbritz

What the hell, I already have Windows PowerShell

Well that's something. Maybe it can't be found because it's not in your environment path. See https://stackoverflow.com/questions/29778121/powershell-is-not-recognized-as-an-internal-or-external-command-operable-progr

Acly avatar May 11 '25 17:05 Acly

Release v1.35.0 will also find PowerShell where it's typically installed in the Windows folder.

Acly avatar May 24 '25 18:05 Acly