mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2026-11-05 07:47:25 +00:00
[GH-ISSUE #1517] AttributeError("type object 'datetime.datetime' has no attribute 'datetime'") #640
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/ComfyUI-Manager#640
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cjhmdm on GitHub (Feb 4, 2025).
Original GitHub issue: https://github.com/Comfy-Org/ComfyUI-Manager/issues/1517
The following errors from a fresh install (neither of these has ever been installed on this machine) of the latest version of ComfyUI Desktop (v0.4.16). After initial install, cloned latest version of ComfyUI-Manager (3.17.7) and receive the errors below.
OS: Windows 11 Pro 24H2
@cjhmdm commented on GitHub (Feb 4, 2025):
Resolved this locally by making the following changes:
C:\Users\chris\Documents\ComfyUI\custom_nodes\ComfyUI-Manager\prestartup_script.py
changed
import datetimetofrom datetime import datetimeand
return datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f')[:-3]toreturn datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f')[:-3]and
C:\Users\chris\AppData\Local\Programs@comfyorgcomfyui-electron\resources\ComfyUI\custom_nodes\ComfyUI-Manager\prestartup_script.py
changed
import datetimetofrom datetime import datetimeand
timestamp = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f')[:-3]totimestamp = datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f')[:-3]and
print("** ComfyUI startup time:", datetime.datetime.now())toprint("** ComfyUI startup time:", datetime.now())Note: I am unsure if the above changes causes any issues anywhere else as I'm reporting back as I go.
@Explyy commented on GitHub (Feb 5, 2025):
I couldn't fix it your way, unfortunately mine don't connect to server after applying your fix...
@GalacticF commented on GitHub (Feb 6, 2025):
@ltdrdata commented on GitHub (Feb 7, 2025):
This is fixed