ComfyUI-LTXVideo icon indicating copy to clipboard operation
ComfyUI-LTXVideo copied to clipboard

Installation/Import Fails

Open jadanduffin opened this issue 5 months ago • 21 comments

Cant get anything to work. Ive loaded form the zip and from within comfy and Im constantly getting errors.

Here is the issue form the custom node importer. Has a 'Import Failed red button above the name.

Error message occurred while importing the 'ComfyUI-LTXVideo' module.

Traceback (most recent call last): File "D:\ComfyUI_windows_portable\ComfyUI\nodes.py", line 2212, in load_custom_node module_spec.loader.exec_module(module) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^ File "", line 1027, in exec_module File "", line 488, in call_with_frames_removed File "D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-LTXVideo_init.py", line 49, in from .pyramid_blending import LTXVLaplacianPyramidBlend File "D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-LTXVideo\pyramid_blending.py", line 7, in from kornia.geometry.transform.pyramid import ( ...<6 lines>... ) ImportError: cannot import name 'pad' from 'kornia.geometry.transform.pyramid' (D:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\kornia\geometry\transform\pyramid.py)

########################### inside comfy the errors shows Im missing node packs...

Missing Node Packs (2) This workflow uses custom nodes you haven't installed yet.

To install missing nodes, first run pip install -U --pre comfyui-manager in your Python environment to install Node Manager, then restart ComfyUI with the --enable-manager flag.

ComfyUI-LTXVideo (3) LTXAddVideoICLoRAGuide LTXICLoRALoaderModelOnly LTXICLoRALoaderModelOnly

Unknown pack (1) LTXVHDRDecodePostprocess

############################## Finally- there is JUST a nightly version, there are no previous releases to fall back on...

jadanduffin avatar Jun 18 '26 23:06 jadanduffin

I just ran into this issue, my issue was Kornia 0.8.3 was installed by ComfyUI-LTXVideo is expecting an older API. I ran these two commands inside my venv:

pip uninstall -y kornia kornia-rs pip install kornia==0.7.3

Restarted ComfyUI and the error went away and everything seemed to work.

kklang774 avatar Jun 19 '26 13:06 kklang774

https://github.com/Lightricks/ComfyUI-LTXVideo/pull/506 I posted a fix for the issue here.

DevNullInc avatar Jun 20 '26 09:06 DevNullInc

I re-downloaded and added the folder and Im still getting the errors.... Not sure what to do, but nothing has changed. Do I need to rename the folder and remove '-master' to the folder name? I have comfy manager installed, yet its saying I need to download it. I just updated it too. Here are some images that may shed some light on things...

Image Image Image

jadanduffin avatar Jun 21 '26 20:06 jadanduffin

#506 I posted a fix for the issue here.

I'm in the same boat as the OP.
I deleted what I already had for LTXVideo.

Tried copying the link to your fork and installing through ComfyUI manager.

I also tried cloning your fork and unzipping into the custom_nodes folder, redid the requirements.txt.

Comfy Manager still doesnt register LTXVideo being install, and the nodes in my workflow are still red. Any help would be appreciated!

SyNgen-Smithe avatar Jun 22 '26 15:06 SyNgen-Smithe

That fork is old. In case they made any new updates or anything, the only thing new there is the one text file edit, which can be done with any sort of text editor

DevNullInc avatar Jun 22 '26 16:06 DevNullInc

That fork is old. In case they made any new updates or anything, the only thing new there is the one text file edit, which can be done with any sort of text editor

I deleted the node folder again, installed with ComfyUI manager, changed that section of pyramid_blending.py to match yours, and I still get the 'cannot import...Either a revision or a version must be specified'

SyNgen-Smithe avatar Jun 22 '26 17:06 SyNgen-Smithe

have the exactely same problem, downloaded a new workflow, installed everything new, instead of comfy ui itselt. all is at newest version, but i won't get this node and some others too. some i could add manually which were not available in the manager.

But at the end, i still miss these IC-Lora nodes....

Nakasara1 avatar Jun 22 '26 18:06 Nakasara1

Does anybody know what the 'Either a revision or a version must be specified'

That fork is old. In case they made any new updates or anything, the only thing new there is the one text file edit, which can be done with any sort of text editor

I deleted the node folder again, installed with ComfyUI manager, changed that section of pyramid_blending.py to match yours, and I still get the 'cannot import...Either a revision or a version must be specified'

Does anybody know what the 'Either a revision or a version must be specified' error is relating to? It's not very specific.

Is it complaining about my Python or ComfyUI version?

I couldnt see any version specifics in the requirements.

SyNgen-Smithe avatar Jun 24 '26 14:06 SyNgen-Smithe

Same here, waiting for a merged PR

