setup-localstack icon indicating copy to clipboard operation
setup-localstack copied to clipboard

bug: Python is being upgraded to 3.12 which is blocking the install process

Open oc-liz-conlan opened this issue 1 year ago • 11 comments

We're seeing this (started around 3 days ago) trying to run [email protected] in our GitHub Actions flow:

Prepare all required actions
Run ./../../_actions/LocalStack/setup-localstack/v0.2.3/tools
Run pip install --upgrade pip
  pip install --upgrade pip
  which localstack > /dev/null || pip install localstack
  if [ "$INSTALL_AWSLOCAL" = true ]; then
    which awslocal > /dev/null || pip install awscli-local[ver1]
  fi
  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
  env:
    GH_ACTION_ROOT: ./../../_actions/LocalStack/setup-localstack/v0.2.3
    SERVICES: s3
    INSTALL_AWSLOCAL: true
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.
    
    If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed.
    
    If you wish to install a non-Debian packaged Python application,
    it may be easiest to use pipx install xyz, which will manage a
    virtual environment for you. Make sure you have pipx installed.
    
    See /usr/share/doc/python3.12/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
Error: Process completed with exit code 1.

It was previously packaging python3.10 and working fine but the changes to pip now that it's packaging 3.12 are preventing the script from completing 😬

oc-liz-conlan avatar Sep 30 '24 12:09 oc-liz-conlan