Closed whmc76 closed 1 year ago
Do you possibly have this installed? https://github.com/Fannovel16/comfy_controlnet_preprocessors Or this? https://github.com/Fannovel16/comfyui_controlnet_aux
yes installed https://github.com/Fannovel16/comfyui_controlnet_aux,
Try uninstalling both and installing controlnet_aux first and then installing this second. I recently changed the package requirements and I'm able to load both without problems.
thanks i will try it
I have another magic that may help you solve this problem.
Add the following code to the header of the main.py
file in the comfyui root directory (like: main.py#L1)
import onnx
from google.protobuf import reflection
Then restart ComfyUI. Maybe you can see something different.
I have another magic that may help you solve this problem. Add the following code to the header of the
main.py
file in the comfyui root directory (like: main.py#L1)import onnx from google.protobuf import reflection
Then restart ComfyUI. Maybe you can see something different.
Thank you!!
Traceback (most recent call last): File "E:\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1694, 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_roop__init.py", line 25, in
from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
File "E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_roop\nodes.py", line 3, in
from scripts.faceswap import FaceSwapScript, get_models
File "E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_roop\scripts\faceswap.py", line 16, in
from scripts.swapper import UpscaleOptions, swap_face, ImageResult
File "E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_roop\scripts\swapper.py", line 12, in
import insightface
File "E:\ComfyUI_windows_portable\python_embeded\lib\site-packages\insightface__init__.py", line 16, in
from . import model_zoo
File "E:\ComfyUI_windows_portable\python_embeded\lib\site-packages\insightface\model_zoo\ init.py", line 1, in
from .model_zoo import get_model
File "E:\ComfyUI_windows_portable\python_embeded\lib\site-packages\insightface\model_zoo\model_zoo.py", line 11, in
from .arcface_onnx import *
File "E:\ComfyUI_windows_portable\python_embeded\lib\site-packages\insightface\model_zoo\arcface_onnx.py", line 10, in
import onnx
File "E:\ComfyUI_windows_portable\python_embeded\lib\site-packages\onnx\ init__.py", line 13, in
from onnx.external_data_helper import (
File "E:\ComfyUI_windows_portable\python_embeded\lib\site-packages\onnx\external_data_helper.py", line 11, in from onnx.onnx_pb import AttributeProto, GraphProto, ModelProto, TensorProto
File "E:\ComfyUI_windows_portable\python_embeded\lib\site-packages\onnx\onnx_pb.py", line 4, in
from .onnx_ml_pb2 import * # noqa
File "E:\ComfyUI_windows_portable\python_embeded\lib\site-packages\onnx\onnx_ml_pb2.py", line 19, in
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'onnx.onnx_ml_pb2', globals())
File "E:\ComfyUI_windows_portable\python_embeded\lib\site-packages\google\protobuf\internal\builder.py", line 108, in BuildTopDescriptorsAndMessages
module[name] = BuildMessage(msg_des)
File "E:\ComfyUI_windows_portable\python_embeded\lib\site-packages\google\protobuf\internal\builder.py", line 85, in BuildMessage
message_class = _reflection.GeneratedProtocolMessageType(
TypeError: A Message class can only inherit from Message
Cannot import E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_roop module for custom nodes: A Message class can only inherit from Message