Kosinkadink / ComfyUI-VideoHelperSuite

Nodes related to video workflows
GNU General Public License v3.0
513 stars 90 forks source link

TypeError: 'NoneType' object is not subscriptable, when using VHS in python code #118

Closed HanJu-Chen closed 7 months ago

HanJu-Chen commented 8 months ago

When I run the workflow after switching to python code, I get this error. 微信截图_20240104135953 In comfyui, my workflow is running successfully. But when converted to python code, the nonetype error occurs when saving the video using VHS. Snipaste_2024-01-04_14-02-38 I'm not quite sure why the error occurs when running in code, but not in comfyui. All my nodes load successfully. Snipaste_2024-01-04_14-01-21

HanJu-Chen commented 8 months ago

workflow_api_save_vedio.py.txt.txt workflow_api_save_vedio.json Here's my workflow and python code. It works when I don't use VHS in code to save the video and use save image to save it.

AustinMroz commented 8 months ago

This appears to be a duplicate of #112

Since multiple people have run into this issue I'll do some digging to try and detect when ComfyUI-to-Python is in use. I don't think it'll be possible to automatically apply the format widget values since they don't appear to exist in the python script post conversion, but it should be simple enough to provide a streamlined error message describing a fix that doesn't require editing videohelpersuite/nodes.py

26medias commented 6 months ago

That issue is most likely coming from using python 3.8. Solved by upgrading python.