Error import matplotlib.pyplot as plt in RStudio Server PRO / package R reticulate

Hi,

We are currently encountering the following error when executing the import matplotlib.pyplot as plt command with package R reticulate on the RStudio Server PRO:

We have observed that if we run it outside on an R 3.6 engine it works

Although this error appears, we have the cairo libraries installed in Redhat.

RStudio version:
1.2.5033-1 Professional (Orange Blossom)
Redhat version:
Red Hat Enterprise Linux Server release 7.8 (Maipo)

Has anyone faced this problem with R package reticulate and py matplotlib?

Why do I reproduce this error?