Guest VMs running Python version 3.12 or higher, VmSnapshotLinux extension fails with error message - importlib module missing the load_source attribute. This error occurs due to updates in Python 3.12+ that affected certain attributes within the importlib module.
To address this issue and ensure compatibility with Python 3.12, the code is modified to handle the absence of the load_source attribute gracefully. In addition to that made changes to address the new SyntaxWarning applicable to Python 3.12 (Invalid backslash escape sequences in strings previously warn with DeprecationWarning now warn as SyntaxWarning).
Guest VMs running Python version 3.12 or higher, VmSnapshotLinux extension fails with error message - importlib module missing the load_source attribute. This error occurs due to updates in Python 3.12+ that affected certain attributes within the importlib module.
To address this issue and ensure compatibility with Python 3.12, the code is modified to handle the absence of the load_source attribute gracefully. In addition to that made changes to address the new SyntaxWarning applicable to Python 3.12 (Invalid backslash escape sequences in strings previously warn with DeprecationWarning now warn as SyntaxWarning).