应急食品银狼 2024-07-15 14:00 采纳率: 0%
浏览 91

comfy UI的manage插件无法使用

问题遇到的现象和发生背景 comful UI在导入manage插件后出现报错,启动后没有显示manage按钮。汉化插件也是,没有效果。该怎么解决呢
操作环境、软件版本等信息

以下是运行的所有信息

E:\ComfyUI>.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build
[START] Security scan
[DONE] Security scan
## ComfyUI-Manager: installing dependencies. (GitPython)
ERROR: Exception:
Traceback (most recent call last):
  File "E:\ComfyUI\python_embeded\Lib\site-packages\pip\_vendor\urllib3\response.py", line 438, in _error_catcher
    yield
  File "E:\ComfyUI\python_embeded\Lib\site-packages\pip\_vendor\urllib3\response.py", line 561, in read
    data = self._fp_read(amt) if not fp_closed else b""
           ^^^^^^^^^^^^^^^^^^
  File "E:\ComfyUI\python_embeded\Lib\site-packages\pip\_vendor\urllib3\response.py", line 527, in _fp_read
    return self._fp.read(amt) if amt is not None else self._fp.read()
           ^^^^^^^^^^^^^^^^^^
  File "E:\ComfyUI\python_embeded\Lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 98, in read
    data: bytes = self.__fp.read(amt)
                  ^^^^^^^^^^^^^^^^^^^
  File "http\client.py", line 466, in read
  File "socket.py", line 706, in readinto
  File "ssl.py", line 1311, in recv_into
  File "ssl.py", line 1167, in read
