Error module 'luaotfload-main' not found

3,443 views
Skip to first unread message

Pierre François

unread,
Jun 29, 2018, 5:16:03 AM6/29/18
to gregori...@googlegroups.com

Hello

Something must have changed in Gregorio. I run version 5.0.1 on Ubuntu.

When I run the command

lualatex --shell-escape test.tex

supposing test.gabc is the score and test.tex contains the same as in the tutorial, i.e.:

\documentclass[12pt, a5paper]{article}

\usepackage{fullpage}

\usepackage{fontspec}
\usepackage{libertine}

\usepackage[autocompile]{gregoriotex}

\begin{document}

\gresetheadercapture{date}{grecommentary}{}
\gregorioscore{test}

\end{document}
I get next error message:
This is LuaTeX, Version 1.0.4 (TeX Live 2017/Debian) 
 system commands enabled.
(./test.tex
LaTeX2e <2017-04-15>
[\directlua]:1: module 'luaotfload-main' not found:
	no field package.preload['luaotfload-main']
	[kpse lua searcher] file not found: 'luaotfload-main'
	[kpse C searcher] file not found: 'luaotfload-main'
Error in luaotfload: reverting to OT1
Babel <3.18> and hyphenation patterns for 1 language(s) loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size12.clo
(/usr/share/texmf/tex/latex/lm/ot1lmr.fd)))
(/usr/share/texlive/texmf-dist/tex/latex/preprint/fullpage.sty)
(/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3-code.tex)
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3pdfmode.def)))
(/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec-luatex.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty
(/usr/share/texlive/texmf-dist/tex/latex/base/tuenc.def)
! Font \TU/lmr/m/n/12=[lmroman12-regular]:+tlig; at 12pt not loadable: metric d
ata not found or bad.
<to be read again> 
relax 
l.105 \fontencoding\encodingdefault\selectfont
                                            
? 

I don't understand what's happening. I would be happy to compile again my gabc files as I did before, or knowing what I have to change for getting it working again.

Thanks in advance.

Pierre

Pierre François

unread,
Jun 29, 2018, 5:28:34 AM6/29/18
to gregori...@googlegroups.com

Sorry, I see a first error. I first have to run:

gregorio test.gabc

for getting the file test.gtex.

Then I run

lualatex --shell-escape test.gtex
but in that case, I also get a similar error message:
This is LuaTeX, Version 1.0.4 (TeX Live 2017/Debian) 
 system commands enabled.
(./test.gtex
LaTeX2e <2017-04-15>
[\directlua]:1: module 'luaotfload-main' not found:
	no field package.preload['luaotfload-main']
	[kpse lua searcher] file not found: 'luaotfload-main'
	[kpse C searcher] file not found: 'luaotfload-main'
Error in luaotfload: reverting to OT1
Babel <3.18> and hyphenation patterns for 1 language(s) loaded.
! Undefined control sequence.
l.2 \GregorioTeXAPIVersion
                        {5.0.1}%
? x
 239 words of node memory still in use:
   1 dir, 34 glue_spec nodes
   avail lists: 2:12,3:1,4:1

warning  (pdf backend): no pages of output.
Transcript written on test.log.
Thanks for helping me.

Fr. Pierre
--
Gregorio homepage: http://gregorio-project.github.io
Archives for the old mailing list: http://www.mail-archive.com/gregori...@gna.org/
To report a bug, please post to: https://github.com/gregorio-project/gregorio/issues
---
You received this message because you are subscribed to the Google Groups "Gregorio Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gregorio-user...@googlegroups.com.
To post to this group, send email to gregori...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Br. Samuel Springuel

unread,
Jun 29, 2018, 10:33:28 AM6/29/18
to gregori...@googlegroups.com
On 6/29/18 5:28 AM, Pierre François wrote:
> Sorry, I see a first error. I first have to run:
>
> gregorio test.gabc
>
> for getting the file *test._g_tex*.
>

This is not the problem. Running gregorio to generate the gtex file is
handled automatically during the run of lualatex under most circumstances.

> [\directlua]:1: module 'luaotfload-main' not found:
> no field package.preload['luaotfload-main']
> [kpse lua searcher] file not found: 'luaotfload-main'
> [kpse C searcher] file not found: 'luaotfload-main'

Further, the problem that's occurring is related to luaotfload.
GregorioTeX requires that package be installed, but we don't maintain
it. If there have been changes, then they are in luaotfload, not
GregorioTeX. Now, if there have been changes in luaotfload, that may
require us to make changes to GregorioTeX, but we need to verify that
first. Please make sure luaotfload is properly installed and working.

--
✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝
Br. Samuel, OSB
St. Anselm’s Abbey
Washington, DC
(R. Padraic Springuel)

PAX ☧ ΧΡΙΣΤΟΣ

Pierre François

unread,
Jun 29, 2018, 12:31:02 PM6/29/18
to gregori...@googlegroups.com
Dear Br. Samuel.

Thank you for your answer.

For installing luaotfload, I supposed I had to run:

sudo apt install texlive-luatex

and this allows me indeed to go one step further. But after issuing

lualatex --shell-escape ps-100-8g.tex

Now I get as error:

This is LuaTeX, Version 1.0.4 (TeX Live 2017/Debian)
system commands enabled.
(./ps-100-8g.tex
LaTeX2e <2017-04-15>
(using write cache: /home/pf/.texlive2017/texmf-var/luatex-cache/generic)(using
read cache: /var/lib/texmf/luatex-cache/generic /home/pf/.texlive2017/texmf-va
r/luatex-cache/generic)
luaotfload | main : initialization completed in 0.358 seconds
Babel <3.18> and hyphenation patterns for 1 language(s) loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo
luaotfload | db : Font names database not found, generating new one.
luaotfload | db : This can take several minutes; please be patient.(save: /home/pf/.texliv
e2017/texmf-var/luatex-cache/generic/fonts/otl/lmroman10-regular.lua)(save: /ho
me/pf/.texlive2017/texmf-var/luatex-cache/generic/fonts/otl/lmroman10-regular.l
uc)))

! LaTeX Error: File `gregoriotex.sty' not found.

I think you will probably understand immediately what's wrong now. I
would be very thankful if you could enlighten me.

Thanks in advance.

Fr. Pierre

Br. Samuel Springuel

unread,
Jun 29, 2018, 11:29:27 PM6/29/18
to gregori...@googlegroups.com
On 6/29/18 12:30 PM, Pierre François wrote:
> ! LaTeX Error: File `gregoriotex.sty' not found.

That's an indication that GregorioTeX is not installed. The Debian
package manager breaks up TeX Live into several packages, a bunch of
which need to be installed to make GregorioTeX work. GregorioTeX itself
is in texlive-music. You've already got texlive-luatex, which is the
main dependency I know about. There may be others (I don't know for
sure as I don't normally install via this route).

You could also install texlive-full. That will install everything TeX
Live related and thus covers all the bases without having to figure out
which ones are absolutely needed. Of course, this does involve
installing several gigs of packages, so if you're pressed for disk
space, then it may be worth the effort to figure out what the minimal
working install is.

Pierre François

unread,
Jul 1, 2018, 12:01:46 PM7/1/18
to gregori...@googlegroups.com
Thank you Br. Samuel

I forgot there were several packages when I installed Gregorio on my new
laptop. It is also the first time I don't need to compile the sources to
get it installed.

Everything works fine now. Thank you very much for your several answers.

Fr. Pierre

By the way, the links to several tutorials no longer work.

Br. Samuel Springuel

unread,
Jul 1, 2018, 1:14:11 PM7/1/18
to gregori...@googlegroups.com
On 7/1/18 12:01 PM, Pierre François wrote:
> By the way, the links to several tutorials no longer work.

Where are the links you were having problems with? I just checked the
ones I'm aware of and they all worked fine.

Pierre François

unread,
Jul 2, 2018, 4:41:07 AM7/2/18
to gregori...@googlegroups.com
You are right: all the links in http://gregorio-project.github.io seem
to work correctly.

In the history of my browser, I found next not working page:
http://www.tug.org.in/tutorials.html, but I couldn't find the url of
this hyperlink in any of the pages of http://gregorio-project.github.io
I browsed just before. So it remains a mystery to me why I got trapped
into this link last Friday. Perhaps an outdated copy in the cache?

Another hypothesis is that Google could have sent me to that site,
because it seems to be indexed, however not accessible for the moment.

Thank you anyway for controlling.

Fr. Pierre
Reply all
Reply to author
Forward
0 new messages