[GH-ISSUE #680] issue with updating #314

Closed
opened 2026-10-27 21:16:05 +00:00 by bsakaguchi · 4 comments
Owner

Originally created by @RYG81 on GitHub (May 15, 2024).
Original GitHub issue: https://github.com/Comfy-Org/ComfyUI-Manager/issues/680

I am getting this errors in console

Update ComfyUI
ComfyUI update fail: Failed to parse reference information from 'refs/remotes/origin/master'
comfy_path: D:\000AI\ComfyUI\ComfyUI
ERROR: Exception:
Traceback (most recent call last):
File "D:\000AI\ComfyUI\python_embeded\Lib\site-packages\pip_internal\cli\base_command.py", line 180, in exc_logging_wrapper
status = run_func(*args)
^^^^^^^^^^^^^^^
File "D:\000AI\ComfyUI\python_embeded\Lib\site-packages\pip_internal\commands\freeze.py", line 98, in run
for line in freeze(
File "D:\000AI\ComfyUI\python_embeded\Lib\site-packages\pip_internal\operations\freeze.py", line 43, in freeze
req = FrozenRequirement.from_dist(dist)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\000AI\ComfyUI\python_embeded\Lib\site-packages\pip_internal\operations\freeze.py", line 238, in from_dist
req, comments = _get_editable_info(dist)
^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\000AI\ComfyUI\python_embeded\Lib\site-packages\pip_internal\operations\freeze.py", line 165, in _get_editable_info
vcs_backend = vcs.get_backend_for_dir(location)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\000AI\ComfyUI\python_embeded\Lib\site-packages\pip_internal\vcs\versioncontrol.py", line 238, in get_backend_for_dir
repo_path = vcs_backend.get_repository_root(location)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\000AI\ComfyUI\python_embeded\Lib\site-packages\pip_internal\vcs\git.py", line 501, in get_repository_root
r = cls.run_command(
^^^^^^^^^^^^^^^^
File "D:\000AI\ComfyUI\python_embeded\Lib\site-packages\pip_internal\vcs\versioncontrol.py", line 650, in run_command
return call_subprocess(
^^^^^^^^^^^^^^^^
File "D:\000AI\ComfyUI\python_embeded\Lib\site-packages\pip_internal\utils\subprocess.py", line 141, in call_subprocess
proc = subprocess.Popen(
^^^^^^^^^^^^^^^^^
File "subprocess.py", line 1026, in init
File "subprocess.py", line 1538, in _execute_child
NotADirectoryError: [WinError 267] The directory name is invalid

not sure whats wrong here
can you please help.

Originally created by @RYG81 on GitHub (May 15, 2024). Original GitHub issue: https://github.com/Comfy-Org/ComfyUI-Manager/issues/680 I am getting this errors in console Update ComfyUI ComfyUI update fail: Failed to parse reference information from 'refs/remotes/origin/master' comfy_path: D:\000AI\ComfyUI\ComfyUI ERROR: Exception: Traceback (most recent call last): File "D:\000AI\ComfyUI\python_embeded\Lib\site-packages\pip\_internal\cli\base_command.py", line 180, in exc_logging_wrapper status = run_func(*args) ^^^^^^^^^^^^^^^ File "D:\000AI\ComfyUI\python_embeded\Lib\site-packages\pip\_internal\commands\freeze.py", line 98, in run for line in freeze( File "D:\000AI\ComfyUI\python_embeded\Lib\site-packages\pip\_internal\operations\freeze.py", line 43, in freeze req = FrozenRequirement.from_dist(dist) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\000AI\ComfyUI\python_embeded\Lib\site-packages\pip\_internal\operations\freeze.py", line 238, in from_dist req, comments = _get_editable_info(dist) ^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\000AI\ComfyUI\python_embeded\Lib\site-packages\pip\_internal\operations\freeze.py", line 165, in _get_editable_info vcs_backend = vcs.get_backend_for_dir(location) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\000AI\ComfyUI\python_embeded\Lib\site-packages\pip\_internal\vcs\versioncontrol.py", line 238, in get_backend_for_dir repo_path = vcs_backend.get_repository_root(location) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\000AI\ComfyUI\python_embeded\Lib\site-packages\pip\_internal\vcs\git.py", line 501, in get_repository_root r = cls.run_command( ^^^^^^^^^^^^^^^^ File "D:\000AI\ComfyUI\python_embeded\Lib\site-packages\pip\_internal\vcs\versioncontrol.py", line 650, in run_command return call_subprocess( ^^^^^^^^^^^^^^^^ File "D:\000AI\ComfyUI\python_embeded\Lib\site-packages\pip\_internal\utils\subprocess.py", line 141, in call_subprocess proc = subprocess.Popen( ^^^^^^^^^^^^^^^^^ File "subprocess.py", line 1026, in __init__ File "subprocess.py", line 1538, in _execute_child NotADirectoryError: [WinError 267] The directory name is invalid not sure whats wrong here can you please help.
Author
Owner

@ltdrdata commented on GitHub (May 15, 2024):

It seems that your python environment is invalid.
I reccomend reinstall that.

<!-- gh-comment-id:2112639178 --> @ltdrdata commented on GitHub (May 15, 2024): It seems that your python environment is invalid. I reccomend reinstall that.
Author
Owner

@RYG81 commented on GitHub (May 15, 2024):

how to do that without affecting all my node installation and model downloads? is there any easy way? I did use comfyUI update folder batch file that updates everything.

<!-- gh-comment-id:2112704176 --> @RYG81 commented on GitHub (May 15, 2024): how to do that without affecting all my node installation and model downloads? is there any easy way? I did use comfyUI update folder batch file that updates everything.
Author
Owner

@ltdrdata commented on GitHub (May 15, 2024):

how to do that without affecting all my node installation and model downloads? is there any easy way? I did use comfyUI update folder batch file that updates everything.

First, leave the existing environment as it is, and set up a new environment to test it out.

<!-- gh-comment-id:2112739304 --> @ltdrdata commented on GitHub (May 15, 2024): > how to do that without affecting all my node installation and model downloads? is there any easy way? I did use comfyUI update folder batch file that updates everything. First, leave the existing environment as it is, and set up a new environment to test it out.
Author
Owner

@RYG81 commented on GitHub (May 15, 2024):

OK, I will try my best to solve this.

<!-- gh-comment-id:2112758294 --> @RYG81 commented on GitHub (May 15, 2024): OK, I will try my best to solve this.
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#314
No description provided.