Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating ComfyUI with "update_comfyui.bat" doesn't work #4091

Closed
petrvavrin opened this issue Jul 23, 2024 · 2 comments
Closed

Updating ComfyUI with "update_comfyui.bat" doesn't work #4091

petrvavrin opened this issue Jul 23, 2024 · 2 comments
Labels
Potential Bug User is reporting a bug. This should be tested.

Comments

@petrvavrin
Copy link

Expected Behavior

Update to the latest version

Actual Behavior

Error message

Steps to Reproduce

Run "update_comfyui.bat" in C:\AI\Image\ComfyUI_windows_portable\update

Debug Logs

stashing current changes
creating backup branch: backup_branch_2024-07-24_00_10_46
checking out master branch
Traceback (most recent call last):
  File "C:\AI\Image\ComfyUI_windows_portable\update\update.py", line 65, in <module>
    ref = repo.lookup_reference(branch.name)
                                ^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'name'
Press any key to continue . . .

Other

Used version: 0.0.2 - ComfyUI_windows_portable_nvidia.7z

@petrvavrin petrvavrin added the Potential Bug User is reporting a bug. This should be tested. label Jul 23, 2024
@petrvavrin
Copy link
Author

petrvavrin commented Jul 23, 2024

Fixed when running "Update All" in "ComfyUI Manager" and manual git pull. Then you can update normally with "update_comfyui.bat"

@ltdrdata
Copy link
Collaborator

This issue appears to have occurred because you were not on the main branch.
(If you restored using the snapshot feature, this phenomenon may have occurred as it forcibly adjusted to that version of ComfyUI.)
In the case of ComfyUI-Manager, it has a feature that forcibly readjusts to the main branch even if you're not on it, which is why it was resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Potential Bug User is reporting a bug. This should be tested.
Projects
None yet
Development

No branches or pull requests

2 participants