venv error message is incorrect
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
- Have Python installed, but without virtualenv on your system
- Set up a Python API with the Amplify CLI https://docs.amplify.aws/guides/api-rest/python-api/q/platform/js/
- Notice during
amplify pushstep, 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.
Hey @kmulka-bloomberg :wave: thanks for raising this! I'm going to mark this as a bug to address the improper error message