Charles Plessy
01/31/2025, 2:01 AM/opt/conda/pkgs/pillow-11.1.0-py313h8db990d_0/info/test/Tests/fonts/FreeMono.ttf in the Docker and Singularity images, but apparently it is elsewhere when using the conda runner. I have never used conda directly. How can I find the path to that file ? (context: https://github.com/nf-core/modules/pull/7404).Leon Hafner
01/31/2025, 9:27 AM<conda-base-dir>/pkgs/pillow-11.1.0-py313h8db990d_0/info/test/Tests/fonts/FreeMono.ttf
You could try to get the base directory using:
CONDA_BASE=$(conda info --base)
Then, reference the file with:
last-dotplot -f ${CONDA_BASE}/pkgs/pillow-11.1.0-py313h8db990d_0/info/test/Tests/fonts/FreeMono.ttf
However, I'm not sure if using the absolute path is the best approach to integrate the font, whether with conda or containers. Maybe there is a nicer way, but I'm not aware of any.Leon Hafner
01/31/2025, 9:29 AMpillow in the environment.yml. If conda for whatever reason decides to solve this environment with a different version of pillow, the path will change and it will fail.Charles Plessy
02/03/2025, 1:29 AM/opt/conda/fonts/open-fonts/DejaVuSansMono-Regular.ttf. On conda I have no idea where to find them… (I tried /home/ubuntu/miniconda3/conda/fonts/open-fonts/DejaVuSansMono-Regular.ttf but it failed). Also the CONDA_BASE trick above did not work in my hands.Famke Bäuerle
02/03/2025, 1:56 AMCharles Plessy
02/03/2025, 4:20 AMfind / command in the module script to first report the font location, and then replacing the command by its result.Famke Bäuerle
02/03/2025, 4:21 AM