kijai / ComfyUI-KwaiKolorsWrapper

Diffusers wrapper to run Kwai-Kolors model
Apache License 2.0
546 stars 27 forks source link

RuntimeError: Failed to import diffusers.loaders.single_file #31

Open Duemellon opened 2 months ago

Duemellon commented 2 months ago

Traceback (most recent call last): File "E:\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1931, in load_custom_node module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-KwaiKolorsWrapper__init__.py", line 1, in from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS File "E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-KwaiKolorsWrapper\nodes.py", line 16, in from .kolors.pipelines.pipeline_stable_diffusion_xl_chatglm_256 import StableDiffusionXLPipeline File "E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-KwaiKolorsWrapper\kolors\pipelines\pipeline_stable_diffusion_xl_chatglm_256.py", line 21, in from diffusers.loaders import FromSingleFileMixin, LoraLoaderMixin File "", line 1075, in _handle_fromlist File "D:\Python\Python310\lib\site-packages\diffusers\utils\import_utils.py", line 798, in getattr module = self._get_module(self._class_to_module[name]) File "D:\Python\Python310\lib\site-packages\diffusers\utils\import_utils.py", line 810, in _get_module raise RuntimeError( RuntimeError: Failed to import diffusers.loaders.single_file because of the following error (look up to see its traceback): Failed to import transformers.models.auto.image_processing_auto because of the following error (look up to see its traceback): Descriptors cannot be created directly. If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0. If you cannot immediately regenerate your protos, some other possible workarounds are:

  1. Downgrade the protobuf package to 3.20.x or lower.
  2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates

Cannot import E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-KwaiKolorsWrapper module for custom nodes: Failed to import diffusers.loaders.single_file because of the following error (look up to see its traceback): Failed to import transformers.models.auto.image_processing_auto because of the following error (look up to see its traceback): Descriptors cannot be created directly. If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0. If you cannot immediately regenerate your protos, some other possible workarounds are:

  1. Downgrade the protobuf package to 3.20.x or lower.
  2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates

Loading: ComfyUI-Manager (V2.46.3)

ComfyUI Revision: 2383 [11b74147] | Released on '2024-07-19'

[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json

install llama-cpp-python error

Duemellon commented 2 months ago

I'm using the default workflow.

Ran ComfyUI and the nodes came up instead of being red. However, when I told it to run I still got:

image

I deleted all the GetVAE/connector wireless nodes & it progressed to the Sampler then bombed with

image

Guess I need to figure out where/how to get the Euler recognized/installed

kijai commented 2 months ago

I think your diffusers install is just outdated.