From 2d3dddc51a925ed4871014865a9ea8a4348b393b Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 27 Jul 2024 15:06:48 +0200 Subject: [PATCH] bullseye->bookworm: explicitly import _strptime at the beginning to try to prevent "No module named '_strptime'" during migration --- src/migrations/0027_migrate_to_bookworm.py.disabled | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/migrations/0027_migrate_to_bookworm.py.disabled b/src/migrations/0027_migrate_to_bookworm.py.disabled index 5395153cc..69c9812b3 100644 --- a/src/migrations/0027_migrate_to_bookworm.py.disabled +++ b/src/migrations/0027_migrate_to_bookworm.py.disabled @@ -3,6 +3,9 @@ import os import subprocess from time import sleep +# Explicitly import _strptime to prevent an issue that may arise later because of python3.9 being replaced by 3.11 in the middle of the upgrade etc +import _strptime # noqa: F401 + from moulinette import Moulinette, m18n from moulinette.utils.process import call_async_output from yunohost.utils.error import YunohostError