Last active
May 23, 2021 12:04
-
-
Save endymion/a5381dad4987c69bda9ec2141bf2b960 to your computer and use it in GitHub Desktop.
Attempting to install the AWS SAM CLI on a Gravitron2-based EC2 M6g Amazon Linux 2 instance using PIP.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ec2-user@ip-172-31-40-220 ~]$ pip3 install --user aws-sam-cli | |
Collecting aws-sam-cli | |
Downloading https://files.pythonhosted.org/packages/6d/f7/77aaa4d128dd5b9cc443b852f924cbe155cac7bb0ce191c2ac34d7c4d794/aws_sam_cli-1.23.0-py3-none-any.whl (3.8MB) | |
100% |████████████████████████████████| 3.8MB 383kB/s | |
Collecting requests==2.23.0 (from aws-sam-cli) | |
Downloading https://files.pythonhosted.org/packages/1a/70/1935c770cb3be6e3a8b78ced23d7e0f3b187f5cbfab4749523ed65d7c9b1/requests-2.23.0-py2.py3-none-any.whl (58kB) | |
100% |████████████████████████████████| 61kB 12.8MB/s | |
Collecting Flask~=1.1.2 (from aws-sam-cli) | |
Downloading https://files.pythonhosted.org/packages/e8/6d/994208daa354f68fd89a34a8bafbeaab26fda84e7af1e35bdaed02b667e6/Flask-1.1.4-py2.py3-none-any.whl (94kB) | |
100% |████████████████████████████████| 102kB 13.3MB/s | |
Collecting jmespath~=0.10.0 (from aws-sam-cli) | |
Downloading https://files.pythonhosted.org/packages/07/cb/5f001272b6faeb23c1c9e0acc04d48eaaf5c862c17709d20e3469c6e0139/jmespath-0.10.0-py2.py3-none-any.whl | |
Collecting PyYAML~=5.3 (from aws-sam-cli) | |
Downloading https://files.pythonhosted.org/packages/a0/a4/d63f2d7597e1a4b55aa3b4d6c5b029991d3b824b5bd331af8d4ab1ed687d/PyYAML-5.4.1.tar.gz (175kB) | |
100% |████████████████████████████████| 184kB 6.8MB/s | |
Collecting docker~=4.2.0 (from aws-sam-cli) | |
Downloading https://files.pythonhosted.org/packages/3c/15/7a2f095a3b8b0fff9a0a5f56bd941e05fa958d4ca31105541001a5f7d3eb/docker-4.2.2-py2.py3-none-any.whl (144kB) | |
100% |████████████████████████████████| 153kB 8.3MB/s | |
Collecting watchdog==0.10.3 (from aws-sam-cli) | |
Downloading https://files.pythonhosted.org/packages/0e/06/121302598a4fc01aca942d937f4a2c33430b7181137b35758913a8db10ad/watchdog-0.10.3.tar.gz (94kB) | |
100% |████████████████████████████████| 102kB 12.7MB/s | |
Collecting serverlessrepo==0.1.10 (from aws-sam-cli) | |
Downloading https://files.pythonhosted.org/packages/fa/3a/0cc09e616bd4f20f108b01cd2b85bc73151698c57e772aadf32773e20763/serverlessrepo-0.1.10-py2.py3-none-any.whl | |
Collecting aws-lambda-builders==1.3.0 (from aws-sam-cli) | |
Downloading https://files.pythonhosted.org/packages/8b/5f/24751054228cc3e4d639cd6ff7b434017474967f017f6b1829ca3b4c2e56/aws_lambda_builders-1.3.0-py3-none-any.whl (94kB) | |
100% |████████████████████████████████| 102kB 12.6MB/s | |
Collecting boto3~=1.14 (from aws-sam-cli) | |
Downloading https://files.pythonhosted.org/packages/8d/40/df7a3acc7e0916632c4cd689ccbd98f9edfcb2740b7244033442f44c658e/boto3-1.17.72-py2.py3-none-any.whl (131kB) | |
100% |████████████████████████████████| 133kB 8.1MB/s | |
Collecting chevron~=0.12 (from aws-sam-cli) | |
Downloading https://files.pythonhosted.org/packages/52/93/342cc62a70ab727e093ed98e02a725d85b746345f05d2b5e5034649f4ec8/chevron-0.14.0-py3-none-any.whl | |
Collecting tomlkit==0.7.0 (from aws-sam-cli) | |
Downloading https://files.pythonhosted.org/packages/bc/01/a0ee34fe37dd54f795e8f8a820af57c9a94d7358276acf6cdc21ae8d9533/tomlkit-0.7.0-py2.py3-none-any.whl | |
Collecting aws-sam-translator==1.35.0 (from aws-sam-cli) | |
Downloading https://files.pythonhosted.org/packages/99/76/0c14af2d6ee91022d69851a12454545e49791175c74025a2b9e3ccc2a7af/aws_sam_translator-1.35.0-py3-none-any.whl (220kB) | |
100% |████████████████████████████████| 225kB 6.0MB/s | |
Collecting cookiecutter~=1.7.2 (from aws-sam-cli) | |
Downloading https://files.pythonhosted.org/packages/a2/62/d061b19f307455506e63825586e2e1816b71d56b4a5873c278cb315b9660/cookiecutter-1.7.3-py2.py3-none-any.whl | |
Collecting click~=7.1 (from aws-sam-cli) | |
Downloading https://files.pythonhosted.org/packages/d2/3d/fa76db83bf75c4f8d338c2fd15c8d33fdd7ad23a9b5e57eb6c5de26b430e/click-7.1.2-py2.py3-none-any.whl (82kB) | |
100% |████████████████████████████████| 92kB 11.0MB/s | |
Collecting dateparser~=0.7 (from aws-sam-cli) | |
Downloading https://files.pythonhosted.org/packages/c1/d5/5a2e51bc0058f66b54669735f739d27afc3eb453ab00520623c7ab168e22/dateparser-0.7.6-py2.py3-none-any.whl (362kB) | |
100% |████████████████████████████████| 368kB 3.7MB/s | |
Collecting chardet<4,>=3.0.2 (from requests==2.23.0->aws-sam-cli) | |
Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB) | |
100% |████████████████████████████████| 143kB 8.6MB/s | |
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 (from requests==2.23.0->aws-sam-cli) | |
Downloading https://files.pythonhosted.org/packages/56/aa/4ef5aa67a9a62505db124a5cb5262332d1d4153462eb8fd89c9fa41e5d92/urllib3-1.25.11-py2.py3-none-any.whl (127kB) | |
100% |████████████████████████████████| 133kB 9.3MB/s | |
Collecting idna<3,>=2.5 (from requests==2.23.0->aws-sam-cli) | |
Downloading https://files.pythonhosted.org/packages/a2/38/928ddce2273eaa564f6f50de919327bf3a00f091b5baba8dfa9460f3a8a8/idna-2.10-py2.py3-none-any.whl (58kB) | |
100% |████████████████████████████████| 61kB 12.4MB/s | |
Collecting certifi>=2017.4.17 (from requests==2.23.0->aws-sam-cli) | |
Downloading https://files.pythonhosted.org/packages/5e/a0/5f06e1e1d463903cf0c0eebeb751791119ed7a4b3737fdc9a77f1cdfb51f/certifi-2020.12.5-py2.py3-none-any.whl (147kB) | |
100% |████████████████████████████████| 153kB 7.9MB/s | |
Collecting Jinja2<3.0,>=2.10.1 (from Flask~=1.1.2->aws-sam-cli) | |
Downloading https://files.pythonhosted.org/packages/7e/c2/1eece8c95ddbc9b1aeb64f5783a9e07a286de42191b7204d67b7496ddf35/Jinja2-2.11.3-py2.py3-none-any.whl (125kB) | |
100% |████████████████████████████████| 133kB 9.7MB/s | |
Collecting Werkzeug<2.0,>=0.15 (from Flask~=1.1.2->aws-sam-cli) | |
Downloading https://files.pythonhosted.org/packages/cc/94/5f7079a0e00bd6863ef8f1da638721e9da21e5bacee597595b318f71d62e/Werkzeug-1.0.1-py2.py3-none-any.whl (298kB) | |
100% |████████████████████████████████| 307kB 4.4MB/s | |
Collecting itsdangerous<2.0,>=0.24 (from Flask~=1.1.2->aws-sam-cli) | |
Downloading https://files.pythonhosted.org/packages/76/ae/44b03b253d6fade317f32c24d100b3b35c2239807046a4c953c7b89fa49e/itsdangerous-1.1.0-py2.py3-none-any.whl | |
Collecting websocket-client>=0.32.0 (from docker~=4.2.0->aws-sam-cli) | |
Downloading https://files.pythonhosted.org/packages/f7/0c/d52a2a63512a613817846d430d16a8fbe5ea56dd889e89c68facf6b91cb6/websocket_client-0.59.0-py2.py3-none-any.whl (67kB) | |
100% |████████████████████████████████| 71kB 12.8MB/s | |
Collecting six>=1.4.0 (from docker~=4.2.0->aws-sam-cli) | |
Downloading https://files.pythonhosted.org/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl | |
Collecting pathtools>=0.1.1 (from watchdog==0.10.3->aws-sam-cli) | |
Downloading https://files.pythonhosted.org/packages/e7/7f/470d6fcdf23f9f3518f6b0b76be9df16dcc8630ad409947f8be2eb0ed13a/pathtools-0.1.2.tar.gz | |
Requirement already satisfied: setuptools in /usr/lib/python3.7/site-packages (from aws-lambda-builders==1.3.0->aws-sam-cli) | |
Collecting wheel (from aws-lambda-builders==1.3.0->aws-sam-cli) | |
Downloading https://files.pythonhosted.org/packages/65/63/39d04c74222770ed1589c0eaba06c05891801219272420b40311cd60c880/wheel-0.36.2-py2.py3-none-any.whl | |
Collecting s3transfer<0.5.0,>=0.4.0 (from boto3~=1.14->aws-sam-cli) | |
Downloading https://files.pythonhosted.org/packages/63/d0/693477c688348654ddc21dcdce0817653a294aa43f41771084c25e7ff9c7/s3transfer-0.4.2-py2.py3-none-any.whl (79kB) | |
100% |████████████████████████████████| 81kB 11.9MB/s | |
Collecting botocore<1.21.0,>=1.20.72 (from boto3~=1.14->aws-sam-cli) | |
Downloading https://files.pythonhosted.org/packages/54/e7/9572f20a7eabaaf1b289d1647c388dc165831478b156902539f310f08f02/botocore-1.20.72-py2.py3-none-any.whl (7.5MB) | |
100% |████████████████████████████████| 7.5MB 195kB/s | |
Collecting jsonschema~=3.2 (from aws-sam-translator==1.35.0->aws-sam-cli) | |
Downloading https://files.pythonhosted.org/packages/c5/8f/51e89ce52a085483359217bc72cdbf6e75ee595d5b1d4b5ade40c7e018b8/jsonschema-3.2.0-py2.py3-none-any.whl (56kB) | |
100% |████████████████████████████████| 61kB 12.8MB/s | |
Collecting poyo>=0.5.0 (from cookiecutter~=1.7.2->aws-sam-cli) | |
Downloading https://files.pythonhosted.org/packages/42/50/0b0820601bde2eda403f47b9a4a1f270098ed0dd4c00c443d883164bdccc/poyo-0.5.0-py2.py3-none-any.whl | |
Collecting binaryornot>=0.4.4 (from cookiecutter~=1.7.2->aws-sam-cli) | |
Downloading https://files.pythonhosted.org/packages/24/7e/f7b6f453e6481d1e233540262ccbfcf89adcd43606f44a028d7f5fae5eb2/binaryornot-0.4.4-py2.py3-none-any.whl | |
Collecting jinja2-time>=0.2.0 (from cookiecutter~=1.7.2->aws-sam-cli) | |
Downloading https://files.pythonhosted.org/packages/6a/a1/d44fa38306ffa34a7e1af09632b158e13ec89670ce491f8a15af3ebcb4e4/jinja2_time-0.2.0-py2.py3-none-any.whl | |
Collecting python-slugify>=4.0.0 (from cookiecutter~=1.7.2->aws-sam-cli) | |
Downloading https://files.pythonhosted.org/packages/7e/e2/0c8be1e3b237d11f10963c7cef82e4d98d70ca6e176f3922dddf7bfc7026/python_slugify-5.0.2-py2.py3-none-any.whl | |
Collecting pytz (from dateparser~=0.7->aws-sam-cli) | |
Downloading https://files.pythonhosted.org/packages/70/94/784178ca5dd892a98f113cdd923372024dc04b8d40abe77ca76b5fb90ca6/pytz-2021.1-py2.py3-none-any.whl (510kB) | |
100% |████████████████████████████████| 512kB 3.0MB/s | |
Collecting python-dateutil (from dateparser~=0.7->aws-sam-cli) | |
Downloading https://files.pythonhosted.org/packages/d4/70/d60450c3dd48ef87586924207ae8907090de0b306af2bce5d134d78615cb/python_dateutil-2.8.1-py2.py3-none-any.whl (227kB) | |
100% |████████████████████████████████| 235kB 6.2MB/s | |
Collecting regex!=2019.02.19 (from dateparser~=0.7->aws-sam-cli) | |
Downloading https://files.pythonhosted.org/packages/38/3f/4c42a98c9ad7d08c16e7d23b2194a0e4f3b2914662da8bc88986e4e6de1f/regex-2021.4.4.tar.gz (693kB) | |
100% |████████████████████████████████| 696kB 2.1MB/s | |
Collecting tzlocal (from dateparser~=0.7->aws-sam-cli) | |
Downloading https://files.pythonhosted.org/packages/5d/94/d47b0fd5988e6b7059de05720a646a2930920fff247a826f61674d436ba4/tzlocal-2.1-py2.py3-none-any.whl | |
Collecting MarkupSafe>=0.23 (from Jinja2<3.0,>=2.10.1->Flask~=1.1.2->aws-sam-cli) | |
Downloading https://files.pythonhosted.org/packages/67/6a/5b3ed5c122e20c33d2562df06faf895a6b91b0a6b96a4626440ffe1d5c8e/MarkupSafe-2.0.0.tar.gz | |
Complete output from command python setup.py egg_info: | |
Traceback (most recent call last): | |
File "<string>", line 1, in <module> | |
File "/tmp/pip-build-dwaqouy_/MarkupSafe/setup.py", line 61, in <module> | |
run_setup(True) | |
File "/tmp/pip-build-dwaqouy_/MarkupSafe/setup.py", line 44, in run_setup | |
ext_modules=ext_modules if with_binary else [], | |
File "/usr/lib/python3.7/site-packages/setuptools/__init__.py", line 129, in setup | |
return distutils.core.setup(**attrs) | |
File "/usr/lib64/python3.7/distutils/core.py", line 121, in setup | |
dist.parse_config_files() | |
File "/usr/lib/python3.7/site-packages/setuptools/dist.py", line 442, in parse_config_files | |
ignore_option_errors=ignore_option_errors) | |
File "/usr/lib/python3.7/site-packages/setuptools/config.py", line 106, in parse_configuration | |
meta.parse() | |
File "/usr/lib/python3.7/site-packages/setuptools/config.py", line 382, in parse | |
section_parser_method(section_options) | |
File "/usr/lib/python3.7/site-packages/setuptools/config.py", line 355, in parse_section | |
self[name] = value | |
File "/usr/lib/python3.7/site-packages/setuptools/config.py", line 173, in __setitem__ | |
value = parser(value) | |
File "/usr/lib/python3.7/site-packages/setuptools/config.py", line 430, in _parse_version | |
version = self._parse_attr(value) | |
File "/usr/lib/python3.7/site-packages/setuptools/config.py", line 305, in _parse_attr | |
module = import_module(module_name) | |
File "/usr/lib64/python3.7/importlib/__init__.py", line 127, in import_module | |
return _bootstrap._gcd_import(name[level:], package, level) | |
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import | |
File "<frozen importlib._bootstrap>", line 983, in _find_and_load | |
File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked | |
ModuleNotFoundError: No module named 'markupsafe' | |
---------------------------------------- | |
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-dwaqouy_/MarkupSafe/ | |
[ec2-user@ip-172-31-40-220 ~]$ sudo pip3 install markupsafe | |
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead. | |
Collecting markupsafe | |
Downloading https://files.pythonhosted.org/packages/67/6a/5b3ed5c122e20c33d2562df06faf895a6b91b0a6b96a4626440ffe1d5c8e/MarkupSafe-2.0.0.tar.gz | |
Complete output from command python setup.py egg_info: | |
Traceback (most recent call last): | |
File "<string>", line 1, in <module> | |
File "/tmp/pip-build-tpa4wccr/markupsafe/setup.py", line 61, in <module> | |
run_setup(True) | |
File "/tmp/pip-build-tpa4wccr/markupsafe/setup.py", line 44, in run_setup | |
ext_modules=ext_modules if with_binary else [], | |
File "/usr/lib/python3.7/site-packages/setuptools/__init__.py", line 129, in setup | |
return distutils.core.setup(**attrs) | |
File "/usr/lib64/python3.7/distutils/core.py", line 121, in setup | |
dist.parse_config_files() | |
File "/usr/lib/python3.7/site-packages/setuptools/dist.py", line 442, in parse_config_files | |
ignore_option_errors=ignore_option_errors) | |
File "/usr/lib/python3.7/site-packages/setuptools/config.py", line 106, in parse_configuration | |
meta.parse() | |
File "/usr/lib/python3.7/site-packages/setuptools/config.py", line 382, in parse | |
section_parser_method(section_options) | |
File "/usr/lib/python3.7/site-packages/setuptools/config.py", line 355, in parse_section | |
self[name] = value | |
File "/usr/lib/python3.7/site-packages/setuptools/config.py", line 173, in __setitem__ | |
value = parser(value) | |
File "/usr/lib/python3.7/site-packages/setuptools/config.py", line 430, in _parse_version | |
version = self._parse_attr(value) | |
File "/usr/lib/python3.7/site-packages/setuptools/config.py", line 305, in _parse_attr | |
module = import_module(module_name) | |
File "/usr/lib64/python3.7/importlib/__init__.py", line 127, in import_module | |
return _bootstrap._gcd_import(name[level:], package, level) | |
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import | |
File "<frozen importlib._bootstrap>", line 983, in _find_and_load | |
File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked | |
ModuleNotFoundError: No module named 'markupsafe' | |
---------------------------------------- | |
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-tpa4wccr/markupsafe/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment