kijai/ComfyUI-Marigold

Marigold import failed ,cannot import name 'builder' from 'google.protobuf.internal'

Opened this issue · 1 comments

appzk commented

File "D:\ComfyUI-aki-v1.2\custom_nodes\ComfyUI-Marigold_init_.py", line 1, in
from .nodes import MarigoldDepthEstimation, MarigoldDepthEstimationVideo, ColorizeDepthmap, SaveImageOpenEXR, RemapDepth
File "D:\ComfyUI-aki-v1.2\custom_nodes\ComfyUI-Marigold\nodes.py", line 8, in
from .marigold.model.marigold_pipeline import MarigoldPipeline
File "D:\ComfyUI-aki-v1.2\custom_nodes\ComfyUI-Marigold\marigold\model\marigold_pipeline.py", line 9, in
from diffusers import (
File "", line 1075, in _handle_fromlist
File "D:\ComfyUI-aki-v1.2\python\lib\site-packages\diffusers\utils\import_utils.py", line 799, in getattr
value = getattr(module, name)
File "D:\ComfyUI-aki-v1.2\python\lib\site-packages\diffusers\utils\import_utils.py", line 798, in getattr
module = self._get_module(self._class_to_module[name])
File "D:\ComfyUI-aki-v1.2\python\lib\site-packages\diffusers\utils\import_utils.py", line 810, in get_module
raise RuntimeError(
RuntimeError: Failed to import diffusers.models.unets.unet_2d_condition because of the following error (look up to see its traceback):
Failed to import diffusers.loaders.single_file_model 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):
cannot import name 'builder' from 'google.protobuf.internal' (D:\ComfyUI-aki-v1.2\python\lib\site-packages\google\protobuf\internal_init
.py)

Cannot import D:\ComfyUI-aki-v1.2\custom_nodes\ComfyUI-Marigold module for custom nodes: Failed to import diffusers.models.unets.unet_2d_condition because of the following error (look up to see its traceback):
Failed to import diffusers.loaders.single_file_model 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):
cannot import name 'builder' from 'google.protobuf.internal' (D:\ComfyUI-aki-v1.2\python\lib\site-packages\google\protobuf\internal_init_.py)

my env

[SD-Launcher] D:\ComfyUI-aki-v1.2>python
Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> print(torch.__version__)
2.1.2+cu118
>>> print(torch.cuda.is_available()) 
True
>>> print(torch.version.cuda) 
11.8

diffusers 0.29.2
image

kijai commented

Seems to be error from protobuf rather than diffusers?