Closed macyhan closed 8 months ago
看上去是 comfyUI 本身的依赖报错的问题,你是有做了 ComfyUI 的更新吗?
可以用下面的命令看看你的 torchvision 版本吗?看报错是从这个包开始的:
$ ~/miniconda3/envs/comflowy/bin/python -c "import torchvision; print(torchvision.__version__)"
你试试打开终端运行:
~/miniconda3/envs/comflowy/bin/pip install mpmath==1.3.0
再打开应用应该能解决
这个问题我也会在下个版本内置解决
报错: 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
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
File "/Users/hanyunwei/comflowy/ComfyUI/comfy/sd.py", line 7, in
File "/Users/hanyunwei/comflowy/ComfyUI/comfy/ldm/cascade/stage_c_coder.py", line 19, in
File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torchvision/init.py", line 6, in
File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torchvision/models/init.py", line 2, in
File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torchvision/models/convnext.py", line 8, in
File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torchvision/ops/init.py", line 23, in
File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torchvision/ops/poolers.py", line 10, in
File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torchvision/ops/roi_align.py", line 4, in
File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torch/_dynamo/init.py", line 2, in
File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torch/_dynamo/convert_frame.py", line 30, in
File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torch/fx/experimental/symbolic_shapes.py", line 63, in
File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torch/utils/_sympy/functions.py", line 1, in
File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/sympy/init.py", line 30, in
File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/sympy/core/init.py", line 9, in
File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/sympy/core/expr.py", line 4159, in
File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/sympy/core/mul.py", line 2193, in
File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/sympy/core/numbers.py", line 4567, in
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
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
File "/Users/hanyunwei/comflowy/ComfyUI/comfy/sd.py", line 7, in
File "/Users/hanyunwei/comflowy/ComfyUI/comfy/ldm/cascade/stage_c_coder.py", line 19, in
File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torchvision/init.py", line 6, in
File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torchvision/models/init.py", line 2, in
File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torchvision/models/convnext.py", line 8, in
File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torchvision/ops/init.py", line 23, in
File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torchvision/ops/poolers.py", line 10, in
File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torchvision/ops/roi_align.py", line 4, in
File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torch/_dynamo/init.py", line 2, in
File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torch/_dynamo/convert_frame.py", line 30, in
File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torch/fx/experimental/symbolic_shapes.py", line 63, in
File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/torch/utils/_sympy/functions.py", line 1, in
File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/sympy/init.py", line 30, in
File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/sympy/core/init.py", line 9, in
File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/sympy/core/expr.py", line 4159, in
File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/sympy/core/mul.py", line 2193, in
File "/Users/hanyunwei/miniconda3/envs/comflowy/lib/python3.10/site-packages/sympy/core/numbers.py", line 4567, in
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)