It seems someone didn't check this against Ubuntu 24.04 on arm64.
Using python binary: 'python3'
Using Python Version: Python 3.12.3
09/02/2024 04:49:09 root [INFO]: Downloading payload from https://s3.us-east-1.amazonaws.com/aws-ssm-us-east-1/patchbaselineoperations/linux/payloads/patch-baseline-operations-1.139.tar.gz
09/02/2024 04:49:09 root [INFO]: Attempting to import entrance file os_selector
09/02/2024 04:49:09 root [ERROR]: Error loading entrance module.
Traceback (most recent call last):
File "/var/log/amazon/ssm/patch-baseline-operations/common_startup_entrance.py", line 202, in execute
entrance_module = __import__(module_name)
^^^^^^^^^^^^^^^^^^^^^^^
File "/var/log/amazon/ssm/patch-baseline-operations/os_selector.py", line 11, in <module>
import common_os_selector_methods
File "/var/log/amazon/ssm/patch-baseline-operations/common_os_selector_methods.py", line 12, in <module>
from patch_common.baseline_override import load_baseline_override
File "/var/log/amazon/ssm/patch-baseline-operations/patch_common/baseline_override.py", line 6, in <module>
from patch_common.downloader import download_file, load_json_file, is_access_denied
File "/var/log/amazon/ssm/patch-baseline-operations/patch_common/downloader.py", line 14, in <module>
from patch_common.client_selector import get_default_client
File "/var/log/amazon/ssm/patch-baseline-operations/patch_common/client_selector.py", line 2, in <module>
import boto3
File "/var/log/amazon/ssm/patch-baseline-operations/boto3/__init__.py", line 16, in <module>
from boto3.session import Session
File "/var/log/amazon/ssm/patch-baseline-operations/boto3/session.py", line 17, in <module>
import botocore.session
File "/var/log/amazon/ssm/patch-baseline-operations/botocore/session.py", line 28, in <module>
import botocore.configloader
File "/var/log/amazon/ssm/patch-baseline-operations/botocore/configloader.py", line 19, in <module>
from botocore.compat import six
File "/var/log/amazon/ssm/patch-baseline-operations/botocore/compat.py", line 26, in <module>
from urllib3 import exceptions
File "/var/log/amazon/ssm/patch-baseline-operations/urllib3/__init__.py", line 8, in <module>
from .connectionpool import (
File "/var/log/amazon/ssm/patch-baseline-operations/urllib3/connectionpool.py", line 11, in <module>
from .exceptions import (
File "/var/log/amazon/ssm/patch-baseline-operations/urllib3/exceptions.py", line 2, in <module>
from .packages.six.moves.http_client import (
ModuleNotFoundError: No module named 'urllib3.packages.six.moves'
09/02/2024 04:49:09 root [ERROR]: No module named 'urllib3.packages.six.moves'
Traceback (most recent call last):
File "/var/log/amazon/ssm/patch-baseline-operations/common_startup_entrance.py", line 202, in execute
entrance_module = __import__(module_name)
^^^^^^^^^^^^^^^^^^^^^^^
File "/var/log/amazon/ssm/patch-baseline-operations/os_selector.py", line 11, in <module>
import common_os_selector_methods
File "/var/log/amazon/ssm/patch-baseline-operations/common_os_selector_methods.py", line 12, in <module>
from patch_common.baseline_override import load_baseline_override
File "/var/log/amazon/ssm/patch-baseline-operations/patch_common/baseline_override.py", line 6, in <module>
from patch_common.downloader import download_file, load_json_file, is_access_denied
File "/var/log/amazon/ssm/patch-baseline-operations/patch_common/downloader.py", line 14, in <module>
from patch_common.client_selector import get_default_client
File "/var/log/amazon/ssm/patch-baseline-operations/patch_common/client_selector.py", line 2, in <module>
import boto3
File "/var/log/amazon/ssm/patch-baseline-operations/boto3/__init__.py", line 16, in <module>
from boto3.session import Session
File "/var/log/amazon/ssm/patch-baseline-operations/boto3/session.py", line 17, in <module>
import botocore.session
File "/var/log/amazon/ssm/patch-baseline-operations/botocore/session.py", line 28, in <module>
import botocore.configloader
File "/var/log/amazon/ssm/patch-baseline-operations/botocore/configloader.py", line 19, in <module>
from botocore.compat import six
File "/var/log/amazon/ssm/patch-baseline-operations/botocore/compat.py", line 26, in <module>
from urllib3 import exceptions
File "/var/log/amazon/ssm/patch-baseline-operations/urllib3/__init__.py", line 8, in <module>
from .connectionpool import (
File "/var/log/amazon/ssm/patch-baseline-operations/urllib3/connectionpool.py", line 11, in <module>
from .exceptions import (
File "/var/log/amazon/ssm/patch-baseline-operations/urllib3/exceptions.py", line 2, in <module>
from .packages.six.moves.http_client import (
ModuleNotFoundError: No module named 'urllib3.packages.six.moves'
Could someone from Amazon open an internal bug about this? thanks in advance.
It's been out for 5 months and it's a relatively simple bug. Are the SSM patch payloads in need of a maintainer or something? Also, python2 has been EOL since Jan 1st 2020. "six" is a python2 to python3 compatibility layer. Sooooo, what's the excuse?