Closed Neytiri7 closed 4 weeks ago
챗GPT로 물어봐서 fork를 spawn로 바꿨는데, 오류가 바뀌어서, 아래 메시지가 표시되고 있습니다.
Traceback (most recent call last):
File "W:\SynologyDrive\ComfyUI-webui\ComfyUI\nodes.py", line 1998, 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 "W:\SynologyDrive\ComfyUI-webui\ComfyUI\custom_nodes\comfyui_bmab\__init__.py", line 6, in <module>
from bmab import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
File "W:\SynologyDrive\ComfyUI-webui\ComfyUI\custom_nodes\comfyui_bmab\bmab\__init__.py", line 1, in <module>
from bmab import nodes, serverext
File "W:\SynologyDrive\ComfyUI-webui\ComfyUI\custom_nodes\comfyui_bmab\bmab\nodes\__init__.py", line 20, in <module>
from .fill import BMABInpaint, BMABOutpaintByRatio, BMABReframe
File "W:\SynologyDrive\ComfyUI-webui\ComfyUI\custom_nodes\comfyui_bmab\bmab\nodes\fill.py", line 4, in <module>
from diffusers import AutoencoderKL, TCDScheduler
ImportError: cannot import name 'TCDScheduler' from 'diffusers' (W:\SynologyDrive\ComfyUI-webui\python_embeded\Lib\site-packages\diffusers\__init__.py)
Cannot import W:\SynologyDrive\ComfyUI-webui\ComfyUI\custom_nodes\comfyui_bmab module for custom nodes: cannot import name 'TCDScheduler' from 'diffusers' (W:\SynologyDrive\ComfyUI-webui\python_embeded\Lib\site-packages\diffusers\__init__.py)
새로 들어간 기능 때문에 발생 하는 것으로 보이는데, 저도 처음 보는 것이라... 좀 확인해보겠습니다.
불필요한 의존성을 제거했습니다. 확인 해보세요.
오류 발생한 상태에서 업데이트 해봤는데, 동일한 오류 나오고, 혹시나 지우고 다시 설치 해봤지만, 동일한 오류가 나옵니다.
2번째 오류랑 동일하네요.
Traceback (most recent call last):
File "W:\SynologyDrive\ComfyUI-webui\ComfyUI\nodes.py", line 1998, 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 "W:\SynologyDrive\ComfyUI-webui\ComfyUI\custom_nodes\comfyui_bmab\__init__.py", line 6, in <module>
from bmab import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
File "W:\SynologyDrive\ComfyUI-webui\ComfyUI\custom_nodes\comfyui_bmab\bmab\__init__.py", line 1, in <module>
from bmab import nodes, serverext
File "W:\SynologyDrive\ComfyUI-webui\ComfyUI\custom_nodes\comfyui_bmab\bmab\nodes\__init__.py", line 20, in <module>
from .fill import BMABInpaint, BMABOutpaintByRatio, BMABReframe
File "W:\SynologyDrive\ComfyUI-webui\ComfyUI\custom_nodes\comfyui_bmab\bmab\nodes\fill.py", line 3, in <module>
from diffusers import AutoencoderKL, TCDScheduler
ImportError: cannot import name 'TCDScheduler' from 'diffusers' (W:\SynologyDrive\ComfyUI-webui\python_embeded\Lib\site-packages\diffusers\__init__.py)
Cannot import W:\SynologyDrive\ComfyUI-webui\ComfyUI\custom_nodes\comfyui_bmab module for custom nodes: cannot import name 'TCDScheduler' from 'diffusers' (W:\SynologyDrive\ComfyUI-webui\python_embeded\Lib\site-packages\diffusers\__init__.py)
diffusers 버전이 낮아서 발생하는 것 같습니다. pip uninstall diffusers pip install diffusers 과정을 통해서 버전을 올리셔야 할 것 같습니다.
버전도 올렸습니다. 파이선 폴더랑 BMAB 폴더 다... 그래도 저렇게 오류가 납니다. 어디다가 버전 업을 해야 하나요?
W:\SynologyDrive\ComfyUI-webui\ComfyUI\custom_nodes\comfyui_bmab>pip uninstall diffusers
Found existing installation: diffusers 0.30.3
Uninstalling diffusers-0.30.3:
Would remove:
c:\users\diana\appdata\local\programs\python\python310\lib\site-packages\diffusers-0.30.3.dist-info\*
c:\users\diana\appdata\local\programs\python\python310\lib\site-packages\diffusers\*
c:\users\diana\appdata\local\programs\python\python310\scripts\diffusers-cli.exe
Proceed (Y/n)? y
Successfully uninstalled diffusers-0.30.3
W:\SynologyDrive\ComfyUI-webui\ComfyUI\custom_nodes\comfyui_bmab>pip install diffusers
Collecting diffusers
Using cached diffusers-0.30.3-py3-none-any.whl.metadata (18 kB)
Requirement already satisfied: importlib-metadata in c:\users\diana\appdata\local\programs\python\python310\lib\site-packages (from diffusers) (7.1.0)
Requirement already satisfied: filelock in c:\users\diana\appdata\local\programs\python\python310\lib\site-packages (from diffusers) (3.14.0)
Requirement already satisfied: huggingface-hub>=0.23.2 in c:\users\diana\appdata\local\programs\python\python310\lib\site-packages (from diffusers) (0.23.4)
Requirement already satisfied: numpy in c:\users\diana\appdata\local\programs\python\python310\lib\site-packages (from diffusers) (1.26.4)
Requirement already satisfied: regex!=2019.12.17 in c:\users\diana\appdata\local\programs\python\python310\lib\site-packages (from diffusers) (2024.5.15)
Requirement already satisfied: requests in c:\users\diana\appdata\local\programs\python\python310\lib\site-packages (from diffusers) (2.32.3)
Requirement already satisfied: safetensors>=0.3.1 in c:\users\diana\appdata\local\programs\python\python310\lib\site-packages (from diffusers) (0.4.3)
Requirement already satisfied: Pillow in c:\users\diana\appdata\local\programs\python\python310\lib\site-packages (from diffusers) (10.3.0)
Requirement already satisfied: fsspec>=2023.5.0 in c:\users\diana\appdata\local\programs\python\python310\lib\site-packages (from huggingface-hub>=0.23.2->diffusers) (2024.5.0)
Requirement already satisfied: packaging>=20.9 in c:\users\diana\appdata\local\programs\python\python310\lib\site-packages (from huggingface-hub>=0.23.2->diffusers) (24.0)
Requirement already satisfied: pyyaml>=5.1 in c:\users\diana\appdata\local\programs\python\python310\lib\site-packages (from huggingface-hub>=0.23.2->diffusers) (6.0.1)
Requirement already satisfied: tqdm>=4.42.1 in c:\users\diana\appdata\local\programs\python\python310\lib\site-packages (from huggingface-hub>=0.23.2->diffusers) (4.66.4)
Requirement already satisfied: typing-extensions>=3.7.4.3 in c:\users\diana\appdata\local\programs\python\python310\lib\site-packages (from huggingface-hub>=0.23.2->diffusers) (4.11.0)
Requirement already satisfied: zipp>=0.5 in c:\users\diana\appdata\local\programs\python\python310\lib\site-packages (from importlib-metadata->diffusers) (3.18.2)
Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\diana\appdata\local\programs\python\python310\lib\site-packages (from requests->diffusers) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in c:\users\diana\appdata\local\programs\python\python310\lib\site-packages (from requests->diffusers) (3.7)
Requirement already satisfied: urllib3<3,>=1.21.1 in c:\users\diana\appdata\local\programs\python\python310\lib\site-packages (from requests->diffusers) (2.2.3)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\diana\appdata\local\programs\python\python310\lib\site-packages (from requests->diffusers) (2024.2.2)
Requirement already satisfied: colorama in c:\users\diana\appdata\local\programs\python\python310\lib\site-packages (from tqdm>=4.42.1->huggingface-hub>=0.23.2->diffusers) (0.4.4)
Using cached diffusers-0.30.3-py3-none-any.whl (2.7 MB)
Installing collected packages: diffusers
Successfully installed diffusers-0.30.3
W:\SynologyDrive\ComfyUI-webui\python_embeded\python.exe -m pip uninstall diffusers W:\SynologyDrive\ComfyUI-webui\python_embeded\python.exe -m pip install diffusers 이렇게 해야합니다. 지금 실행시킨 pip는...os 전체에 적용되는 pip이고, comfyui가 사용하는 파이썬은 W:\SynologyDrive\ComfyUI-webui\python_embeded 여기에 들어있습니다. 이 둘은 완전히 다른 것입니다. 이 환경을 virtual environment 라고 합니다.
아~ 맞다. 파이썬 환경을 생각 못하고, 그냥 하고 안된다고 하고 있었네요... 요즘 정신없이 모델 만들고 있어서, 제가 착각 했습니다. 해결 했습니다.
친절하게 대해주셔서 고맙습니다.