Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-77933

Install python3.9 from source for Antithesis images

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL

      I tried building the antithesis workload image locally, but kept seeing this error when trying to install python3.9.

       => ERROR [11/11] RUN DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true apt-get install -qy python3.9 pyth  1.4s
      ------
       > [11/11] RUN DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true apt-get install -qy python3.9 python3.9-dev python3.9-venv git-all:
      #0 0.354 Reading package lists...
      #0 1.212 Building dependency tree...
      #0 1.324 Reading state information...
      #0 1.415 E: Unable to locate package python3.9
      #0 1.415 E: Couldn't find any package by glob 'python3.9'
      #0 1.415 E: Couldn't find any package by regex 'python3.9'
      #0 1.415 E: Unable to locate package python3.9-dev
      #0 1.415 E: Couldn't find any package by glob 'python3.9-dev'
      #0 1.415 E: Couldn't find any package by regex 'python3.9-dev'
      #0 1.415 E: Unable to locate package python3.9-venv
      #0 1.415 E: Couldn't find any package by glob 'python3.9-venv'
      #0 1.415 E: Couldn't find any package by regex 'python3.9-venv'
      

      We use the deadsnakes ppa, which says that "The packages may also work on other versions of Ubuntu or Debian, but that is not tested or supported." Only 20.04 and 22.04 are supported.

      Seems like an alternative is to install from source. We would need to replace this section of the Dockerfile.

      We could upgrade to ubuntu 22.04 but that is going to require more changes & we would need to ensure Antithesis can run with 22.04. I think this is good for now – just to get things working again.

            Assignee:
            joy.wang@mongodb.com Joy Wang (Inactive)
            Reporter:
            tausif.rahman@mongodb.com Tausif Rahman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: