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

Can't install #15

Open
Dunc4n1dah0 opened this issue Feb 4, 2025 · 5 comments
Open

Can't install #15

Dunc4n1dah0 opened this issue Feb 4, 2025 · 5 comments

Comments

@Dunc4n1dah0
Copy link

Traceback (most recent call last):
  File "E:\Comfy-25\nodes.py", line 2110, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "E:\Comfy-25\custom_nodes\ComfyUI_InvSR\__init__.py", line 1, in <module>
    from .node import LoadInvSRModels, InvSRSampler
  File "E:\Comfy-25\custom_nodes\ComfyUI_InvSR\node.py", line 1, in <module>
    from .comfyui_invsr_trimmed import get_configs, InvSamplerSR, BaseSampler, Namespace
  File "E:\Comfy-25\custom_nodes\ComfyUI_InvSR\comfyui_invsr_trimmed\__init__.py", line 1, in <module>
    from .inference_invsr import get_configs, Namespace
  File "E:\Comfy-25\custom_nodes\ComfyUI_InvSR\comfyui_invsr_trimmed\inference_invsr.py", line 8, in <module>
    from .sampler_invsr import InvSamplerSR, BaseSampler
  File "E:\Comfy-25\custom_nodes\ComfyUI_InvSR\comfyui_invsr_trimmed\sampler_invsr.py", line 20, in <module>
    from .pipeline_stable_diffusion_inversion_sr import StableDiffusionInvEnhancePipeline
  File "E:\Comfy-25\custom_nodes\ComfyUI_InvSR\comfyui_invsr_trimmed\pipeline_stable_diffusion_inversion_sr.py", line 27, in <module>
    from diffusers.loaders import FromSingleFileMixin, IPAdapterMixin, StableDiffusionLoraLoaderMixin, TextualInversionLoaderMixin
ImportError: cannot import name 'StableDiffusionLoraLoaderMixin' from 'diffusers.loaders' (E:\Comfy-25\.venv\Lib\site-packages\diffusers\loaders\__init__.py)

Cannot import E:\Comfy-25\custom_nodes\ComfyUI_InvSR module for custom nodes: cannot import name 'StableDiffusionLoraLoaderMixin' from 'diffusers.loaders' (E:\Comfy-25\.venv\Lib\site-packages\diffusers\loaders\__init__.py)

Nodes won't install (I used Manager)
Latest updated Comfy.
ComfyUI version: 0.3.13

@yuvraj108c
Copy link
Owner

yuvraj108c commented Feb 4, 2025

Try installing manually as per the readme!
you should have diffusers>=0.28

@Dunc4n1dah0
Copy link
Author

I checked requirements.txt with pip freeze, I have all dependencies.

@yuvraj108c
Copy link
Owner

what version of diffusers do you have?
pip show diffusers

@Dunc4n1dah0
Copy link
Author

diffusers==0.29.2

@canopysgit
Copy link

how to solve this install issue?

C:\ComfyUI-aki-v1.4\custom_nodes\ComfyUI_InvSR-main>pip install -r requirements.txt
Collecting opencv-contrib-python-headless (from -r requirements.txt (line 1))
Using cached opencv_contrib_python_headless-4.11.0.86-cp37-abi3-win_amd64.whl.metadata (20 kB)
Requirement already satisfied: omegaconf in c:\users\m1501\appdata\local\programs\python\python313\lib\site-packages (from -r requirements.txt (line 2)) (2.3.0)
Collecting diffusers>=0.28.0 (from -r requirements.txt (line 3))
Using cached diffusers-0.32.2-py3-none-any.whl.metadata (18 kB)
Collecting numpy<2 (from -r requirements.txt (line 4))
Using cached numpy-1.26.4.tar.gz (15.8 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [21 lines of output]
+ C:\Users\m1501\AppData\Local\Programs\Python\Python313\python.exe C:\Users\m1501\AppData\Local\Temp\pip-install-n8xuoe69\numpy_6ee43d9283904a789f6352fecc117077\vendored-meson\meson\meson.py setup C:\Users\m1501\AppData\Local\Temp\pip-install-n8xuoe69\numpy_6ee43d9283904a789f6352fecc117077 C:\Users\m1501\AppData\Local\Temp\pip-install-n8xuoe69\numpy_6ee43d9283904a789f6352fecc117077.mesonpy-ixtrllex -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\m1501\AppData\Local\Temp\pip-install-n8xuoe69\numpy_6ee43d9283904a789f6352fecc117077.mesonpy-ixtrllex\meson-python-native-file.ini
The Meson build system
Version: 1.2.99
Source dir: C:\Users\m1501\AppData\Local\Temp\pip-install-n8xuoe69\numpy_6ee43d9283904a789f6352fecc117077
Build dir: C:\Users\m1501\AppData\Local\Temp\pip-install-n8xuoe69\numpy_6ee43d9283904a789f6352fecc117077.mesonpy-ixtrllex
Build type: native build
Project name: NumPy
Project version: 1.26.4
WARNING: Failed to activate VS environment: Could not find C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe

  ..\meson.build:1:0: ERROR: Unknown compiler(s): [['icl'], ['cl'], ['cc'], ['gcc'], ['clang'], ['clang-cl'], ['pgcc']]
  The following exception(s) were encountered:
  Running `icl ""` gave "[WinError 2] 系统找不到指定的文件。"
  Running `cl /?` gave "[WinError 2] 系统找不到指定的文件。"
  Running `cc --version` gave "[WinError 2] 系统找不到指定的文件。"
  Running `gcc --version` gave "[WinError 2] 系统找不到指定的文件。"
  Running `clang --version` gave "[WinError 2] 系统找不到指定的文件。"
  Running `clang-cl /?` gave "[WinError 2] 系统找不到指定的文件。"
  Running `pgcc --version` gave "[WinError 2] 系统找不到指定的文件。"

  A full log can be found at C:\Users\m1501\AppData\Local\Temp\pip-install-n8xuoe69\numpy_6ee43d9283904a789f6352fecc117077\.mesonpy-ixtrllex\meson-logs\meson-log.txt
  [end of output]

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

[notice] A new release of pip is available: 24.3.1 -> 25.0
[notice] To update, run: python.exe -m pip install --upgrade pip
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants