mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-06-08 15:17:14 +00:00
Refuse to load api nodes on old pyav version. (#7981)
This commit is contained in:
parent
16417b40d9
commit
b9980592c4
10
comfy_api_nodes/canary.py
Normal file
10
comfy_api_nodes/canary.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import av
|
||||||
|
|
||||||
|
ver = av.__version__.split(".")
|
||||||
|
if int(ver[0]) < 14:
|
||||||
|
raise Exception("INSTALL NEW VERSION OF PYAV TO USE API NODES.")
|
||||||
|
|
||||||
|
if int(ver[0]) == 14 and int(ver[1]) < 2:
|
||||||
|
raise Exception("INSTALL NEW VERSION OF PYAV TO USE API NODES.")
|
||||||
|
|
||||||
|
NODE_CLASS_MAPPINGS = {}
|
3
nodes.py
3
nodes.py
@ -2289,6 +2289,9 @@ def init_builtin_api_nodes():
|
|||||||
"nodes_pika.py",
|
"nodes_pika.py",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if not load_custom_node(os.path.join(api_nodes_dir, "canary.py"), module_parent="comfy_api_nodes"):
|
||||||
|
return api_nodes_files
|
||||||
|
|
||||||
import_failed = []
|
import_failed = []
|
||||||
for node_file in api_nodes_files:
|
for node_file in api_nodes_files:
|
||||||
if not load_custom_node(os.path.join(api_nodes_dir, node_file), module_parent="comfy_api_nodes"):
|
if not load_custom_node(os.path.join(api_nodes_dir, node_file), module_parent="comfy_api_nodes"):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user