aergus / dockerfiles

Creative Commons Zero v1.0 Universal
19 stars 38 forks source link

Package minted Error #6

Closed eltos closed 5 years ago

eltos commented 5 years ago

After your recent update on 28 Jan 2019 (d91a232253111648a716c1c54dc92bb88719e705 and 1aa8fbe785ed409326f945bfa009247858f2c4a8) I get the following following error when compiling a latex file that used the minted package for syntax highlighting:

Package minted Error: You must have `pygmentize' installed to use this package.

Even though python-pygments is in the Dockerfile.


Expected
Observed with the previous build before the change (which was cached on my local machine)
Image sha256 83cb44d6647e

$ which pygmentize
/usr/bin/pygmentize

Observed With the new build Image sha256 ec713c2b1249

$ which pygmentize
ERROR: Job failed: exit code 1
eltos commented 5 years ago

Using the plain docker image debian:testing (sha256 d0ace8d27a73) I ran the following commands (note the python version):

$ apt-get update && apt-get install -y python-pygments
$ which pygmentize; echo $?
1
$ apt-get update && apt-get install -y python3-pygments
$ which pygmentize; echo $?
/usr/bin/pygmentize
0
$ apt-get update && apt-get install -y python-pip
$ pip install Pygments
$ which pygmentize; echo $?
/usr/local/bin/pygmentize
0
eltos commented 5 years ago

Just noticed that this issue is already on gitlab

aergus commented 5 years ago

This should be fixed by #5.