Building an app using this buildpack on Heroku-20 resulted in this output (the build itself didn't fail; for which I'll file a separate issue):
-----> Installing AWS CLI
Running cmd: /usr/bin/python -m venv /app/.awscli
Traceback (most recent call last):
File "/tmp/build_f2bbe920_/.awscli/awscli-bundle/install", line 223, in <module>
main()
File "/tmp/build_f2bbe920_/.awscli/awscli-bundle/install", line 199, in main
create_install_structure(working_dir, opts.install_dir)
File "/tmp/build_f2bbe920_/.awscli/awscli-bundle/install", line 77, in create_install_structure
create_virtualenv(location=install_dir, working_dir=working_dir)
File "/tmp/build_f2bbe920_/.awscli/awscli-bundle/install", line 84, in _create_virtualenv_internal
run('%s -m venv %s' % (sys.executable, location))
File "/tmp/build_f2bbe920_/.awscli/awscli-bundle/install", line 56, in run
raise BadRCError("Bad rc (%s) for cmd '%s': %s" % (
__main__.BadRCError: Bad rc (1) for cmd '/usr/bin/python -m venv /app/.awscli': The virtual environment was not created successfully because ensurepip is not
available. On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.
apt-get install python3-venv
You may need to use sudo with that command. After installing the python3-venv
package, recreate your virtual environment.
Failing command: ['/app/.awscli/bin/python', '-Im', 'ensurepip', '--upgrade', '--default-pip']