Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 921294 - dev-python/matplotlib-3.8.2-r1 fails tests: module 'luaotfload-main' not found
Summary: dev-python/matplotlib-3.8.2-r1 fails tests: module 'luaotfload-main' not found
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 919014
  Show dependency tree
 
Reported: 2024-01-03 15:56 UTC by matoro
Modified: 2024-02-20 05:32 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log and emerge --info (build.log.gz,257.71 KB, application/gzip)
2024-01-03 15:59 UTC, matoro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matoro archtester 2024-01-03 15:56:56 UTC
I think this means either needs dev-texlive/texlive-luatex test dep, or REQUIRED_USE="test? ( latex )"

FAILED tests/test_backend_pgf.py::test_minus_signs_with_tex[lualatex-pdf] - matplotlib.backends.backend_pgf.LatexError: LaTeX errored (probably missing font or error in preamble) while processing the following input:
\documentclass{article}
% !TeX program = lualatex
\usepackage{graphicx}
\def\mathdefault#1{#1}
\everymath=\expandafter{\the\everymath\displaystyle}

\usepackage{fontspec}
\setmainfont{DejaVuSerif.ttf}[Path=\detokenize{/var/tmp/portage/dev-python/matplotlib-3.8.2-r1/work/matplotlib-3.8.2-python3_11/test-lib/matplotlib/mpl-data/fonts/ttf/}]
\setsansfont{DejaVuSans.ttf}[Path=\detokenize{/var/tmp/portage/dev-python/matplotlib-3.8.2-r1/work/matplotlib-3.8.2-python3_11/test-lib/matplotlib/mpl-data/fonts/ttf/}]
\setmonofont{DejaVuSansMono.ttf}[Path=\detokenize{/var/tmp/portage/dev-python/matplotlib-3.8.2-r1/work/matplotlib-3.8.2-python3_11/test-lib/matplotlib/mpl-data/fonts/ttf/}]
\makeatletter\@ifpackageloaded{underscore}{}{\usepackage[strings]{underscore}}\makeatother
\begin{document}
\typeout{pgf_backend_query_start}
This is LuaHBTeX, Version 1.13.0 (TeX Live 2021 Gentoo Linux)
 restricted system commands enabled.
**LaTeX2e <2020-10-01> patch level 4

[\directlua]:1: module 'luaotfload-main' not found:
        no field package.preload['luaotfload-main']
        [kpse lua searcher] file not found: 'luaotfload-main'
Error in luaotfload: reverting to OT1L3 programming layer <2021-02-18>
*
*(/usr/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2020/04/10 v1.4m Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/size10.clo
(/usr/share/texmf-dist/tex/latex/lm/ot1lmr.fd)))
*(/usr/share/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/share/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/share/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/share/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
(/usr/share/texmf-dist/tex/latex/graphics-def/luatex.def)))
*
*(Please type a command or say `\end')
*
*(/usr/share/texmf-dist/tex/latex/fontspec/fontspec.sty
(/usr/share/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
(/usr/share/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/share/texmf-dist/tex/latex/l3backend/l3backend-luatex.def))
(/usr/share/texmf-dist/tex/latex/l3packages/xparse/xparse-2020-10-01.sty
(/usr/share/texmf-dist/tex/latex/l3packages/xparse/xparse-generic.tex)))
(/usr/share/texmf-dist/tex/latex/fontspec/fontspec-luatex.sty
(/usr/share/texmf-dist/tex/latex/base/fontenc.sty
! Font \TU/lmr/m/n/10=[lmroman10-regular]:+tlig; at 10pt not loadable: metric d
ata not found or bad.
<to be read again>
relax
l.112 ...lt\familydefault\seriesdefault\shapedefault

 351 words of node memory still in use:
   2 hlist, 1 rule, 1 dir, 48 glue_spec, 5 if_stack, 1 write nodes
   avail lists: 2:8,3:2,4:1,5:1,7:2,9:3
!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on texput.log.



Reproducible: Always
Comment 1 matoro archtester 2024-01-03 15:59:09 UTC
Created attachment 881375 [details]
build.log and emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-02-20 05:32:52 UTC
It actually tries to handle no LaTeX gracefully, it's just that you seem to have some parts installed so it thinks you have enough.