Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installation error ip-Adapter face #1553

Closed
ankasa-blank opened this issue Jan 21, 2025 · 8 comments
Closed

installation error ip-Adapter face #1553

ankasa-blank opened this issue Jan 21, 2025 · 8 comments
Labels
bug Something isn't working installation Issue with the installer

Comments

@ankasa-blank
Copy link

ankasa-blank commented Jan 21, 2025

hi, i want to ask. why i cant install ip-Adapter face stable deffution XL model and stable deffution 1.5 model. this is a client.log

Getting requirements to build wheel did not run successfully.

exit code: 1

[18 lines of output]

Traceback (most recent call last):

File "C:\Users\name\AppData\Roaming\krita\ai_diffusion\server\python\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>

  main()

File "C:\Users\name\AppData\Roaming\krita\ai_diffusion\server\python\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main

  json_out['return_val'] = hook(**hook_input['kwargs'])

                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "C:\Users\name\AppData\Roaming\krita\ai_diffusion\server\python\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel

  return hook(config_settings)

         ^^^^^^^^^^^^^^^^^^^^^

File "C:\Users\name\AppData\Roaming\krita\ai_diffusion\server\python\Lib\site-packages\setuptools\build_meta.py", line 334, in get_requires_for_build_wheel

  return self._get_build_requires(config_settings, requirements=[])

         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "C:\Users\name\AppData\Roaming\krita\ai_diffusion\server\python\Lib\site-packages\setuptools\build_meta.py", line 304, in _get_build_requires

  self.run_setup()

File "C:\Users\name\AppData\Roaming\krita\ai_diffusion\server\python\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup

  exec(code, locals())

File "<string>", line 11, in <module>

ModuleNotFoundError: No module named 'Cython'

