6174 / comflowy

Unleash endless possibilities with ComfyUI and Stable Diffusion, committed to crafting refined AI-Gen tools and cultivating a vibrant community for both developers and users.
https://www.comflowy.com/
Other
961 stars 50 forks source link

Mac M芯片版本 报错 无法创建和编辑任何workflow #33

Closed macyhan closed 8 months ago

macyhan commented 8 months ago
image image

报错: Start ComfyUI Without Proxy /Users/hanyunwei/miniconda3/envs/comflowy/bin/python main.py --enable-cors-header

%
hanyunwei@hanyunweideMacBook-Pro ComfyUI %/U lowy/bin/python main.py --enable-cors-header

Total VRAM 32768 MB, total RAM 32768 MB

Set vram state to: SHARED Device: mps VAE dtype: torch.float32

Traceback (most recent call last): File "/Users/hanyunwei/comflowy/ComfyUI/main.py", line 76, in

import execution

File "/Users/hanyunwei/comflowy/ComfyUI/execution.py", line 11, in import nodes File "/Users/hanyunwei/comflowy/ComfyUI/nodes.py", line 20, in import comfy.diffusers_load File "/Users/hanyunwei/comflowy/ComfyUI/comfy/diffusers_load.py", line 3, in

import comfy.sd

File "/Users/hanyunwei/comflowy/ComfyUI/comfy/sd.py", line 7, in

from .ldm.cascade.stage_c_coder import StageC_coder

File "/Users/hanyunwei/comflowy/ComfyUI/comfy/ldm/cascade/stage_c_coder.py", line 19, in

import torchvision

File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torchvision/init.py", line 6, in

from torchvision import _meta_registrations, datasets, io, models, ops, transforms, utils

File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torchvision/models/init.py", line 2, in

from .convnext import *

File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torchvision/models/convnext.py", line 8, in

from ..ops.misc import Conv2dNormActivation, Permute

File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torchvision/ops/init.py", line 23, in

from .poolers import MultiScaleRoIAlign

File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torchvision/ops/poolers.py", line 10, in

from .roi_align import roi_align

File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torchvision/ops/roi_align.py", line 4, in

import torch._dynamo

File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torch/_dynamo/init.py", line 2, in

from . import convert_frame, eval_frame, resume_execution

File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torch/_dynamo/convert_frame.py", line 30, in

from torch.fx.experimental.symbolic_shapes import (

File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torch/fx/experimental/symbolic_shapes.py", line 63, in

from torch.utils._sympy.functions import FloorDiv, Mod, IsNonOverlappingAndDenseIndicator

File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torch/utils/_sympy/functions.py", line 1, in

import sympy

File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/sympy/init.py", line 30, in

from sympy.core.cache import lazy_function

File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/sympy/core/init.py", line 9, in

from .expr import Expr, AtomicExpr, UnevaluatedExpr

File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/sympy/core/expr.py", line 4159, in

from .mul import Mul

File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/sympy/core/mul.py", line 2193, in

from .numbers import Rational

File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/sympy/core/numbers.py", line 4567, in

_sympy_converter[type(mpmath.rational.mpq(1, 2))] = sympify_mpmath_mpq

AttributeError: module 'mpmath' has no attribute 'rational'

%
hanyunwei@hanyunweideMacBook-Pro ComfyUI %
zsh: parse error near `&&'

ComfyUI start timeout Start ComfyUI error: ComfyUI start timeout, Error: ComfyUI start timeout at Timeout._onTimeout (/Applications/comflowy.app/Contents/Resources/app.asar/layers/main/dist/index.js:129633:18) at listOnTimeout (node:internal/timers:569:17) at process.processTimers (node:internal/timers:512:7) Start ComfyUI Without Proxy /Users/hanyunwei/miniconda3/envs/comflowy/bin/python main.py --enable-cors-header

%
hanyunwei@hanyunweideMacBook-Pro ComfyUI %/U lowy/bin/python main.py --enable-cors-header

Total VRAM 32768 MB, total RAM 32768 MB

Set vram state to: SHARED Device: mps VAE dtype: torch.float32

Traceback (most recent call last): File "/Users/hanyunwei/comflowy/ComfyUI/main.py", line 76, in

import execution

File "/Users/hanyunwei/comflowy/ComfyUI/execution.py", line 11, in import nodes File "/Users/hanyunwei/comflowy/ComfyUI/nodes.py", line 20, in import comfy.diffusers_load File "/Users/hanyunwei/comflowy/ComfyUI/comfy/diffusers_load.py", line 3, in

import comfy.sd

File "/Users/hanyunwei/comflowy/ComfyUI/comfy/sd.py", line 7, in

from .ldm.cascade.stage_c_coder import StageC_coder

File "/Users/hanyunwei/comflowy/ComfyUI/comfy/ldm/cascade/stage_c_coder.py", line 19, in

import torchvision

File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torchvision/init.py", line 6, in

from torchvision import _meta_registrations, datasets, io, models, ops, transforms, utils

File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torchvision/models/init.py", line 2, in

from .convnext import *

File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torchvision/models/convnext.py", line 8, in

from ..ops.misc import Conv2dNormActivation, Permute

File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torchvision/ops/init.py", line 23, in

from .poolers import MultiScaleRoIAlign

File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torchvision/ops/poolers.py", line 10, in

from .roi_align import roi_align

File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torchvision/ops/roi_align.py", line 4, in

import torch._dynamo

File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torch/_dynamo/init.py", line 2, in

from . import convert_frame, eval_frame, resume_execution

File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torch/_dynamo/convert_frame.py", line 30, in

from torch.fx.experimental.symbolic_shapes import (

File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torch/fx/experimental/symbolic_shapes.py", line 63, in

from torch.utils._sympy.functions import FloorDiv, Mod, IsNonOverlappingAndDenseIndicator

File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torch/utils/_sympy/functions.py", line 1, in

import sympy

File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/sympy/init.py", line 30, in

from sympy.core.cache import lazy_function

File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/sympy/core/init.py", line 9, in

from .expr import Expr, AtomicExpr, UnevaluatedExpr

File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/sympy/core/expr.py", line 4159, in

from .mul import Mul

File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/sympy/core/mul.py", line 2193, in

from .numbers import Rational

File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/sympy/core/numbers.py", line 4567, in

_sympy_converter[type(mpmath.rational.mpq(1, 2))] = sympify_mpmath_mpq

AttributeError: module 'mpmath' has no attribute 'rational'

%
hanyunwei@hanyunweideMacBook-Pro ComfyUI %
zsh: parse error near `&&'

ComfyUI start timeout Start ComfyUI error: ComfyUI start timeout, Error: ComfyUI start timeout at Timeout._onTimeout (/Applications/comflowy.app/Contents/Resources/app.asar/layers/main/dist/index.js:129633:18) at listOnTimeout (node:internal/timers:569:17) at process.processTimers (node:internal/timers:512:7)

6174 commented 8 months ago

看上去是 comfyUI 本身的依赖报错的问题,你是有做了 ComfyUI 的更新吗?

6174 commented 8 months ago

可以用下面的命令看看你的 torchvision 版本吗?看报错是从这个包开始的:

$ ~/miniconda3/envs/comflowy/bin/python -c "import torchvision; print(torchvision.__version__)"
6174 commented 8 months ago

你试试打开终端运行:

~/miniconda3/envs/comflowy/bin/pip install mpmath==1.3.0

再打开应用应该能解决

这个问题我也会在下个版本内置解决