[GH-ISSUE #1404] Error: ModuleNotFoundError: No module named 'toml' - After updating. #577

Closed
opened 2026-10-27 21:19:19 +00:00 by bsakaguchi · 8 comments
Owner

Originally created by @5KilosOfCheese on GitHub (Jan 6, 2025).
Original GitHub issue: https://github.com/Comfy-Org/ComfyUI-Manager/issues/1404

I ran into this issue after just updating ComfyUI and all extensions. I also tried fully downloading ComfyUI-Manger again.

Not even sure to where I'd put toml to fix this.

[Prompt Server] web root: E:\Comfy\ComfyUI_windows_portable\ComfyUI\web
Traceback (most recent call last):
  File "E:\Comfy\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1993, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "E:\Comfy\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-manager\__init__.py", line 8, in <module>
    import manager_server  # noqa: F401
    ^^^^^^^^^^^^^^^^^^^^^
  File "E:\Comfy\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-manager\glob\manager_server.py", line 17, in <module>
    import manager_core as core
  File "E:\Comfy\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-manager\glob\manager_core.py", line 37, in <module>
    import cnr_utils
  File "E:\Comfy\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-manager\glob\cnr_utils.py", line 5, in <module>
    import toml
ModuleNotFoundError: No module named 'toml'

Cannot import E:\Comfy\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-manager module for custom nodes: No module named 'toml'
Originally created by @5KilosOfCheese on GitHub (Jan 6, 2025). Original GitHub issue: https://github.com/Comfy-Org/ComfyUI-Manager/issues/1404 I ran into this issue after just updating ComfyUI and all extensions. I also tried fully downloading ComfyUI-Manger again. Not even sure to where I'd put toml to fix this. ``` [Prompt Server] web root: E:\Comfy\ComfyUI_windows_portable\ComfyUI\web Traceback (most recent call last): File "E:\Comfy\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1993, in load_custom_node module_spec.loader.exec_module(module) File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "E:\Comfy\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-manager\__init__.py", line 8, in <module> import manager_server # noqa: F401 ^^^^^^^^^^^^^^^^^^^^^ File "E:\Comfy\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-manager\glob\manager_server.py", line 17, in <module> import manager_core as core File "E:\Comfy\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-manager\glob\manager_core.py", line 37, in <module> import cnr_utils File "E:\Comfy\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-manager\glob\cnr_utils.py", line 5, in <module> import toml ModuleNotFoundError: No module named 'toml' Cannot import E:\Comfy\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-manager module for custom nodes: No module named 'toml' ```
Author
Owner

@dawkinsd93 commented on GitHub (Jan 6, 2025):

I'm getting the same issue, running the latest version after git cloning main.

<!-- gh-comment-id:2573466181 --> @dawkinsd93 commented on GitHub (Jan 6, 2025): I'm getting the same issue, running the latest version after git cloning main.
Author
Owner

@ltdrdata commented on GitHub (Jan 7, 2025):

Update ComfyUI-Manager to latest version.
goto E:\Comfy\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-manager in cmd.
and execute

git pull
<!-- gh-comment-id:2575380302 --> @ltdrdata commented on GitHub (Jan 7, 2025): Update ComfyUI-Manager to latest version. goto `E:\Comfy\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-manager` in cmd. and execute ``` git pull ```
Author
Owner

@feliperohde commented on GitHub (Jan 15, 2025):

Ive having the same issue, I did the steps provided then restarted the comfyui and am still facing the issue

`Traceback (most recent call last):
File "/home/rohde/projects/ComfyUI/nodes.py", line 1907, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 995, in exec_module
File "", line 488, in _call_with_frames_removed
File "/home/rohde/projects/ComfyUI/custom_nodes/ComfyUI-Manager/init.py", line 8, in
import manager_server # noqa: F401
^^^^^^^^^^^^^^^^^^^^^
File "/home/rohde/projects/ComfyUI/custom_nodes/ComfyUI-Manager/glob/manager_server.py", line 17, in
import manager_core as core
File "/home/rohde/projects/ComfyUI/custom_nodes/ComfyUI-Manager/glob/manager_core.py", line 37, in
import cnr_utils
File "/home/rohde/projects/ComfyUI/custom_nodes/ComfyUI-Manager/glob/cnr_utils.py", line 5, in
import toml
ModuleNotFoundError: No module named 'toml'

Cannot import /home/rohde/projects/ComfyUI/custom_nodes/ComfyUI-Manager module for custom nodes: No module named 'toml'

Import times for custom nodes:
0.0 seconds (IMPORT FAILED): /home/rohde/projects/ComfyUI/custom_nodes/ComfyUI-Manager`

<!-- gh-comment-id:2594062891 --> @feliperohde commented on GitHub (Jan 15, 2025): Ive having the same issue, I did the steps provided then restarted the comfyui and am still facing the issue `Traceback (most recent call last): File "/home/rohde/projects/ComfyUI/nodes.py", line 1907, in load_custom_node module_spec.loader.exec_module(module) File "<frozen importlib._bootstrap_external>", line 995, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/home/rohde/projects/ComfyUI/custom_nodes/ComfyUI-Manager/__init__.py", line 8, in <module> import manager_server # noqa: F401 ^^^^^^^^^^^^^^^^^^^^^ File "/home/rohde/projects/ComfyUI/custom_nodes/ComfyUI-Manager/glob/manager_server.py", line 17, in <module> import manager_core as core File "/home/rohde/projects/ComfyUI/custom_nodes/ComfyUI-Manager/glob/manager_core.py", line 37, in <module> import cnr_utils File "/home/rohde/projects/ComfyUI/custom_nodes/ComfyUI-Manager/glob/cnr_utils.py", line 5, in <module> import toml ModuleNotFoundError: No module named 'toml' Cannot import /home/rohde/projects/ComfyUI/custom_nodes/ComfyUI-Manager module for custom nodes: No module named 'toml' Import times for custom nodes: 0.0 seconds (IMPORT FAILED): /home/rohde/projects/ComfyUI/custom_nodes/ComfyUI-Manager`
Author
Owner

@ltdrdata commented on GitHub (Jan 15, 2025):

Ive having the same issue, I did the steps provided then restarted the comfyui and am still facing the issue

`Traceback (most recent call last):
File "/home/rohde/projects/ComfyUI/nodes.py", line 1907, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 995, in exec_module
File "", line 488, in _call_with_frames_removed
File "/home/rohde/projects/ComfyUI/custom_nodes/ComfyUI-Manager/init.py", line 8, in
import manager_server # noqa: F401
^^^^^^^^^^^^^^^^^^^^^
File "/home/rohde/projects/ComfyUI/custom_nodes/ComfyUI-Manager/glob/manager_server.py", line 17, in
import manager_core as core
File "/home/rohde/projects/ComfyUI/custom_nodes/ComfyUI-Manager/glob/manager_core.py", line 37, in
import cnr_utils
File "/home/rohde/projects/ComfyUI/custom_nodes/ComfyUI-Manager/glob/cnr_utils.py", line 5, in
import toml
ModuleNotFoundError: No module named 'toml'

Cannot import /home/rohde/projects/ComfyUI/custom_nodes/ComfyUI-Manager module for custom nodes: No module named 'toml'

Import times for custom nodes:
0.0 seconds (IMPORT FAILED): /home/rohde/projects/ComfyUI/custom_nodes/ComfyUI-Manager`

Please upload the full startup log.
That issue should not have occured since I have patched already.

<!-- gh-comment-id:2594074856 --> @ltdrdata commented on GitHub (Jan 15, 2025): > Ive having the same issue, I did the steps provided then restarted the comfyui and am still facing the issue > > `Traceback (most recent call last): > File "/home/rohde/projects/ComfyUI/nodes.py", line 1907, in load_custom_node > module_spec.loader.exec_module(module) > File "<frozen importlib._bootstrap_external>", line 995, in exec_module > File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed > File "/home/rohde/projects/ComfyUI/custom_nodes/ComfyUI-Manager/__init__.py", line 8, in <module> > import manager_server # noqa: F401 > ^^^^^^^^^^^^^^^^^^^^^ > File "/home/rohde/projects/ComfyUI/custom_nodes/ComfyUI-Manager/glob/manager_server.py", line 17, in <module> > import manager_core as core > File "/home/rohde/projects/ComfyUI/custom_nodes/ComfyUI-Manager/glob/manager_core.py", line 37, in <module> > import cnr_utils > File "/home/rohde/projects/ComfyUI/custom_nodes/ComfyUI-Manager/glob/cnr_utils.py", line 5, in <module> > import toml > ModuleNotFoundError: No module named 'toml' > > Cannot import /home/rohde/projects/ComfyUI/custom_nodes/ComfyUI-Manager module for custom nodes: No module named 'toml' > > Import times for custom nodes: > 0.0 seconds (IMPORT FAILED): /home/rohde/projects/ComfyUI/custom_nodes/ComfyUI-Manager` Please upload the full startup log. That issue should not have occured since I have patched already.
Author
Owner

@feliperohde commented on GitHub (Jan 15, 2025):

Ive having the same issue, I did the steps provided then restarted the comfyui and am still facing the issue
Traceback (most recent call last): File "/home/rohde/projects/ComfyUI/nodes.py", line 1907, in load_custom_node module_spec.loader.exec_module(module) File "", line 995, in exec_module File "", line 488, in _call_with_frames_removed File "/home/rohde/projects/ComfyUI/custom_nodes/ComfyUI-Manager/**init**.py", line 8, in import manager_server # noqa: F401 ^^^^^^^^^^^^^^^^^^^^^ File "/home/rohde/projects/ComfyUI/custom_nodes/ComfyUI-Manager/glob/manager_server.py", line 17, in import manager_core as core File "/home/rohde/projects/ComfyUI/custom_nodes/ComfyUI-Manager/glob/manager_core.py", line 37, in import cnr_utils File "/home/rohde/projects/ComfyUI/custom_nodes/ComfyUI-Manager/glob/cnr_utils.py", line 5, in import toml ModuleNotFoundError: No module named 'toml' Cannot import /home/rohde/projects/ComfyUI/custom_nodes/ComfyUI-Manager module for custom nodes: No module named 'toml' Import times for custom nodes: 0.0 seconds (IMPORT FAILED): /home/rohde/projects/ComfyUI/custom_nodes/ComfyUI-Manager

Please upload the full startup log. That issue should not have occured since I have patched already.

Nevermind, Ive messed something, followed these steps (taking into account my environment) and not it is working
Thank you for the quick respponse

<!-- gh-comment-id:2594133840 --> @feliperohde commented on GitHub (Jan 15, 2025): > > Ive having the same issue, I did the steps provided then restarted the comfyui and am still facing the issue > > `Traceback (most recent call last): > > File "/home/rohde/projects/ComfyUI/nodes.py", line 1907, in load_custom_node > > module_spec.loader.exec_module(module) > > File "", line 995, in exec_module > > File "", line 488, in _call_with_frames_removed > > File "/home/rohde/projects/ComfyUI/custom_nodes/ComfyUI-Manager/**init**.py", line 8, in > > import manager_server # noqa: F401 > > ^^^^^^^^^^^^^^^^^^^^^ > > File "/home/rohde/projects/ComfyUI/custom_nodes/ComfyUI-Manager/glob/manager_server.py", line 17, in > > import manager_core as core > > File "/home/rohde/projects/ComfyUI/custom_nodes/ComfyUI-Manager/glob/manager_core.py", line 37, in > > import cnr_utils > > File "/home/rohde/projects/ComfyUI/custom_nodes/ComfyUI-Manager/glob/cnr_utils.py", line 5, in > > import toml > > ModuleNotFoundError: No module named 'toml' > > Cannot import /home/rohde/projects/ComfyUI/custom_nodes/ComfyUI-Manager module for custom nodes: No module named 'toml' > > Import times for custom nodes: > > 0.0 seconds (IMPORT FAILED): /home/rohde/projects/ComfyUI/custom_nodes/ComfyUI-Manager` > > Please upload the full startup log. That issue should not have occured since I have patched already. Nevermind, Ive messed something, followed [these steps](https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/scripts/install-comfyui-venv-linux.sh) (taking into account my environment) and not it is working Thank you for the quick respponse
Author
Owner

@Lythomir commented on GitHub (Apr 18, 2025):

hey just now tried to installed the ComfyUI manager from the install-manager-for-portable-version bat file, it ran the cmd window and when i try to launch ComfyUI im not seeing the manager window and this is on the ComfyUI cmd window

File "E:\CompfyUI\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager\glob\manager_server.py", line 17, in
import manager_core as core
File "E:\CompfyUI\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager\glob\manager_core.py", line 26, in
import toml
ModuleNotFoundError: No module named 'toml'

Cannot import E:\CompfyUI\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager module for custom nodes: No module named 'toml'

Import times for custom nodes:
0.0 seconds: E:\CompfyUI\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\websocket_image_save.py
0.1 seconds (IMPORT FAILED): E:\CompfyUI\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager

have i fd up somewhere?

<!-- gh-comment-id:2814689587 --> @Lythomir commented on GitHub (Apr 18, 2025): hey just now tried to installed the ComfyUI manager from the install-manager-for-portable-version bat file, it ran the cmd window and when i try to launch ComfyUI im not seeing the manager window and this is on the ComfyUI cmd window File "E:\CompfyUI\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager\glob\manager_server.py", line 17, in <module> import manager_core as core File "E:\CompfyUI\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager\glob\manager_core.py", line 26, in <module> import toml ModuleNotFoundError: No module named 'toml' Cannot import E:\CompfyUI\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager module for custom nodes: No module named 'toml' Import times for custom nodes: 0.0 seconds: E:\CompfyUI\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\websocket_image_save.py 0.1 seconds (IMPORT FAILED): E:\CompfyUI\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager have i fd up somewhere?
Author
Owner

@PherysLux commented on GitHub (Nov 29, 2025):

Having the same issue, did all the steps recommended above

Traceback (most recent call last):
File "/run/media/pherys/System/ComfyUI/nodes.py", line 2146, in load_custom_node
module_spec.loader.exec_module(module)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "", line 1026, in exec_module
File "", line 488, in _call_with_frames_removed
File "/run/media/pherys/System/ComfyUI/custom_nodes/comfyui-manager/init.py", line 12, in
import manager_server # noqa: F401
^^^^^^^^^^^^^^^^^^^^^
File "/run/media/pherys/System/ComfyUI/custom_nodes/comfyui-manager/glob/manager_server.py", line 17, in
import manager_core as core
File "/run/media/pherys/System/ComfyUI/custom_nodes/comfyui-manager/glob/manager_core.py", line 26, in
import toml
ModuleNotFoundError: No module named 'toml'

Cannot import /run/media/pherys/System/ComfyUI/custom_nodes/comfyui-manager module for custom nodes: No module named 'toml'

Import times for custom nodes:
0.0 seconds: /run/media/pherys/System/ComfyUI/custom_nodes/websocket_image_save.py
0.0 seconds (IMPORT FAILED): /run/media/pherys/System/ComfyUI/custom_nodes/comfyui-manager

Context impl SQLiteImpl.
Will assume non-transactional DDL.
No target revision found.
Starting server

<!-- gh-comment-id:3591913574 --> @PherysLux commented on GitHub (Nov 29, 2025): Having the same issue, did all the steps recommended above Traceback (most recent call last): File "/run/media/pherys/System/ComfyUI/nodes.py", line 2146, in load_custom_node module_spec.loader.exec_module(module) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^ File "<frozen importlib._bootstrap_external>", line 1026, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/run/media/pherys/System/ComfyUI/custom_nodes/comfyui-manager/__init__.py", line 12, in <module> import manager_server # noqa: F401 ^^^^^^^^^^^^^^^^^^^^^ File "/run/media/pherys/System/ComfyUI/custom_nodes/comfyui-manager/glob/manager_server.py", line 17, in <module> import manager_core as core File "/run/media/pherys/System/ComfyUI/custom_nodes/comfyui-manager/glob/manager_core.py", line 26, in <module> import toml ModuleNotFoundError: No module named 'toml' Cannot import /run/media/pherys/System/ComfyUI/custom_nodes/comfyui-manager module for custom nodes: No module named 'toml' Import times for custom nodes: 0.0 seconds: /run/media/pherys/System/ComfyUI/custom_nodes/websocket_image_save.py 0.0 seconds (IMPORT FAILED): /run/media/pherys/System/ComfyUI/custom_nodes/comfyui-manager Context impl SQLiteImpl. Will assume non-transactional DDL. No target revision found. Starting server
Author
Owner

@PherysLux commented on GitHub (Nov 29, 2025):

Having the same issue, did all the steps recommended above

Traceback (most recent call last): File "/run/media/pherys/System/ComfyUI/nodes.py", line 2146, in load_custom_node module_spec.loader.exec_module(module) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^ File "", line 1026, in exec_module File "", line 488, in _call_with_frames_removed File "/run/media/pherys/System/ComfyUI/custom_nodes/comfyui-manager/init.py", line 12, in import manager_server # noqa: F401 ^^^^^^^^^^^^^^^^^^^^^ File "/run/media/pherys/System/ComfyUI/custom_nodes/comfyui-manager/glob/manager_server.py", line 17, in import manager_core as core File "/run/media/pherys/System/ComfyUI/custom_nodes/comfyui-manager/glob/manager_core.py", line 26, in import toml ModuleNotFoundError: No module named 'toml'

Cannot import /run/media/pherys/System/ComfyUI/custom_nodes/comfyui-manager module for custom nodes: No module named 'toml'

Import times for custom nodes: 0.0 seconds: /run/media/pherys/System/ComfyUI/custom_nodes/websocket_image_save.py 0.0 seconds (IMPORT FAILED): /run/media/pherys/System/ComfyUI/custom_nodes/comfyui-manager

Context impl SQLiteImpl. Will assume non-transactional DDL. No target revision found. Starting server

I did a complete reinstall and the issue doesn't happen anymore. Didn't find out what caused it unfortunately

<!-- gh-comment-id:3591998542 --> @PherysLux commented on GitHub (Nov 29, 2025): > Having the same issue, did all the steps recommended above > > Traceback (most recent call last): File "/run/media/pherys/System/ComfyUI/nodes.py", line 2146, in load_custom_node module_spec.loader.exec_module(module) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^ File "", line 1026, in exec_module File "", line 488, in _call_with_frames_removed File "/run/media/pherys/System/ComfyUI/custom_nodes/comfyui-manager/**init**.py", line 12, in import manager_server # noqa: F401 ^^^^^^^^^^^^^^^^^^^^^ File "/run/media/pherys/System/ComfyUI/custom_nodes/comfyui-manager/glob/manager_server.py", line 17, in import manager_core as core File "/run/media/pherys/System/ComfyUI/custom_nodes/comfyui-manager/glob/manager_core.py", line 26, in import toml ModuleNotFoundError: No module named 'toml' > > Cannot import /run/media/pherys/System/ComfyUI/custom_nodes/comfyui-manager module for custom nodes: No module named 'toml' > > Import times for custom nodes: 0.0 seconds: /run/media/pherys/System/ComfyUI/custom_nodes/websocket_image_save.py 0.0 seconds (IMPORT FAILED): /run/media/pherys/System/ComfyUI/custom_nodes/comfyui-manager > > Context impl SQLiteImpl. Will assume non-transactional DDL. No target revision found. Starting server I did a complete reinstall and the issue doesn't happen anymore. Didn't find out what caused it unfortunately
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Comfy-Org/ComfyUI-Manager#577
No description provided.