[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

error: subprocess-exited-with-error

I've searched the issues page and still can't figure it out.

@Acly
Copy link
Owner

Acly commented Jan 21, 2025

If it's the server was installed originally a while back, it might still use an old Python version. Can't see it from the log right now, but you can check C:\Users\name\AppData\Roaming\krita\ai_diffusion\server\python folder. If it has files like python310.dll it's old (python311.dll should work).

In that case deleting the server and reinstalling is the best solution. You can backup your models folder (C:\Users\name\AppData\Roaming\krita\ai_diffusion\server\models) before so you don't have to download them again.

@Acly Acly added the installation Issue with the installer label Jan 21, 2025
@kiemlenet
Copy link

Hi. I have the same error, even with python311.dll :(

@UVSMG
Copy link

UVSMG commented Jan 21, 2025

yup i got this error too its error on ip adapter face sd 1.5 and xl
i try the dll, also try to wipe everything too and same still error.

2025-01-21 17:56:28,717 INFO Executing D:\Program Files\Krita (x64)\ai image diffusion\ComfyUI\python\python.exe -su -m pip install insightface
2025-01-21 17:56:29,747 INFO Collecting insightface
2025-01-21 17:56:29,811 INFO Using cached insightface-0.7.3.tar.gz (439 kB)
2025-01-21 17:56:29,840 INFO Installing build dependencies: started
2025-01-21 17:56:41,222 INFO Installing build dependencies: finished with status 'done'
2025-01-21 17:56:41,222 INFO Getting requirements to build wheel: started
2025-01-21 17:56:41,719 INFO Getting requirements to build wheel: finished with status 'error'
2025-01-21 17:56:42,442 ERROR Error during installation: error: subprocess-exited-with-error

Getting requirements to build wheel did not run successfully.

exit code: 1

[18 lines of output]

Traceback (most recent call last):

File "D:\Program Files\Krita (x64)\ai image diffusion\ComfyUI\python\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>

  main()

File "D:\Program Files\Krita (x64)\ai image diffusion\ComfyUI\python\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main

  json_out['return_val'] = hook(**hook_input['kwargs'])

                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "D:\Program Files\Krita (x64)\ai image diffusion\ComfyUI\python\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel

  return hook(config_settings)

         ^^^^^^^^^^^^^^^^^^^^^

File "D:\Program Files\Krita (x64)\ai image diffusion\ComfyUI\python\Lib\site-packages\setuptools\build_meta.py", line 334, in get_requires_for_build_wheel

  return self._get_build_requires(config_settings, requirements=[])

         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "D:\Program Files\Krita (x64)\ai image diffusion\ComfyUI\python\Lib\site-packages\setuptools\build_meta.py", line 304, in _get_build_requires

  self.run_setup()

File "D:\Program Files\Krita (x64)\ai image diffusion\ComfyUI\python\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup

  exec(code, locals())

File "<string>", line 11, in <module>

ModuleNotFoundError: No module named 'Cython'

[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

error: subprocess-exited-with-error

Getting requirements to build wheel did not run successfully.

exit code: 1

See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Traceback (most recent call last):
File "C:\Users\ultim\AppData\Roaming\krita\pykrita\ai_diffusion\server.py", line 313, in download
await self._install_requirements(resource.requirements, network, cb)
File "C:\Users\ultim\AppData\Roaming\krita\pykrita\ai_diffusion\server.py", line 253, in _install_requirements
await self._install_insightface(network, cb)
File "C:\Users\ultim\AppData\Roaming\krita\pykrita\ai_diffusion\server.py", line 247, in _install_insightface
await _execute_process("FaceID", self._pip_install("insightface"), self.path, cb)
File "C:\Users\ultim\AppData\Roaming\krita\pykrita\ai_diffusion\server.py", line 580, in execute_process
raise Exception(
("Error during installation") + f": {errlog}")
Exception: Error during installation: error: subprocess-exited-with-error

Getting requirements to build wheel did not run successfully.

exit code: 1

[18 lines of output]

Traceback (most recent call last):

File "D:\Program Files\Krita (x64)\ai image diffusion\ComfyUI\python\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>

  main()

File "D:\Program Files\Krita (x64)\ai image diffusion\ComfyUI\python\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main

  json_out['return_val'] = hook(**hook_input['kwargs'])

                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "D:\Program Files\Krita (x64)\ai image diffusion\ComfyUI\python\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel

  return hook(config_settings)

         ^^^^^^^^^^^^^^^^^^^^^

File "D:\Program Files\Krita (x64)\ai image diffusion\ComfyUI\python\Lib\site-packages\setuptools\build_meta.py", line 334, in get_requires_for_build_wheel

  return self._get_build_requires(config_settings, requirements=[])

         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "D:\Program Files\Krita (x64)\ai image diffusion\ComfyUI\python\Lib\site-packages\setuptools\build_meta.py", line 304, in _get_build_requires

  self.run_setup()

File "D:\Program Files\Krita (x64)\ai image diffusion\ComfyUI\python\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup

  exec(code, locals())

File "<string>", line 11, in <module>

ModuleNotFoundError: No module named 'Cython'

[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

error: subprocess-exited-with-error

Getting requirements to build wheel did not run successfully.

exit code: 1

See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

2025-01-21 17:56:42,443 INFO Found server installation v1.30.0 at D:\Program Files\Krita (x64)\ai image diffusion\ComfyUI

@Acly
Copy link
Owner

Acly commented Jan 21, 2025

Ah my bad, I think it only worked for me because it was still cached.

There is a bug, it can be fixed by editing server.py like this: 1b62f5b

The file is usually located in C:\Users<yourname>\AppData\Roaming\krita\pykrita\ai_diffusion

@Acly Acly added the bug Something isn't working label Jan 21, 2025
@UVSMG
Copy link

UVSMG commented Jan 21, 2025

Ah my bad, I think it only worked for me because it was still cached.

There is a bug, it can be fixed by editing server.py like this: 1b62f5b

The file is usually located in C:\Users\AppData\Roaming\krita\pykrita\ai_diffusion

thanks okay sir, it works now. i will try again to run the server after this. after i change server.py the server seems cannot run normally it keeps starting. many thanks

connection error: Error coroutine raised Stoplteration
it shows like this.

@ankasa-blank
Copy link
Author

ankasa-blank commented Jan 21, 2025

its work sir, thanks. after changing part of the script now it will run 👍

@priorGuesstimator
Copy link

Great
I installed and pathed cython, then it wanted a specific variant of MSVS C++ dev tools
I installed those, it then couldn't find python.h which is supposed to be in python-dev
and python dev tools won't install properly
but looks like changing that line fixed it

@100asset
Copy link

Ah my bad, I think it only worked for me because it was still cached.

There is a bug, it can be fixed by editing server.py like this: 1b62f5b

The file is usually located in C:\Users\AppData\Roaming\krita\pykrita\ai_diffusion

Eureka !!! Thank a lot Sir! I meet this problem any day. It 's work!!

@Acly Acly marked this as a duplicate of #1577 Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working installation Issue with the installer
Projects
None yet
Development

No branches or pull requests

6 participants