mljar / mljar-supervised

Python package for AutoML on Tabular Data with Feature Engineering, Hyper-Parameters Tuning, Explanations and Automatic Documentation
https://mljar.com
MIT License
2.99k stars 400 forks source link

Provided docker example crashes on "Basic usage" script due to missing fonts #606

Open elmccd opened 1 year ago

elmccd commented 1 year ago

Running Dockerfile and Python script provided on https://supervised.mljar.com/ crashes due to missing fonts (?):

screenshot_101

I managed to get around it by changing base python image to:

FROM python:3.7

Probably could be fixed better.

yairVanti commented 1 year ago

this issue arise because of lacking in fonts in the installed machine. you can install it on the docker with :

RUN apt-get update && \ apt-get install -y wget \ fontconfig && \ wget http://ftp.br.debian.org/debian/pool/contrib/m/msttcorefonts/ttf-mscorefonts-installer_3.6_all.deb && \ apt --fix-broken install -y ./ttf-mscorefonts-installer_3.6_all.deb && \ rm ttf-mscorefonts-installer_3.6_all.deb && \ fc-cache -f -v

worked for me with: FROM python:3.9.16-slim-bullseye