Closed mike-rowley closed 1 month ago
It looks like the code can't find wav2lip_node.py in ComfyUI_wav2lip\Wav2lip. Since this node works well for many users, it's maybe a Linux problem. perhaps use in capital letter 'Wav2lip'
try to change the name of this directory to wav2lip and make a little change in wav2lip.py in line 48
from:
print(f"Wav2Lip path added to sys.path: {wav2lip_path}")
to:
print(f"wav2Lip path added to sys.path: {wav2lip_path}")
I have reinstalled via the Manager and manually through a git pull with the same result.
I can't see how changing the string in a printf statement alters the code execution, it will just change the text in the comfy execution console
Ah I understand, change the directory and not the code. And yes that resolves the issue. The capitol letters on Linux were the issue. Thanks for the assistance, I am assuming you will change this in the code base in the future?
It's bigger than that. I make the change and put it in the repository.
ok. I give you a test to check if it's will work for you on Linux.
Let me know if it works for you.
I made the 3 changes and Import Failed with this error:
Traceback (most recent call last):
File "/mnt/wf/ComfyUI/nodes.py", line 1879, in load_custom_node
module_spec.loader.exec_module(module)
File "
Cannot import /mnt/wf/ComfyUI/custom_nodes/ComfyUI_wav2lip module for custom nodes: No module named 'custom_nodes.facerestore_cf'
I continue to look at it. In the meantime you can run it on ComfyUI on Windows if you have it.
i tried your files for fix and now i get this
Wav2Lip path added to sys.path: /content/drive/MyDrive/ComfyUI/custom_nodes/ComfyUI_wav2lip/wav2lip
Traceback (most recent call last):
File "/content/drive/MyDrive/ComfyUI/nodes.py", line 1879, in load_custom_node
module_spec.loader.exec_module(module)
File "
Cannot import /content/drive/MyDrive/ComfyUI/custom_nodes/ComfyUI_wav2lip module for custom nodes: No module named 'custom_nodes.ComfyUI_wav2lip.basicsr'
The folder 'basicsr' in path 'custom_nodes.ComfyUI_wav2lip.basicsr' not exist anymore!
It's looks like you use old version of ComfyUI_wav2lip or some other mismatch
Hi @ShmuelRonen I have the exact same issue on Ubuntu. Also tried your fix above and getting the same 'ModuleNotFoundError: No module named 'custom_nodes.ComfyUI_wav2lip.basicsr'' error. Looks like a super useful node and would be great to get it to run.
The folder 'basicsr' in path 'custom_nodes.ComfyUI_wav2lip.basicsr' not exist anymore!
It's looks like you use old version of ComfyUI_wav2lip or some other mismatch
I have the newest comfyui version
The folder 'basicsr' in path 'custom_nodes.ComfyUI_wav2lip.basicsr' not exist anymore! It's looks like you use old version of ComfyUI_wav2lip or some other mismatch
I have the newest comfyui version
ComfyUI_wav2lip latest version
I have got the same error on linux ( on NixOS)
from wav2lip_node import wav2lip_
ModuleNotFoundError: No module named 'wav2lip_node'
The comfyui and your node are latest version
I have got the same error on linux ( on NixOS)
from wav2lip_node import wav2lip_ ModuleNotFoundError: No module named 'wav2lip_node'
The comfyui and your node are latest version
The wav2lip node is not compatible with Linux ComfyUI. sorry for that.
https://github.com/ksenia-portu/ComfyUI_wav2lip this version is compatible with linux and windows @mike-rowley . Maybe the author @ShmuelRonen will accept a pull request
I am getting the following error in the ComfyUI log when it loads:
Base directory: /mnt/wf/ComfyUI/custom_nodes/ComfyUI_wav2lip Checkpoints path: /mnt/wf/ComfyUI/custom_nodes/ComfyUI_wav2lip/Wav2Lip/checkpoints Model path: /mnt/wf/ComfyUI/custom_nodes/ComfyUI_wav2lip/Wav2Lip/checkpoints/wav2lip_gan.pth Wav2Lip path added to sys.path: /mnt/wf/ComfyUI/custom_nodes/ComfyUI_wav2lip/wav2lip Directory created or exists: /mnt/wf/ComfyUI/custom_nodes/ComfyUI_wav2lip/facedetection Current directory: /mnt/wf/ComfyUI/custom_nodes/ComfyUI_wav2lip Wav2Lip path: /mnt/wf/ComfyUI/custom_nodes/ComfyUI_wav2lip/wav2lip Traceback (most recent call last): File "/mnt/wf/ComfyUI/nodes.py", line 1879, in load_custom_node module_spec.loader.exec_module(module) File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/mnt/wf/ComfyUI/custom_nodes/ComfyUI_wav2lip/init.py", line 1, in
from .wav2lip import Wav2Lip
File "/mnt/wf/ComfyUI/custom_nodes/ComfyUI_wav2lip/wav2lip.py", line 56, in
from wav2lipnode import wav2lip
ModuleNotFoundError: No module named 'wav2lip_node'
Cannot import /mnt/wf/ComfyUI/custom_nodes/ComfyUI_wav2lip module for custom nodes: No module named 'wav2lip_node'
Any suggestions? I looked through existing Issues and nothing seemed to match.