Skip to content

Fixed dependency deprecation and updated .gitignore#1

Open
alex-cantor wants to merge 1 commit into
LMGsec:mainfrom
alex-cantor:main
Open

Fixed dependency deprecation and updated .gitignore#1
alex-cantor wants to merge 1 commit into
LMGsec:mainfrom
alex-cantor:main

Conversation

@alex-cantor

Copy link
Copy Markdown
  • Replaced deprecated datetime.utcnow() with datetime.now(UTC)
  • Updated .gitignore to exclude .vscode and venv folders

 - Replaced deprecated `datetime.utcnow()` with `datetime.now(UTC)`
 - Updated `.gitignore` to exclude `.vscode` and `venv` folders
@tompohl

tompohl commented Mar 27, 2026

Copy link
Copy Markdown
Contributor

What version deprecates utcnow? I get this in my local with your new code
ImportError: cannot import name 'UTC' from 'datetime' (/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/datetime.py)

@alex-cantor

Copy link
Copy Markdown
Author

It looks like you are running python3.9 (which reached end-of-life support on 2025-10-31). The current version is python3.11.

So, since datetime is native to Python, I’d expect that is the issue?

Thus, if you update your Python version and indicate in the README.md (I can’t at the moment—I’m not at my PC) that Python should be up to date at v3.11, that should fix the problem.

I could also look for an alternative solution, but seeing as v3.9 is at end-of-life support, this seems like a needed change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants