[GH-ISSUE #1524] AttributeError("type object 'datetime.datetime' has no attribute 'datetime'") #645

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

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

I'm using the latest version of ComfyUI-Manager and I'm still getting the error, the ComfyUI version number is: 0.4.16 The logs are as follows.

`[2025-02-07 09:57:25.887] [info] [START] Security scan
[2025-02-07 09:57:25.887] [info]

[2025-02-07 09:57:26.070] [info] [DONE] Security scan

[2025-02-07 09:57:26.072] [error] Failed to execute startup-script: /Applications/ComfyUI.app/Contents/Resources/ComfyUI/custom_nodes/ComfyUI-Manager/prestartup_script.py / type object 'datetime.datetime' has no attribute 'datetime'

[2025-02-07 09:57:26.072] [error] object address : 0x1030e2ab0
object refcount : 3
object type : 0x10462d278
object type name: AttributeError
object repr : AttributeError("type object 'datetime.datetime' has no attribute 'datetime'")
lost sys.stderr
`

Originally created by @ttym on GitHub (Feb 7, 2025). Original GitHub issue: https://github.com/Comfy-Org/ComfyUI-Manager/issues/1524 I'm using the latest version of ComfyUI-Manager and I'm still getting the error, the ComfyUI version number is: 0.4.16 The logs are as follows. `[2025-02-07 09:57:25.887] [info] [START] Security scan [2025-02-07 09:57:25.887] [info] [2025-02-07 09:57:26.070] [info] [DONE] Security scan [2025-02-07 09:57:26.072] [error] Failed to execute startup-script: /Applications/ComfyUI.app/Contents/Resources/ComfyUI/custom_nodes/ComfyUI-Manager/prestartup_script.py / type object 'datetime.datetime' has no attribute 'datetime' [2025-02-07 09:57:26.072] [error] object address : 0x1030e2ab0 object refcount : 3 object type : 0x10462d278 object type name: AttributeError object repr : AttributeError("type object 'datetime.datetime' has no attribute 'datetime'") lost sys.stderr `
Author
Owner

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

What is your ComfyUI-Manager version and what is your OS?

<!-- gh-comment-id:2641790468 --> @ltdrdata commented on GitHub (Feb 7, 2025): What is your ComfyUI-Manager version and what is your OS?
Author
Owner

@ttym commented on GitHub (Feb 7, 2025):

What is your ComfyUI-Manager version and what is your OS?

ComfyUI-Manager Version : 3.17.7
OS: MacOS 15.3
Python version: 3.13.1

<!-- gh-comment-id:2641971211 --> @ttym commented on GitHub (Feb 7, 2025): > What is your ComfyUI-Manager version and what is your OS? ComfyUI-Manager Version : 3.17.7 OS: MacOS 15.3 Python version: 3.13.1
Author
Owner

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

Execute this in terminal.

python -c "import datetime; print(datetime.__file__);  print(hasattr(datetime, 'datetime'))"

What is displayed?

<!-- gh-comment-id:2644197831 --> @ltdrdata commented on GitHub (Feb 7, 2025): Execute this in terminal. ``` python -c "import datetime; print(datetime.__file__); print(hasattr(datetime, 'datetime'))" ``` What is displayed?
Author
Owner

@ttym commented on GitHub (Feb 8, 2025):

Execute this in terminal.

python -c "import datetime; print(datetime.__file__);  print(hasattr(datetime, 'datetime'))"

What is displayed?

This is the CLI Result

Image

<!-- gh-comment-id:2644407352 --> @ttym commented on GitHub (Feb 8, 2025): > Execute this in terminal. > > ``` > python -c "import datetime; print(datetime.__file__); print(hasattr(datetime, 'datetime'))" > ``` > > What is displayed? This is the CLI Result ![Image](https://github.com/user-attachments/assets/34a7f885-ae37-4c0a-9f35-a7ffe242dbf3)
Author
Owner

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

How about this code?

python -c "from datetime import datetime; print(datetime); print(datetime.now())"
<!-- gh-comment-id:2646467606 --> @ltdrdata commented on GitHub (Feb 9, 2025): How about this code? ``` python -c "from datetime import datetime; print(datetime); print(datetime.now())" ```
Author
Owner

@ttym commented on GitHub (Feb 11, 2025):

How about this code?

python -c "from datetime import datetime; print(datetime); print(datetime.now())"

It looks like this command is also normal

Image

<!-- gh-comment-id:2649615296 --> @ttym commented on GitHub (Feb 11, 2025): > How about this code? > > ``` > python -c "from datetime import datetime; print(datetime); print(datetime.now())" > ``` It looks like this command is also normal ![Image](https://github.com/user-attachments/assets/a0fda933-5a6f-4067-991e-d26d0bae18a2)
Author
Owner

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

How about this code?

python -c "from datetime import datetime; print(datetime); print(datetime.now())"

It looks like this command is also normal

Image

hmm... In that case, it should not be an issue in the latest version of ComfyUI-Manager. Have you updated ComfyUI-Manager to the latest version and tested it?

<!-- gh-comment-id:2650596250 --> @ltdrdata commented on GitHub (Feb 11, 2025): > > How about this code? > > ``` > > python -c "from datetime import datetime; print(datetime); print(datetime.now())" > > ``` > > It looks like this command is also normal > > ![Image](https://github.com/user-attachments/assets/a0fda933-5a6f-4067-991e-d26d0bae18a2) hmm... In that case, it should not be an issue in the latest version of ComfyUI-Manager. Have you updated ComfyUI-Manager to the latest version and tested it?
Author
Owner

@ttym commented on GitHub (Feb 17, 2025):

How about this code?

python -c "from datetime import datetime; print(datetime); print(datetime.now())"

It looks like this command is also normal
Image

hmm... In that case, it should not be an issue in the latest version of ComfyUI-Manager. Have you updated ComfyUI-Manager to the latest version and tested it?

I reinstalled and the problem was solved, close this issue

<!-- gh-comment-id:2661754183 --> @ttym commented on GitHub (Feb 17, 2025): > > > How about this code? > > > ``` > > > python -c "from datetime import datetime; print(datetime); print(datetime.now())" > > > ``` > > > > > > It looks like this command is also normal > > ![Image](https://github.com/user-attachments/assets/a0fda933-5a6f-4067-991e-d26d0bae18a2) > > hmm... In that case, it should not be an issue in the latest version of ComfyUI-Manager. Have you updated ComfyUI-Manager to the latest version and tested it? I reinstalled and the problem was solved, close this issue
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#645
No description provided.