-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MacOS: Failed to import module dwpose #151
Comments
Could you please tell me which node loaded before comfyui_controlnet_aux? |
Same issue here and although I am no noob in terms of coding, i am not really following @Layer-norm 's suggestion. |
I also encountered this issue, I checked it out, it's this node, 'comfyui-mixlab-nodes,' it used 'import pip,' I'm a newbie. |
Looks like it's the ComfyUI-impact-Pack if I'm reading the log correctly. Below the entire log up to the failure. I will try your suggestions as well - thx! Full Log: (base) kevin@MacBookPro16-M3Max ComfyUI % ./venv/bin/python main.py Prestartup times for custom nodes: Total VRAM 131072 MB, total RAM 131072 MB Loading: ComfyUI-Manager (V1.13.7)ComfyUI Revision: 1822 [a5056cfb] | Released on '2023-12-15'FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json Loading: ComfyUI-Impact-Pack (V4.46.2)Loading: ComfyUI-Impact-Pack (Subpack: V0.3.2)[Impact Pack] Wildcards loading done. Full error log from comfyui_controlnet_aux: [comfyui_controlnet_aux] | INFO -> Some nodes failed to load: Check that you properly installed the dependencies. |
A full search of my ComfyUI directory (including the python venv directory I'm using in it) resulted in only one file having an "import pip" line in it: /Users/kevin/ComfyUI/venv/lib/python3.11/site-packages/psutil/tests/init.py(1216): import pip Given that this is in a test directory, I don't think this is the culprit. |
Oh, I didn't notice this information in your error log, sorry for providing the wrong suggestion.
It seems that your pytorch get a error and want to compile somthing.
|
I have the same problem. I don't see any "import pip" in custom_nodes/ and comfyui_controlnet_aux is the only node using setuptools. |
Maybe this issue can be solved by changing Hope to work this time. |
thank you, that worked.
no errors now! 🙏 |
This comment was marked as resolved.
This comment was marked as resolved.
This worked fore me as well - once the newbie Python user in me figured out WHERE the file was that needed modification - lol. Thanks a TON! |
Can't seem to find the dwpose module when installing the latest on a Mac. Any direction would be appreciated. Happy to help update with any code changes required if you can give me some direction. Full log below. Thanks in advance!
Full error log from comfyui_controlnet_aux:
Traceback (most recent call last):
File "/Users/kevin/ComfyUI/custom_nodes/comfyui_controlnet_aux/init.py", line 32, in load_nodes
module = importlib.import_module(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/kevin/miniconda3/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/Users/kevin/ComfyUI/custom_nodes/comfyui_controlnet_aux/node_wrappers/dwpose.py", line 5, in
from controlnet_aux.dwpose import DwposeDetector, AnimalposeDetector
File "/Users/kevin/ComfyUI/custom_nodes/comfyui_controlnet_aux/src/controlnet_aux/dwpose/init.py", line 8, in
import torch.utils.benchmark as benchmark
File "/Users/kevin/ComfyUI/venv/lib/python3.11/site-packages/torch/utils/benchmark/init.py", line 2, in
from torch.utils.benchmark.utils.timer import * # noqa: F403
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/kevin/ComfyUI/venv/lib/python3.11/site-packages/torch/utils/benchmark/utils/timer.py", line 8, in
from torch.utils.benchmark.utils import common, cpp_jit
File "/Users/kevin/ComfyUI/venv/lib/python3.11/site-packages/torch/utils/benchmark/utils/cpp_jit.py", line 13, in
from torch.utils import cpp_extension
File "/Users/kevin/ComfyUI/venv/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 9, in
import setuptools
File "/Users/kevin/ComfyUI/venv/lib/python3.11/site-packages/setuptools/init.py", line 8, in
import _distutils_hack.override # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/kevin/ComfyUI/venv/lib/python3.11/site-packages/_distutils_hack/override.py", line 1, in
import('_distutils_hack').do_override()
File "/Users/kevin/ComfyUI/venv/lib/python3.11/site-packages/_distutils_hack/init.py", line 77, in do_override
ensure_local_distutils()
File "/Users/kevin/ComfyUI/venv/lib/python3.11/site-packages/_distutils_hack/init.py", line 64, in ensure_local_distutils
assert '_distutils' in core.file, core.file
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: /Users/kevin/miniconda3/lib/python3.11/distutils/core.py
[comfyui_controlnet_aux] | INFO -> Some nodes failed to load:
Failed to import module dwpose because AssertionError: /Users/kevin/miniconda3/lib/python3.11/distutils/core.py
Check that you properly installed the dependencies.
If you think this is a bug, please report it on the github page (https://github.com/Fannovel16/comfyui_controlnet_aux/issues)
The text was updated successfully, but these errors were encountered: