Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-24134

Docker "Enabling Python" documentation results in failed Docker builds




      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:

      #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'

      It could be that there is a different way to install python3.7 for Debian? 

      Dockerfile reference: 

      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



      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. 


          Issue Links



              • Assignee:
                dianfu Dian Fu
                adamhp Adam Pearce
              • Votes:
                0 Vote for this issue
                2 Start watching this issue


                • Created: