[GH-ISSUE #1545] configparser.DuplicateOptionError #656

Closed
opened 2026-10-27 21:20:29 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @dchatel on GitHub (Feb 14, 2025).
Original GitHub issue: https://github.com/Comfy-Org/ComfyUI-Manager/issues/1545

Not sure how to deal with this. It just happened this morning.
I tried to update both comyfui and comfyui-manager using git pull, but the error remains.
Not sure how to deactivate comfyui_searge_llm without uninstalling it.

### ComfyUI Version: v0.3.14-22-g042a905c | Released on '2025-02-13'
Traceback (most recent call last):
  File "G:\ai\ComfyUI\nodes.py", line 2113, 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 "G:\ai\ComfyUI\custom_nodes\ComfyUI-Manager\__init__.py", line 8, in <module>
    import manager_server  # noqa: F401
    ^^^^^^^^^^^^^^^^^^^^^
  File "G:\ai\ComfyUI\custom_nodes\ComfyUI-Manager\glob\manager_server.py", line 755, in <module>
    startup_time_installed_node_packs = core.get_installed_node_packs()
                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "G:\ai\ComfyUI\custom_nodes\ComfyUI-Manager\glob\manager_core.py", line 1478, in get_installed_node_packs
    info = identify_node_pack_from_path(fullpath)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "G:\ai\ComfyUI\custom_nodes\ComfyUI-Manager\glob\manager_core.py", line 1450, in identify_node_pack_from_path
    repo_url = git_utils.git_url(fullpath)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "G:\ai\ComfyUI\custom_nodes\ComfyUI-Manager\glob\git_utils.py", line 41, in git_url
    config.read(git_config_path)
  File "C:\Users\dchat\miniconda3\envs\comfy\Lib\configparser.py", line 713, in read
    self._read(fp, filename)
  File "C:\Users\dchat\miniconda3\envs\comfy\Lib\configparser.py", line 1113, in _read
    raise DuplicateOptionError(sectname, optname,
configparser.DuplicateOptionError: While reading from 'G:\\ai\\ComfyUI\\custom_nodes\\ComfyUI_Searge_LLM\\.git\\config' [line 17]: option 'vscode-merge-base' in section 'branch "main"' already exists

Cannot import G:\ai\ComfyUI\custom_nodes\ComfyUI-Manager module for custom nodes: While reading from 'G:\\ai\\ComfyUI\\custom_nodes\\ComfyUI_Searge_LLM\\.git\\config' [line 17]: option 'vscode-merge-base' in section 'branch "main"' already exists
Originally created by @dchatel on GitHub (Feb 14, 2025). Original GitHub issue: https://github.com/Comfy-Org/ComfyUI-Manager/issues/1545 Not sure how to deal with this. It just happened this morning. I tried to update both comyfui and comfyui-manager using `git pull`, but the error remains. Not sure how to deactivate comfyui_searge_llm without uninstalling it. ``` ### ComfyUI Version: v0.3.14-22-g042a905c | Released on '2025-02-13' Traceback (most recent call last): File "G:\ai\ComfyUI\nodes.py", line 2113, 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 "G:\ai\ComfyUI\custom_nodes\ComfyUI-Manager\__init__.py", line 8, in <module> import manager_server # noqa: F401 ^^^^^^^^^^^^^^^^^^^^^ File "G:\ai\ComfyUI\custom_nodes\ComfyUI-Manager\glob\manager_server.py", line 755, in <module> startup_time_installed_node_packs = core.get_installed_node_packs() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "G:\ai\ComfyUI\custom_nodes\ComfyUI-Manager\glob\manager_core.py", line 1478, in get_installed_node_packs info = identify_node_pack_from_path(fullpath) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "G:\ai\ComfyUI\custom_nodes\ComfyUI-Manager\glob\manager_core.py", line 1450, in identify_node_pack_from_path repo_url = git_utils.git_url(fullpath) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "G:\ai\ComfyUI\custom_nodes\ComfyUI-Manager\glob\git_utils.py", line 41, in git_url config.read(git_config_path) File "C:\Users\dchat\miniconda3\envs\comfy\Lib\configparser.py", line 713, in read self._read(fp, filename) File "C:\Users\dchat\miniconda3\envs\comfy\Lib\configparser.py", line 1113, in _read raise DuplicateOptionError(sectname, optname, configparser.DuplicateOptionError: While reading from 'G:\\ai\\ComfyUI\\custom_nodes\\ComfyUI_Searge_LLM\\.git\\config' [line 17]: option 'vscode-merge-base' in section 'branch "main"' already exists Cannot import G:\ai\ComfyUI\custom_nodes\ComfyUI-Manager module for custom nodes: While reading from 'G:\\ai\\ComfyUI\\custom_nodes\\ComfyUI_Searge_LLM\\.git\\config' [line 17]: option 'vscode-merge-base' in section 'branch "main"' already exists ```
Author
Owner

@ltdrdata commented on GitHub (Feb 14, 2025):

Are you editing custom nodes with VSCode? The Git plugin in VSCode is causing issues by corrupting the .git/config state.

Please edit the file and remove the vscode-merge-base entries.

<!-- gh-comment-id:2658801313 --> @ltdrdata commented on GitHub (Feb 14, 2025): Are you editing custom nodes with VSCode? The Git plugin in VSCode is causing issues by corrupting the `.git/config` state. Please edit the file and remove the `vscode-merge-base` entries.
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#656
No description provided.