qubes-issues icon indicating copy to clipboard operation
qubes-issues copied to clipboard

cli update: jid.py:19: DeprecationWarning: datetime.datetime.utcnow() is deprecated

Open johnnyboy-3 opened this issue 2 years ago • 4 comments

Qubes OS release

4.2

Brief summary

cli update gives a deprecation warning

Steps to reproduce

sudo qubesctl --show-output --skip-dom0 --targets="fedora-39-xfce" state.sls update.qubes-vm

Expected behavior

no warning

Actual behavior

/usr/lib/python3.12/site-packages/salt/utils/jid.py:19: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). return datetime.datetime.utcnow()

johnnyboy-3 avatar Mar 03 '24 06:03 johnnyboy-3

https://github.com/saltstack/salt/issues/65604

slayoo avatar Mar 03 '24 12:03 slayoo

(which already has a relevant PR: https://github.com/saltstack/salt/pull/66042)

slayoo avatar Mar 03 '24 20:03 slayoo

I got the same issue in Qubes 4.1 trying to use qubes-dist-upgrade. Getting the error in phase 1 trying to update a fedora-39-minimal template.

BishopRez avatar Mar 19 '24 12:03 BishopRez

I got the same issue in Qubes 4.1 trying to use qubes-dist-upgrade. Getting the error in phase 1 trying to update a fedora-39-minimal template.

I was able to go around by installing the qubes-mgmt-salt-vm-connector. Probably the python package that are required for it fixed the issues.

BishopRez avatar Apr 22 '24 12:04 BishopRez