facebookexperimental / Robyn

Robyn is an experimental, AI/ML-powered and open sourced Marketing Mix Modeling (MMM) package from Meta Marketing Science. Our mission is to democratise modeling knowledge, inspire the industry through innovation, reduce human bias in the modeling process & build a strong open source marketing science community.
https://facebookexperimental.github.io/Robyn/
MIT License
1.07k stars 322 forks source link

Error plotting result for Robyn in Docker #950

Open nikomataaa opened 2 months ago

nikomataaa commented 2 months ago

Project Robyn

Describe issue

I've been building the Robyn MMM in the Docker, everything went well so far except, the plotting every plotting output was returning this message

Font 'Arial Narrow' is not installed, has other name, or can't be found

above message resulting no plotting folder I've never got this problem whenever I run on Rstudio

Thanks!

Provide reproducible example

I've got my Docker as below:

FROM rocker/verse

COPY . /app
WORKDIR /app

USER root

RUN apt-get update && \
    apt-get -y upgrade && \
    apt-get -y install --no-install-recommends \
    make git curl g++ gcc&& \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*

# INSTALL PYTHON 3
RUN apt-get update && \ 
    apt-get -y install python3 python3-pip python3-venv

# Adding gsutil to the image
# RUN curl -sSL https://sdk.cloud.google.com | bash && \
#     mv /root/google-cloud-sdk /usr/local

ENV PATH=${PATH}:/usr/local/google-cloud-sdk/bin

RUN python3 -m pip install -r python-requirements/requirements.txt --no-cache-dir

# install R packages
RUN Rscript /app/install_robyn.R
RUN Rscript /app/install_nevergrad.R

Environment & Robyn version

Make sure you're using the latest Robyn version before you post an issue.

gufengzhou commented 2 months ago

I'm no expert in this but it sounds like your doc env is missing the font. Does this help?

NumesSanguis commented 1 month ago

Probably related to this issue, because 'Arial Narrow' seems to be a Microsoft font: https://github.com/facebookexperimental/Robyn/issues/973