nicofdga / DZ-FaceDetailer

a node for comfyui for restore/edit/enchance faces utilizing face recognition
MIT License
152 stars 14 forks source link

fails to install on comfyUI portable. #4

Closed Ferniclestix closed 11 months ago

Ferniclestix commented 1 year ago

No idea why, installs dependancies fine.

`Traceback (most recent call last):
  File "D:\othercomfy\origin\ComfyUI_windows_portable_test\ComfyUI\custom_nodes\facedetailer\__init__.py", line 9, in <module>
    from .FaceDetailer import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
  File "D:\othercomfy\origin\ComfyUI_windows_portable_test\ComfyUI\custom_nodes\facedetailer\FaceDetailer.py", line 2, in <module>
    from mediapipe import solutions
  File "D:\othercomfy\origin\ComfyUI_windows_portable_test\python_embeded\lib\site-packages\mediapipe\__init__.py", line 16, in <module>
    import mediapipe.python.solutions as solutions
  File "D:\othercomfy\origin\ComfyUI_windows_portable_test\python_embeded\lib\site-packages\mediapipe\python\solutions\__init__.py", line 17, in <module>
    import mediapipe.python.solutions.drawing_styles
  File "D:\othercomfy\origin\ComfyUI_windows_portable_test\python_embeded\lib\site-packages\mediapipe\python\solutions\drawing_styles.py", line 20, in <module>
    from mediapipe.python.solutions.drawing_utils import DrawingSpec
  File "D:\othercomfy\origin\ComfyUI_windows_portable_test\python_embeded\lib\site-packages\mediapipe\python\solutions\drawing_utils.py", line 24, in <module>
    from mediapipe.framework.formats import detection_pb2
  File "D:\othercomfy\origin\ComfyUI_windows_portable_test\python_embeded\lib\site-packages\mediapipe\framework\formats\detection_pb2.py", line 14, in <module>
    from mediapipe.framework.formats import location_data_pb2 as mediapipe_dot_framework_dot_formats_dot_location__data__pb2
  File "D:\othercomfy\origin\ComfyUI_windows_portable_test\python_embeded\lib\site-packages\mediapipe\framework\formats\location_data_pb2.py", line 14, in <module>
    from mediapipe.framework.formats.annotation import rasterization_pb2 as mediapipe_dot_framework_dot_formats_dot_annotation_dot_rasterization__pb2
  File "D:\othercomfy\origin\ComfyUI_windows_portable_test\python_embeded\lib\site-packages\mediapipe\framework\formats\annotation\rasterization_pb2.py", line 20, in <module>
    _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'mediapipe.framework.formats.annotation.rasterization_pb2', _globals)
  File "D:\othercomfy\origin\ComfyUI_windows_portable_test\python_embeded\lib\site-packages\google\protobuf\internal\builder.py", line 108, in BuildTopDescriptorsAndMessages
    module[name] = BuildMessage(msg_des)
  File "D:\othercomfy\origin\ComfyUI_windows_portable_test\python_embeded\lib\site-packages\google\protobuf\internal\builder.py", line 82, in BuildMessage
    create_dict[name] = BuildMessage(nested_msg)
  File "D:\othercomfy\origin\ComfyUI_windows_portable_test\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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\othercomfy\origin\ComfyUI_windows_portable_test\ComfyUI\nodes.py", line 1688, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "D:\othercomfy\origin\ComfyUI_windows_portable_test\ComfyUI\custom_nodes\facedetailer\__init__.py", line 17, in <module>
    from .FaceDetailer import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
  File "D:\othercomfy\origin\ComfyUI_windows_portable_test\ComfyUI\custom_nodes\facedetailer\FaceDetailer.py", line 2, in <module>
    from mediapipe import solutions
  File "D:\othercomfy\origin\ComfyUI_windows_portable_test\python_embeded\lib\site-packages\mediapipe\__init__.py", line 16, in <module>
    import mediapipe.python.solutions as solutions
  File "D:\othercomfy\origin\ComfyUI_windows_portable_test\python_embeded\lib\site-packages\mediapipe\python\solutions\__init__.py", line 17, in <module>
    import mediapipe.python.solutions.drawing_styles
  File "D:\othercomfy\origin\ComfyUI_windows_portable_test\python_embeded\lib\site-packages\mediapipe\python\solutions\drawing_styles.py", line 20, in <module>
    from mediapipe.python.solutions.drawing_utils import DrawingSpec
  File "D:\othercomfy\origin\ComfyUI_windows_portable_test\python_embeded\lib\site-packages\mediapipe\python\solutions\drawing_utils.py", line 24, in <module>
    from mediapipe.framework.formats import detection_pb2
  File "D:\othercomfy\origin\ComfyUI_windows_portable_test\python_embeded\lib\site-packages\mediapipe\framework\formats\detection_pb2.py", line 14, in <module>
    from mediapipe.framework.formats import location_data_pb2 as mediapipe_dot_framework_dot_formats_dot_location__data__pb2
  File "D:\othercomfy\origin\ComfyUI_windows_portable_test\python_embeded\lib\site-packages\mediapipe\framework\formats\location_data_pb2.py", line 14, in <module>
    from mediapipe.framework.formats.annotation import rasterization_pb2 as mediapipe_dot_framework_dot_formats_dot_annotation_dot_rasterization__pb2
  File "D:\othercomfy\origin\ComfyUI_windows_portable_test\python_embeded\lib\site-packages\mediapipe\framework\formats\annotation\rasterization_pb2.py", line 20, in <module>
    _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'mediapipe.framework.formats.annotation.rasterization_pb2', _globals)
  File "D:\othercomfy\origin\ComfyUI_windows_portable_test\python_embeded\lib\site-packages\google\protobuf\internal\builder.py", line 108, in BuildTopDescriptorsAndMessages
    module[name] = BuildMessage(msg_des)
  File "D:\othercomfy\origin\ComfyUI_windows_portable_test\python_embeded\lib\site-packages\google\protobuf\internal\builder.py", line 82, in BuildMessage
    create_dict[name] = BuildMessage(nested_msg)
  File "D:\othercomfy\origin\ComfyUI_windows_portable_test\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 D:\othercomfy\origin\ComfyUI_windows_portable_test\ComfyUI\custom_nodes\facedetailer module for custom nodes: A Message class can only inherit from Message`
whmc76 commented 1 year ago

I have the same problem

nicofdga commented 11 months ago

I have never tried it on comfyui portable, I will do it today and try to fix the errors.

nicofdga commented 11 months ago

Is working on comfyui portable now, i fixed the path and some parts of the code.