[ https://issues.apache.org/jira/browse/FLINK-24134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dian Fu updated FLINK-24134: ---------------------------- Fix Version/s: 1.13.3 > Docker "Enabling Python" documentation results in failed Docker builds > ---------------------------------------------------------------------- > > Key: FLINK-24134 > URL: https://issues.apache.org/jira/browse/FLINK-24134 > Project: Flink > Issue Type: Bug > Components: Documentation > Affects Versions: 1.13.2 > Environment: * macOS Big Sur 11.5.2 > * Docker version 20.10.8, build 3967b7d > Reporter: Adam Pearce > Assignee: Dian Fu > Priority: Minor > Labels: pull-request-available > Fix For: 1.14.0, 1.13.3 > > > Following the instructions defined here: > [https://ci.apache.org/projects/flink/flink-docs-release-1.13/docs/deployment/resource-providers/standalone/docker/#enabling-python] > > When running `docker build .` with that example, I get the follow error: > {code:java} > #5 0.249 Get:1 http://deb.debian.org/debian bullseye InRelease [113 kB] > #5 0.251 Get:2 http://security.debian.org/debian-security bullseye-security > InRelease [44.1 kB] > #5 0.271 Get:3 http://deb.debian.org/debian bullseye-updates InRelease [36.8 > kB] > #5 0.361 Get:4 http://security.debian.org/debian-security > bullseye-security/main amd64 Packages [29.4 kB] > #5 0.455 Get:5 http://deb.debian.org/debian bullseye/main amd64 Packages > [8178 kB] > #5 1.466 Fetched 8401 kB in 1s (6707 kB/s) > #5 1.466 Reading package lists... > #5 1.893 Reading package lists... > #5 2.300 Building dependency tree... > #5 2.416 Reading state information... > #5 2.493 Package python3.7 is not available, but is referred to by another > package. > #5 2.493 This may mean that the package is missing, has been obsoleted, or > #5 2.493 is only available from another source > #5 2.493 > #5 2.545 E: Package 'python3.7' has no installation candidate > #5 2.545 E: Unable to locate package python3.7-dev > #5 2.545 E: Couldn't find any package by glob 'python3.7-dev' > #5 2.545 E: Couldn't find any package by regex 'python3.7-dev'{code} > It could be that there is a different way to install python3.7 for Debian? > Dockerfile reference: > {code:java} > FROM flink:latest > # install python3 and pip3 > RUN apt-get update -y && \ > apt-get install -y python3.7 python3-pip python3.7-dev && rm -rf > /var/lib/apt/lists/* > RUN ln -s /usr/bin/python3 /usr/bin/python > # install Python Flink > RUN pip3 install apache-flink > {code} > > > More context: > I am attempting to establish a basic example pipeline with a Python WordCount > example, using the FlinkRunner deployed to Docker via Docker Compose. -- This message was sent by Atlassian Jira (v8.3.4#803005)