TimeoutError: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\ComfyUI\python_embeded\Lib\site-packages\pip\_internal\cli\base_command.py", line 180, in exc_logging_wrapper
    status = run_func(*args)
             ^^^^^^^^^^^^^^^
  File "E:\ComfyUI\python_embeded\Lib\site-packages\pip\_internal\cli\req_command.py", line 245, in wrapper
    return func(self, options, args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\ComfyUI\python_embeded\Lib\site-packages\pip\_internal\commands\install.py", line 377, in run
    requirement_set = resolver.resolve(
                      ^^^^^^^^^^^^^^^^^
  File "E:\ComfyUI\python_embeded\Lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 179, in resolve
    self.factory.preparer.prepare_linked_requirements_more(reqs)
  File "E:\ComfyUI\python_embeded\Lib\site-packages\pip\_internal\operations\prepare.py", line 552, in prepare_linked_requirements_more
    self._complete_partial_requirements(
  File "E:\ComfyUI\python_embeded\Lib\site-packages\pip\_internal\operations\prepare.py", line 467, in _complete_partial_requirements
    for link, (filepath, _) in batch_download:
  File "E:\ComfyUI\python_embeded\Lib\site-packages\pip\_internal\network\download.py", line 183, in __call__
    for chunk in chunks:
  File "E:\ComfyUI\python_embeded\Lib\site-packages\pip\_internal\cli\progress_bars.py", line 53, in _rich_progress_bar
    for chunk in iterable:
  File "E:\ComfyUI\python_embeded\Lib\site-packages\pip\_internal\network\utils.py", line 63, in response_chunks
    for chunk in response.raw.stream(
  File "E:\ComfyUI\python_embeded\Lib\site-packages\pip\_vendor\urllib3\response.py", line 622, in stream
    data = self.read(amt=amt, decode_content=decode_content)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\ComfyUI\python_embeded\Lib\site-packages\pip\_vendor\urllib3\response.py", line 560, in read
    with self._error_catcher():
  File "contextlib.py", line 155, in __exit__
  File "E:\ComfyUI\python_embeded\Lib\site-packages\pip\_vendor\urllib3\response.py", line 443, in _error_catcher
    raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.

[notice] A new release of pip is available: 23.3.2 -> 24.1.2
[notice] To update, run: E:\ComfyUI\python_embeded\python.exe -m pip install --upgrade pip
## [ERROR] ComfyUI-Manager: Attempting to reinstall dependencies using an alternative method.
ERROR: Exception:
Traceback (most recent call last):
  File "E:\ComfyUI\python_embeded\Lib\site-packages\pip\_vendor\urllib3\response.py", line 438, in _error_catcher
    yield
  File "E:\ComfyUI\python_embeded\Lib\site-packages\pip\_vendor\urllib3\response.py", line 561, in read
    data = self._fp_read(amt) if not fp_closed else b""
           ^^^^^^^^^^^^^^^^^^
  File "E:\ComfyUI\python_embeded\Lib\site-packages\pip\_vendor\urllib3\response.py", line 527, in _fp_read
    return self._fp.read(amt) if amt is not None else self._fp.read()
           ^^^^^^^^^^^^^^^^^^
  File "E:\ComfyUI\python_embeded\Lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 98, in read
    data: bytes = self.__fp.read(amt)
                  ^^^^^^^^^^^^^^^^^^^
  File "http\client.py", line 466, in read
  File "socket.py", line 706, in readinto
  File "ssl.py", line 1311, in recv_into
  File "ssl.py", line 1167, in read
TimeoutError: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\ComfyUI\python_embeded\Lib\site-packages\pip\_internal\cli\base_command.py", line 180, in exc_logging_wrapper
    status = run_func(*args)
             ^^^^^^^^^^^^^^^
  File "E:\ComfyUI\python_embeded\Lib\site-packages\pip\_internal\cli\req_command.py", line 245, in wrapper
    return func(self, options, args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\ComfyUI\python_embeded\Lib\site-packages\pip\_internal\commands\install.py", line 377, in run
    requirement_set = resolver.resolve(
                      ^^^^^^^^^^^^^^^^^
  File "E:\ComfyUI\python_embeded\Lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 179, in resolve
    self.factory.preparer.prepare_linked_requirements_more(reqs)
  File "E:\ComfyUI\python_embeded\Lib\site-packages\pip\_internal\operations\prepare.py", line 552, in prepare_linked_requirements_more
    self._complete_partial_requirements(
  File "E:\ComfyUI\python_embeded\Lib\site-packages\pip\_internal\operations\prepare.py", line 467, in _complete_partial_requirements
    for link, (filepath, _) in batch_download:
  File "E:\ComfyUI\python_embeded\Lib\site-packages\pip\_internal\network\download.py", line 183, in __call__
    for chunk in chunks:
  File "E:\ComfyUI\python_embeded\Lib\site-packages\pip\_internal\cli\progress_bars.py", line 53, in _rich_progress_bar
    for chunk in iterable:
  File "E:\ComfyUI\python_embeded\Lib\site-packages\pip\_internal\network\utils.py", line 63, in response_chunks
    for chunk in response.raw.stream(
  File "E:\ComfyUI\python_embeded\Lib\site-packages\pip\_vendor\urllib3\response.py", line 622, in stream
    data = self.read(amt=amt, decode_content=decode_content)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\ComfyUI\python_embeded\Lib\site-packages\pip\_vendor\urllib3\response.py", line 560, in read
    with self._error_catcher():
  File "contextlib.py", line 155, in __exit__
  File "E:\ComfyUI\python_embeded\Lib\site-packages\pip\_vendor\urllib3\response.py", line 443, in _error_catcher
    raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.

[notice] A new release of pip is available: 23.3.2 -> 24.1.2
[notice] To update, run: E:\ComfyUI\python_embeded\python.exe -m pip install --upgrade pip
## [ERROR] ComfyUI-Manager: Failed to install the GitPython package in the correct Python environment. Please install it manually in the appropriate environment. (You can seek help at https://app.element.io/#/room/%23comfyui_space%3Amatrix.org)
## [ERROR] ComfyUI-Manager: GitPython package seems to be installed, but failed to load somehow. Make sure you have a working git client installed
** ComfyUI startup time: 2024-07-15 13:48:17.581491
** Platform: Windows
** Python version: 3.11.6 (tags/v3.11.6:8b6ee5b, Oct  2 2023, 14:57:12) [MSC v.1935 64 bit (AMD64)]
** Python executable: E:\ComfyUI\python_embeded\python.exe
** ComfyUI Path: E:\ComfyUI\ComfyUI
** Log path: E:\ComfyUI\comfyui.log

Prestartup times for custom nodes:
  99.2 seconds: E:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-Manager

Total VRAM 6140 MB, total RAM 16104 MB
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 4050 Laptop GPU : cudaMallocAsync
VAE dtype: torch.bfloat16
Using pytorch cross attention
Adding extra search path checkpoints path/to/stable-diffusion-webui/models/Stable-diffusion
Adding extra search path configs path/to/stable-diffusion-webui/models/Stable-diffusion
Adding extra search path vae path/to/stable-diffusion-webui/models/VAE
Adding extra search path loras path/to/stable-diffusion-webui/models/Lora
Adding extra search path loras path/to/stable-diffusion-webui/models/LyCORIS
Adding extra search path upscale_models path/to/stable-diffusion-webui/models/ESRGAN
Adding extra search path upscale_models path/to/stable-diffusion-webui/models/RealESRGAN
Adding extra search path upscale_models path/to/stable-diffusion-webui/models/SwinIR
Adding extra search path embeddings path/to/stable-diffusion-webui/embeddings
Adding extra search path hypernetworks path/to/stable-diffusion-webui/models/hypernetworks
Adding extra search path controlnet path/to/stable-diffusion-webui/models/ControlNet
Traceback (most recent call last):
  File "E:\ComfyUI\ComfyUI\nodes.py", line 1893, 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:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-Manager\__init__.py", line 6, in <module>
    from .glob import manager_server
  File "E:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-Manager\glob\manager_server.py", line 15, in <module>
    import git
ModuleNotFoundError: No module named 'git'

Cannot import E:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-Manager module for custom nodes: No module named 'git'

Import times for custom nodes:
   0.0 seconds (IMPORT FAILED): E:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-Manager
   0.0 seconds: E:\ComfyUI\ComfyUI\custom_nodes\AIGODLIKE-ComfyUI-Translation

Starting server

To see the GUI go to: http://127.0.0.1:8188

  • 写回答

3条回答 默认 最新

  • 阿里嘎多学长 2024-07-15 14:00
    关注

    以下内容由CHATGPT及阿里嘎多学长共同生成、有用望采纳:


    根据您提供的错误日志和描述,这里是一些可能的解决方案:

    1. 解决网络连接超时问题

      • 确保您的网络连接稳定,如果可能的话尝试重启路由器或切换到更稳定的网络环境。
      • 如果您在公司或学校网络环境中,可能需要联系网络管理员确认是否有防火墙或代理设置阻止了连接。
    2. 手动安装 GitPython

      • 打开命令行工具,导航到您的 ComfyUI 项目的根目录。
      • 运行命令 python -m pip install GitPython 来安装 GitPython 包。
    3. 更新 pip

      • 按照提示,运行命令 E:\ComfyUI\python_embeded\python.exe -m pip install --upgrade pip 来更新 pip 到最新版本。
    4. 检查 Python 环境

      • 确保您的 Python 版本与 ComfyUI 兼容。根据日志,您使用的是 Python 3.11.6。
      • 检查环境变量,确保 Python 和 pip 的路径设置正确。
    5. 检查汉化插件

      • 确认汉化插件是否适用于您当前的 ComfyUI 版本。
      • 按照汉化插件的安装说明进行操作,确保所有步骤都正确无误。
    6. 查看日志文件

      • 打开 E:\ComfyUI\comfyui.log 文件,检查是否有更详细的错误信息。
    7. 检查代码和路径

      • 根据错误日志,ModuleNotFoundError: No module named 'git' 表明 Python 无法找到 git 模块。通常,git 模块是由 GitPython 提供的,确保 GitPython 安装正确。
      • 检查 custom_nodes\ComfyUI-Manager\glob\manager_server.py 文件中的 import git 语句是否正确,有时候错误的导入路径也会导致问题。
    8. 使用虚拟环境

      • 如果还没有使用,考虑使用 Python 虚拟环境来隔离项目依赖,避免系统级别的冲突。

    如果上述步骤仍然无法解决问题,您可能需要联系 ComfyUI 的开发者或社区寻求帮助,或者在相关技术论坛上发帖询问。记得提供尽可能详细的错误信息和环境配置,以便他人帮助您诊断问题。

    评论 编辑记录

报告相同问题?

问题事件

  • 创建了问题 7月15日

悬赏问题

  • ¥15 如何在vue.config.js中读取到public文件夹下window.APP_CONFIG.API_BASE_URL的值
  • ¥50 浦育平台scratch图形化编程
  • ¥20 求这个的原理图 只要原理图
  • ¥15 vue2项目中,如何配置环境,可以在打完包之后修改请求的服务器地址
  • ¥20 微信的店铺小程序如何修改背景图
  • ¥15 UE5.1局部变量对蓝图不可见
  • ¥15 一共有五道问题关于整数幂的运算还有房间号码 还有网络密码的解答?(语言-python)
  • ¥20 sentry如何捕获上传Android ndk 崩溃
  • ¥15 在做logistic回归模型限制性立方条图时候,不能出完整图的困难
  • ¥15 G0系列单片机HAL库中景园gc9307液晶驱动芯片无法使用硬件SPI+DMA驱动,如何解决?