Re: Deploying with Dockerfile: error: Unable to locate package python3.8

927 views
Skip to first unread message
Message has been deleted

George (Cloud Platform Support)

unread,
Jan 24, 2022, 12:16:00 PM1/24/22
to Google App Engine
How does your deploy command look like? It should look similar to: gcloud app deploy --image-url=LOCATION-docker.pkg.dev/PROJECT-ID/REPOSITORY/IMAGE:TAG

The error message invites us to look at logs. If we ask for logs here, we risk getting your private information visible in a publicly visible thread like this one. If you think there is a fault on App Engine Flexible side, you may consider opening an issut in the Public Issue Tracker. This discussion group is oriented more towards general opinions, trends, and issues of general nature touching the App Engine. For technical details such as these, you may consider checking stackoverflow or similar. 

On Sunday, 23 January 2022 at 11:50:10 UTC-5 daniel....@skytruth.org wrote:

I am using this Dockerfile to deploy to App Engine Flexible environment:

FROM gcr.io/google-appengine/python
RUN apt-get -y update && apt-get -y upgrade\
    && apt-get install -y software-properties-common \
    && add-apt-repository -y ppa:ubuntugis/ppa \
    && add-apt-repository -y ppa:deadsnakes/ppa \
    && apt-get -y update && apt-get -y upgrade\
    && apt-get -y install python3.8 python3.8-distutils python3.8-venv \
       gdal-bin libgdal-dev python3-gdal  \
    && apt-get autoremove -y \
    && apt-get autoclean -y \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

RUN virtualenv /env -p python3.8
ENV VIRTUAL_ENV /env
ENV PATH /env/bin:$PATH

etc.

I've been using this configuration for at least a year and deploy to GCP regularly. I haven't installed or updated any libraries and only changed some Python code. As of this Friday (1/21/2022) morning, when I try to deploy I'm getting these errors:

Calculating upgrade...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package python3.8
E: Couldn't find any package by glob 'python3.8'
E: Couldn't find any package by regex 'python3.8'
E: Unable to locate package python3.8-distutils
E: Couldn't find any package by glob 'python3.8-distutils'
E: Couldn't find any package by regex 'python3.8-distutils'
E: Unable to locate package python3.8-venv
E: Couldn't find any package by glob 'python3.8-venv'
E: Couldn't find any package by regex 'python3.8-venv'
The command '/bin/sh -c apt-get -y update && apt-get -y upgrade    && apt-get install -y software-properties-common     && add-apt-repository -y ppa:ubuntugis/ppa     && add-apt-repository -y ppa:deadsnakes/ppa     && apt-get -y update && apt-get -y upgrade    && apt-get -y install python3.8 python3.8-distutils python3.8-venv        gdal-bin libgdal-dev python3-gdal      && apt-get autoremove -y     && apt-get autoclean -y     && apt-get clean     && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100
ERROR
ERROR: build step 0 "gcr.io/cloud-builders/docker" failed: step exited with non-zero status: 100

-------------------------------------------------------------------------------------------------------------------------------------------
ERROR
: (gcloud.app.deploy) Cloud build failed. Check logs at https://console.cloud.google.com/cloud-build/builds/d994e9d6-3c73-4cb8-b5af-6a186c229d3f?project=33114313460 Failure status: UNKNOWN: Error Response: [2] Build failed; check build logs for details

Thanks in advance for any help you can provide.

Reply all
Reply to author
Forward
0 new messages