Ekumen-OS/beluga

Matplotlib is broken in Humble image, probably others

glpuga opened this issue · 1 comments

glpuga commented

Bug description

When trying ot run the benchmarking scripts to plot data, this error happens:

Screenshot from 2023-10-19 14-16-04

This is a reported issue in Matplotlib: matplotlib/matplotlib#26827

It's important to notice that this issue should affect matplotlib 3.8.0. While the official Ubuntu python3-package that is the declared dependency of beluga_benchmark installs 3.5.1, a second installation of matplotlib is added to the system through pip when installing evo==1.21.0 in the docker file, which brings matplotlib==3.8.0.

As of now, the only workaround this to manually do:

sudo pip3 install matplotlib==3.7.3

Platform (please complete the following information):

  • OS: Development docker for Humble
  • Beluga version: 3144527

How to reproduce

List steps to reproduce the issue:

  1. Start the Humble docker container
  2. Start a python3 terminal
  3. Type import matplotlib.pyplot as plt

Expected behavior

No error output.

Actual behavior

The error output shown above is printed.

hidmic commented

a second installation of matplotlib is added to the system through pip when installing evo==1.21.0 in the docker file, which brings matplotlib==3.8.0.

For the time being, let's just peg matplotlib to ~3.7.0 in that same Dockerfile and move on.