Skip to content

venv error message is incorrect #13406

@kmulka-bloomberg

Description

@kmulka-bloomberg

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

Details
# Put your logs below this line


Additional information

No response

Before submitting, please confirm:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfunctionsIssues tied to the functions categoryops-errorsOperational theme: centralized error messagingp3

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions