Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Got issue when using 1.116.0_1 for deployment #7051

Closed
Chris-wa-He opened this issue May 11, 2024 · 2 comments
Closed

Bug: Got issue when using 1.116.0_1 for deployment #7051

Chris-wa-He opened this issue May 11, 2024 · 2 comments

Comments

@Chris-wa-He
Copy link

Description:

sam deploy is with issue in version 1.116.0_1 which is installed by HomeBrew

Steps to reproduce:

  1. Install aws-sam-cli by HomeBrew
  2. run sam deploy

Observed result:

2024-05-11 15:44:27 Command 'deploy' is not configured correctly. Unable to import 'samcli.commands.deploy'
Traceback (most recent call last):
File "/usr/local/Cellar/aws-sam-cli/1.116.0_1/libexec/lib/python3.12/site-packages/samcli/cli/command.py", line 264, in get_command
mod = importlib.import_module(pkg_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/python@3.12/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 995, in exec_module
File "", line 488, in _call_with_frames_removed
File "/usr/local/Cellar/aws-sam-cli/1.116.0_1/libexec/lib/python3.12/site-packages/samcli/commands/deploy/init.py", line 6, in
from .command import cli # noqa
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/aws-sam-cli/1.116.0_1/libexec/lib/python3.12/site-packages/samcli/commands/deploy/command.py", line 10, in
from samcli.cli.cli_config_file import ConfigProvider, configuration_option, save_params_option
File "/usr/local/Cellar/aws-sam-cli/1.116.0_1/libexec/lib/python3.12/site-packages/samcli/cli/cli_config_file.py", line 20, in
from samcli.lib.config.samconfig import DEFAULT_CONFIG_FILE_NAME, DEFAULT_ENV, SamConfig
File "/usr/local/Cellar/aws-sam-cli/1.116.0_1/libexec/lib/python3.12/site-packages/samcli/lib/config/samconfig.py", line 13, in
from samcli.lib.telemetry.event import EventTracker
File "/usr/local/Cellar/aws-sam-cli/1.116.0_1/libexec/lib/python3.12/site-packages/samcli/lib/telemetry/event.py", line 16, in
from samcli.lib.telemetry.telemetry import Telemetry
File "/usr/local/Cellar/aws-sam-cli/1.116.0_1/libexec/lib/python3.12/site-packages/samcli/lib/telemetry/telemetry.py", line 7, in
import requests
File "/usr/local/Cellar/aws-sam-cli/1.116.0_1/libexec/lib/python3.12/site-packages/requests/init.py", line 147, in
from . import packages, utils
File "/usr/local/Cellar/aws-sam-cli/1.116.0_1/libexec/lib/python3.12/site-packages/requests/utils.py", line 24, in
from . import certs
File "/usr/local/Cellar/aws-sam-cli/1.116.0_1/libexec/lib/python3.12/site-packages/requests/certs.py", line 14, in
from certifi import where
ModuleNotFoundError: No module named 'certifi'
Usage: sam [OPTIONS] COMMAND [ARGS]...
Try 'sam -h' for help.

Error: No such command 'deploy'.

Expected result:

sam deploy is running normally.

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

  1. OS: Mac
  2. sam --version: 1.116.0_1
  3. AWS region:
2024-05-11 15:54:05 Command info not available
Usage: sam [OPTIONS] COMMAND [ARGS]...
Try 'sam -h' for help.

Error: No such command 'info'.

Add --debug flag to command you are running

@Chris-wa-He Chris-wa-He added the stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. label May 11, 2024
@hawflau
Copy link
Contributor

hawflau commented May 13, 2024

Hi @Chris-wa-He thanks for raising the issue.

I tried to install SAM CLI via homebrew and did not see any issue running sam deploy. It looks like you don't have certifi installed. I'd suggest you to try to reinstall (either via homebrew or use our installer).

Note that the aws-sam-cli formula on homebrew is not maintained by us. If you still see any issue from homebrew installation, please reach out to homebrew-core. There is no action we can do from our side.

@hawflau hawflau closed this as completed May 13, 2024
@hawflau hawflau added type/question area/installation and removed stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. labels May 13, 2024
Copy link
Contributor

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants