amplify-cli icon indicating copy to clipboard operation
amplify-cli copied to clipboard

venv error message is incorrect

Open kmulka-bloomberg opened this issue 2 years ago • 1 comments

How did you install the Amplify CLI?

npm

If applicable, what version of Node.js are you using?

8.19.2

Amplify CLI Version

12.8.2

What operating system are you using?

Mac

Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.

No

Describe the bug

The following error message is incorrect. You can't install virtualenv by using pip install venv. venv has been built into python since python 3.3, so maybe that should be used instead. https://docs.python.org/3/library/venv.html

If you want to use virtualenv instead, it can be installed with pip install virtualenv.

You must have virtualenv installed and available on your PATH as "venv". It can be installed by running "pip3 install venv".

Expected behavior

Expecting to get a useful and accurate error message or none at all.

Reproduction steps

  1. Have Python installed, but without virtualenv on your system
  2. Set up a Python API with the Amplify CLI https://docs.amplify.aws/guides/api-rest/python-api/q/platform/js/
  3. Notice during amplify push step, that the inaccurate error message is displayed.

Project Identifier

No response

Log output

# Put your logs below this line


Additional information

No response

Before submitting, please confirm:

  • [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
  • [X] I have removed any sensitive information from my code snippets and submission.

kmulka-bloomberg avatar Nov 14 '23 00:11 kmulka-bloomberg

Hey @kmulka-bloomberg :wave: thanks for raising this! I'm going to mark this as a bug to address the improper error message

josefaidt avatar Nov 15 '23 17:11 josefaidt