Font T1/cmr/m/n/10=ecrm1000 at 10.0pt not loadable: Metric (TFM) file not found on Debian 9.4

Generating a pdf file from a markdown file can be done with pandoc, provided that all its dependencies are installed :

pandoc -s -o output.pdf input.md

! Font T1/cmr/m/n/10=ecrm1000 at 10.0pt not loadable: Metric (TFM) file not found. relax l.105 \fontencoding\encodingdefault\selectfont
pandoc: Error producing PDF

pandoc generates a log file missfont.log :

cat missfont.log
mktextfm ecrm1000
mktextfm ecrm1000
mktextfm ecrm1000
mktextfm ecrm1000
mktextfm ecrm1000
mktextfm ecrm1000

What Debian package provides this program ?

dpkg -S $(which mktextfm)
texlive-binaries: /usr/bin/mktextfm

In what package is located the ecrm1000 file ?

apt-file update
apt-file search ecrm1000

texlive-fonts-recommended: /usr/share/texlive/texmf-dist/fonts/source/jknappen/ec/ecrm1000.mf
texlive-fonts-recommended: /usr/share/texlive/texmf-dist/fonts/tfm/jknappen/ec/ecrm1000.tfm

Install the missing Debian package texlive-fonts-recommended :

apt install texlive-fonts-recommended

Advertisements

Python dictionaries

A few interesting articles on Python dictionaries and nested dictionaries :

https://docs.python.org/3/tutorial/datastructures.html#dictionaries

https://www.datacamp.com/community/tutorials/python-dictionary-tutorial

https://www.datacamp.com/community/tutorials/python-dictionary-comprehension#nested

Python namespace concept

Python 3 official documentation provides a detailed definition about the namespace concept.

https://docs.python.org/3/tutorial/classes.html#python-scopes-and-namespaces

Below, this concept is explained differently and in an easier manner :

https://www.programiz.com/python-programming/namespace

https://code.tutsplus.com/tutorials/what-are-python-namespaces-and-why-are-they-needed–cms-28598

https://www.python-course.eu/namespaces.php

A guide to Python Namespaces

http://sebastianraschka.com/Articles/2014_python_scope_and_namespaces.html

Method Resolution Order – Object Oriented Programming

https://blog.confirm.ch/python-namespaces/

Ubuntu 17.10 as VirtualBox guest : missing vboxsf module

Running Ubuntu 17.10 as a VirtualBox guest works fine except for accessing files located on the host.
Only vboxguest and vboxvideo modules are available and loaded.
vboxsf module is missing.
Load the Guest Additions ISO image and let run the installer.

On a fresh new install, you may have this error :

Make sure to install the build-essential package :

apt install build-essential

One completed, reboot your system to make sure the right modules are loaded : vboxguest, vboxvideo, vboxsf

Once logged in, access to a directory located on your host may be denied.
Be sure that your user account is part of the vboxsf local group.
Add yourself :

usermod -aG vboxsf your_login

Log out and log in again. This should be good now