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

[DEPRECATION WARNING] Error

Open PopHorn opened this issue 2 months ago • 12 comments

Image

What does that mean? And how to fix?

PopHorn avatar Oct 17 '25 10:10 PopHorn

I'm seeing the same error, it turns out to be because of the ComfyUI Manager using outdated APIs that no longer match the updated ComfyUI core files. They (ComfyUI Manager) need to update their files.

denjay5 avatar Oct 17 '25 12:10 denjay5

The warnings that are specific to ComfyUI-Manager of those are:

[DEPRECATION WARNING] Detected import of deprecated legacy API: /scripts/ui.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.
[DEPRECATION WARNING] Detected import of deprecated legacy API: /extensions/core/groupNode.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.
[DEPRECATION WARNING] Detected import of deprecated legacy API: /scripts/ui/components/buttonGroup.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.
[DEPRECATION WARNING] Detected import of deprecated legacy API: /scripts/ui/components/button.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.

as that's what comes up with ComfyUI-Manager as the only custom node.

arcum42 avatar Oct 19 '25 21:10 arcum42

The warnings that are specific to ComfyUI-Manager of those are:

To be more specific, the affected files are here:

ComfyUI\venv\Lib\site-packages\comfyui_frontend_package\static\extensions\core

ComfyUI\venv\Lib\site-packages\comfyui_frontend_package\static\scripts\ui

ComfyUI\venv\Lib\site-packages\comfyui_frontend_package\static\scripts\ui\components

And that package (comfyui-frontend-package==1.28.7) is part of ComfyUI's requirements.txt- file - not the Manager-custom-node. So this isn't a Manager problem, it should be addressed at the source of the requirements.txt- file: https://github.com/comfyanonymous/ComfyUI/

GlamoramaAttack avatar Oct 20 '25 03:10 GlamoramaAttack

@GlamoramaAttack The depreciation warning is saying that those files are being imported and shouldn't be.

If you look through the js folder in ComfyUI-Manager, you'll notice import statements importing scripts/ui.js near the top of most of the files there.

As you can see here: https://github.com/comfyanonymous/ComfyUI/issues/10408

Those files are going to eventually be removed, which will break ComfyUI-Manager if this isn't taken care of before then.

arcum42 avatar Oct 20 '25 06:10 arcum42

@arcum42 Thanks for pointing that out. I obviously misunderstood something.

GlamoramaAttack avatar Oct 20 '25 11:10 GlamoramaAttack

@GlamoramaAttack No problem. One or two of them were being reported erroneously, which is what that issue was fixing, but the rest weren't, and I'd already done a bit of testing to figure out which nodes I had installed were causing the warnings. There were several, but the warnings from this one make it hard to tell which other ones also cause the warning, since this is usually installed.

arcum42 avatar Oct 20 '25 15:10 arcum42

So far, the ones that can trigger the same warning are: ComfyUI-Manager ComfyUI-Crystools ComfyUI-Custom-Scripts ComfyUI-DD-Translation ComfyUI-Impact-Pack ComfyUI-VideoHelperSuite rgthree-comfy

hben35096 avatar Oct 23 '25 18:10 hben35096

This is what's happening on a fresh portable install with only Manager installed: Import times for custom nodes:

ComfyUI Version: v0.3.66-4-ga1864c01 | Released on '2025-10-22'

Import times for custom nodes: 0.0 seconds: Y:\ComfyUI_windows_portable\ComfyUI\custom_nodes\websocket_image_save.py 0.2 seconds: Y:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager

[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json Context impl SQLiteImpl. Will assume non-transactional DDL. No target revision found. Starting server

To see the GUI go to: http://127.0.0.1:8188 [DEPRECATION WARNING] Detected import of deprecated legacy API: /scripts/ui.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version. [DEPRECATION WARNING] Detected import of deprecated legacy API: /extensions/core/groupNode.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version. [DEPRECATION WARNING] Detected import of deprecated legacy API: /scripts/ui/components/buttonGroup.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version. [DEPRECATION WARNING] Detected import of deprecated legacy API: /scripts/ui/components/button.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version. FETCH ComfyRegistry Data: 5/101 FETCH ComfyRegistry Data: 10/101 FETCH ComfyRegistry Data: 15/101 FETCH ComfyRegistry Data: 20/101 FETCH ComfyRegistry Data: 25/101 FETCH ComfyRegistry Data: 30/101 FETCH ComfyRegistry Data: 35/101 FETCH ComfyRegistry Data: 40/101 FETCH ComfyRegistry Data: 45/101 FETCH ComfyRegistry Data: 50/101 FETCH ComfyRegistry Data: 55/101 FETCH ComfyRegistry Data: 60/101 FETCH ComfyRegistry Data: 65/101 FETCH ComfyRegistry Data: 70/101 FETCH ComfyRegistry Data: 75/101 FETCH ComfyRegistry Data: 80/101 FETCH ComfyRegistry Data: 85/101 FETCH ComfyRegistry Data: 90/101 FETCH ComfyRegistry Data: 95/101 FETCH ComfyRegistry Data: 100/101 FETCH ComfyRegistry Data [DONE] [ComfyUI-Manager] default cache updated: https://api.comfy.org/nodes_ FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json [DONE] [ComfyUI-Manager] All startup tasks have been completed. [ComfyUI-Manager] The ComfyRegistry cache update is still in progress, so an outdated cache is being used. FETCH DATA from: Y:\ComfyUI_windows_portable\ComfyUI\user\default\ComfyUI-Manager\cache\1514988643_custom-node-list.json [DONE] FETCH DATA from: Y:\ComfyUI_windows_portable\ComfyUI\user\default\ComfyUI-Manager\cache\746607195_github-stats.json [DONE] FETCH DATA from: Y:\ComfyUI_windows_portable\ComfyUI\user\default\ComfyUI-Manager\cache\832903789_extras.json [DONE] FETCH DATA from: Y:\ComfyUI_windows_portable\ComfyUI\user\default\ComfyUI-Manager\cache\1742899825_extension-node-map.json [DONE]

This was after I went in to the Manager. Under "Installed", Manager was the only entry and the only command available was "Try Update" and no option to uninstall. This yielded same results of Deprecation Warnings. The only other alternative would be to delete the Manager folder from custom nodes. I forgot to mention that before I did all of this, I had installed the WAS Node (revised) which showed installed successfully in the CLI (which it hadn't done in my former installation which always stated (Import failed) no matter which one I tried to install. With this "new" installation it did so but failed to show up in the Settings portion anyway so no adjustments could be made to it.

With all due diligence to all the developers of this unique and wonderful program and the node developers, thank you for all your work! I think I started using ComfyUI a few months before the Flux models appeared. I try not to look gift horses in the mouth, mind you. But I do seem to be spending more time fixing things than generating things. I guess the proliferation of hundreds of models, it's hard to keep things sorted out with Python versions, Desktop, Portable, old/new workflows that have node incompatibilities, etc. I did finally figure out how to store my models on a separate drive just so I could re-install ComfyUI without having to re-download model gigabytes behind by using a fresh ComfyUI. And I hope this issue of Deprecation Warnings gets resolved especially since I don't use API's anyway. Still grateful, though!

Metairieman55 avatar Oct 23 '25 23:10 Metairieman55

isn't it a shame?

hwprinz avatar Oct 24 '25 15:10 hwprinz

Does anyone else get the ‘Failed to get custom node list.’ red error when trying to install missing nodes or even search for custom nodes?

Liam092 avatar Oct 29 '25 05:10 Liam092

Does anyone else get the ‘Failed to get custom node list.’ red error when trying to install missing nodes or even search for custom nodes?

As you can see from my post above, I was having all kinds of trouble. And installing some nodes like Was, InsightFace, et. al., would never work. In fact, I followed all kind of workarounds from YouTube for InsightFace for months and never could get it to install. This time I was getting annoyed with these failures so I kept the old ComfyUI Portable and reinstalled a new one. I did everything step by step keeping note of what worked and what didn't along the way. I found a package called "Easy Install" which also included separate .bat files one of which was "InsightFace" (Nunchaku & SageAttention was included also). ComfyUI now works and IF installed perfectly after all these months with the only errors being the deprecated legacy API stuff but I don't even use any API's anyway. So I can't tell you why the ComfyUI node list craps out on the "old" ComfyUI but it works just fine in the new! Maybe some Python issues complicated things during updates . . .

Metairieman55 avatar Oct 30 '25 00:10 Metairieman55

One more to report the deprecation warning in ComfyUI. Fresh portable installation, no errors. Installed ComfyUI manager, get deprecation warnings.

Image

ReinerBforartists avatar Nov 22 '25 06:11 ReinerBforartists