Skuuurt avatar Jul 05 '26 10:07 Skuuurt

Hello, any improvement for this situation. I have tried everything but always:

Traceback (most recent call last): File "E:\ComfyUI_LTX\ComfyUI\nodes.py", line 2247, in load_custom_node module_spec.loader.exec_module(module) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^ File "", line 1023, in exec_module File "", line 488, in call_with_frames_removed File "E:\ComfyUI_LTX\ComfyUI\custom_nodes\ComfyUI-LTXVideo_init.py", line 49, in from .pyramid_blending import LTXVLaplacianPyramidBlend File "E:\ComfyUI_LTX\ComfyUI\custom_nodes\ComfyUI-LTXVideo\pyramid_blending.py", line 7, in from kornia.geometry.transform.pyramid import ( ...<6 lines>... ) ImportError: cannot import name 'pad' from 'kornia.geometry.transform.pyramid' (E:\ComfyUI_LTX\python_embeded\Lib\site-packages\kornia\geometry\transform\pyramid.py)

[WARNING] Cannot import E:\ComfyUI_LTX\ComfyUI\custom_nodes\ComfyUI-LTXVideo module for custom nodes: cannot import name 'pad' from 'kornia.geometry.transform.pyramid' (E:\ComfyUI_LTX\python_embeded\Lib\site-packages\kornia\geometry\transform\pyramid.py)

Please help ! I found nowhere the way to load ComfyUI-LTXVideo

serge

cneva avatar Jul 29 '26 07:07 cneva

did you guys look at my suggestion above? did you try downgrading your kornia to version 0.7.3? i gave the two commands up above that worked for me.

kklang774 avatar Jul 29 '26 14:07 kklang774

You have to edit pyramid_blending.py inside ComfyUI-LTXVideo folder:

from kornia.geometry.transform.pyramid import ( PyrUp, build_laplacian_pyramid, build_pyramid, find_next_powerof_two, is_powerof_two,

)

from torch.nn.functional import pad

cneva avatar Jul 29 '26 16:07 cneva

You have to edit pyramid_blending.py inside ComfyUI-LTXVideo folder:

from kornia.geometry.transform.pyramid import ( PyrUp, build_laplacian_pyramid, build_pyramid, find_next_powerof_two, is_powerof_two,

)

from torch.nn.functional import pad

tysm <3 this was an easy fix

KarinMiku avatar Aug 02 '26 08:08 KarinMiku

You have to edit pyramid_blending.py inside ComfyUI-LTXVideo folder:

from kornia.geometry.transform.pyramid import ( PyrUp, build_laplacian_pyramid, build_pyramid, find_next_powerof_two, is_powerof_two,

)

from torch.nn.functional import pad

Thanks! This script is working! (My env are ComfyUI CLI and ComfyUI 0.30.0 ComfyUI_frontend v1.47.12 Templates v0.11.27.

HaidukiHaruka avatar Aug 03 '26 22:08 HaidukiHaruka

kklang774's suggested fix worked for me.

pip uninstall -y kornia kornia-rs pip install kornia==0.7.3

altanwalk avatar Aug 11 '26 10:08 altanwalk

We all use Minimax H3 now...

cneva avatar Aug 11 '26 11:08 cneva

kklang774's suggested fix worked for me.

pip uninstall -y kornia kornia-rs pip install kornia==0.7.3

that's still downgrading your Kornia install when my fix is just a single line changed without having to downgrade. https://github.com/Lightricks/ComfyUI-LTXVideo/pull/506

DevNullInc avatar Aug 12 '26 01:08 DevNullInc

We all use Minimax H3 now...

Same. Especially because on some documentation LTX claims it's 'based in the US' even though it's really not and it is instead located in Jerusalem. A country that right now has literally the worst optics imaginable and I would rather stay well away from.

DevNullInc avatar Aug 12 '26 01:08 DevNullInc

kklang774's suggested fix worked for me. pip uninstall -y kornia kornia-rs pip install kornia==0.7.3

that's still downgrading your Kornia install when my fix is just a single line changed without having to downgrade. #506

Hi DecNullInc, I don't see your alternative fix posted anywhere.

altanwalk avatar Aug 12 '26 10:08 altanwalk

kklang774's suggested fix worked for me. pip uninstall -y kornia kornia-rs pip install kornia==0.7.3

that's still downgrading your Kornia install when my fix is just a single line changed without having to downgrade. #506

Hi DecNullInc, I don't see your alternative fix posted anywhere.

https://github.com/Lightricks/ComfyUI-LTXVideo/pull/506 Literally right there. Check the commit. It will show you the file and the line that needs to be changed.

DevNullInc avatar Aug 14 '26 20:08 DevNullInc