Module gregoriotex Error: Unable to find gregorio executable.

284 views
Skip to first unread message

Brandon Wild

unread,
Jun 6, 2018, 12:29:26 PM6/6/18
to Gregorio Users
Hello,

I am trying to get Gregorio working on a new system.

I have installed TexLive2018.

I am using TexWorks. I have followed the instructions carefully on the 'Configuring TexWorks for Gregorio' page.

LuaLaTex+se is selected in the dropdown. I have included the "--shell-escape" command, yet I still get the following error message:

Module gregoriotex Info: Processing gabc snippet... on input line 12
c:/texlive/2018/texmf-dist/tex/latex/base/ltluatex.lua:109: 
Module gregoriotex Error: Unable to find gregorio executable.
(gregoriotex)             shell-escape mode may not be activated. Try
(gregoriotex)             
(gregoriotex)             lualatex --shell-escape untitled-1.tex
(gregoriotex)             
(gregoriotex)             See the documentation of Gregorio or your TeX
(gregoriotex)             distribution to automatize it. on input line 12

This is the test code I am trying to compile:

\documentclass[12pt, letter]{article}


\usepackage{fullpage}


\usepackage{fontspec}

\usepackage{libertine}


\usepackage[autocompile]{gregoriotex}


\begin{document}


\gabcsnippet{(cb3)}


\end{document}



I have attached the log file.


Thank you,


Brandon Wild

test.log

Brandon Wild

unread,
Jun 6, 2018, 12:44:05 PM6/6/18
to Gregorio Users
Note that I get the same error when I try to compile from the command line with the following:

lualatex --shell-escape test.tex

Thank you,

Brandon Wild 

Br. Samuel Springuel

unread,
Jun 6, 2018, 5:20:50 PM6/6/18
to gregori...@googlegroups.com
The log confirms that `--shell-escape` is active, so the problem must be
something else. Without more information, however, I can't tell what.
Please run system-setup.bat and post the results.
--
✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝
Br. Samuel, OSB
St. Anselm’s Abbey
Washington, DC
(R. Padraic Springuel)

PAX ☧ ΧΡΙΣΤΟΣ

Brandon Wild

unread,
Jun 7, 2018, 8:54:19 AM6/7/18
to Gregorio Users
Here is the system-setup log file.

Thanks,

Brandon Wild
system-setup.log

Br. Samuel Springuel

unread,
Jun 7, 2018, 2:21:03 PM6/7/18
to gregori...@googlegroups.com
Okay, here's what I notice:

1. You have two copies of GregorioTeX installed: the one which comes as
part of TeXLive (in texmf-dist) and one which you installed manually (in
texmf-local). Both are at 5.1.1, so this is redundant.

2. The log from your document indicates that the texmf-dist version is
the one being loaded. This is out of order. The texmf-local version
should have priority based on the order in TEXINPUTS.lualatex. This
suggests that the ls-R file for texmf-local is out of date (the !! in
front of the texmf-local path indicates that TeX uses an ls-R index for
that folder rather than searching it outright).

3. The executable for the texmf-dist version is not showing up,
suggesting that it's not on PATH. Since the executable should be
matched to version, it maybe that the "can't find" message is caused by
this. However, since the texmf-local version of the executable does
show up, and it's an identical version, I wouldn't expect this to be a
problem.

So, what to do? Well, there are several options (presented in the order
of my preference):

1) You could try to get LuaTeX to find the texmf-local installation
first by running texhash. This is supposed to be run by the installer,
but clearly something went wrong in this process. Perhaps a permission
error? You might try running it as an administrator if running it as a
user doesn't fix the problem.

2) Since the texmf-local install is redundant, you could uninstall it
and make use of the texmf-dist version. My only concern here is the
fact that the executable for this version doesn't show on PATH. Without
knowing why this is, I don't know for sure if simply uninstalling the
texmf-local version fix this. If this file was removed by the
installer, then the uninstall process should restore this file, but if
there is some other cause, then you could be left without the executable
altogether. To fix that you would need to make use of tlmgr and I'm not
sure what the correct incantation for that would be off the top of my head.

3) Speaking of tlmgr, you could try repairing the texmf-dist version
without touching the texmf-local one. I don't like this option because
it leaves the texmf-local version in place to cause potential problems
down the road. Besides, as I indicated before, I'm not sure of what the
correct incantation is.

Brandon Wild

unread,
Jun 8, 2018, 1:16:31 PM6/8/18
to Gregorio Users
Thank you for your considerable help.

Upon following your suggestions, the problem was still not resolved.

I have since tried uninstalling and reinstalling everything.

I have installed only the TexLive 2018 package. I did not install the duplicate gregorio this time. I ran tlmgr and everything is up to date.

Still getting a similar error.

I see this error message in TexWorks: 'gregorio-5_1_1' is not recognized as an internal or external command,
operable program or batch file.

TexLive did not install a file called "gregorio-5_1_1.exe", which it is apparently looking for. It did install gregorio.exe.

I cannot run system-setup.bat as I did not install the separate gregorio.

Thanks,

Brandon Wild


test.log

Br. Samuel Springuel

unread,
Jun 8, 2018, 2:02:48 PM6/8/18
to gregori...@googlegroups.com
On 6/8/18 1:16 PM, Brandon Wild wrote:
> TexLive did not install a file called "gregorio-5_1_1.exe", which it is
> apparently looking for. It did install gregorio.exe.

That's what its supposed to do. `gregorio` is on the list of approved
programs for running without `--shell-escape` while `gregorio-5_1_1` is
not. The idea is that TeX Live knows enough about the executable it
installs to know it's safe while it makes no such assumptions about any
executables installed later. GregorioTeX knows this and looks for the
appropriate executable.

> I see this error message in TexWorks: 'gregorio-5_1_1' is not recognized as an internal or external command,
> operable program or batch file.

Under what circumstances did you see this error? It's not in the log
you posted. GregorioTeX should only be looking for `gregorio-5_1_1`
after it has failed to find `gregorio` or determined that `gregorio` is
not the right version (neither of which should be the case after a fresh
TeX Live only install). Furthermore, it wouldn't give you that error
message, but rather the one about `--shell-escape` possibly not being
active (the most likely cause of GregorioTeX not finding the executable
with the version number attached).

> I cannot run system-setup.bat as I did not install the separate gregorio.

You can still run it, you just need to download it first:

https://github.com/gregorio-project/gregorio/tree/master/contrib

Brandon Wild

unread,
Jun 9, 2018, 9:50:26 AM6/9/18
to Gregorio Users
Under what circumstances did you see this error?  It's not in the log 
you posted.

I see this in the Console Output tab of TexWorks. See 'test - texworks console output.txt'

I have attached my system-setup.log as well. When I run the .bat file, I see many "The system cannot find the path specified" errors.

Thank you.

Brandon Wild


system-setup.log
test - texworks console output.txt

Br. Samuel Springuel

unread,
Jun 10, 2018, 5:32:42 PM6/10/18
to gregori...@googlegroups.com
On 6/9/18 9:50 AM, Brandon Wild wrote:
> I have attached my system-setup.log as well. When I run the .bat file, I
> see many "The system cannot find the path specified" errors.

That's odd as the log seems to indicate that everything is okay. Can
you run it again and copy the errors out so that I can see them? Right
click on the title bar of the command window to get access to the select
and copy tools. Do this before following the prompt at the end to close
the window.

Also, please try compiling the debugging document in the examples folder
of the docs. Based on the log you posted you'll probably find that
folder at:

c:\texlive\2018\texmf-dist\doc\lualatex\gregoriotex\examples

You may need to copy the folder to your documents folder before
compiling them (depending on permissions). If it doesn't compile from
within TeXworks, then please try compiling it from the command line and
post the logs from both runs. If it does compile, then try compiling
the other one (main-lualatex.tex).

Brandon Wild

unread,
Jun 12, 2018, 3:04:29 PM6/12/18
to Gregorio Users
Br. Samuel,

I have come up with a workaround.

I installed texlive within the Windows 10 Linux subsystem.

It does not solve the original problem... but now I am up and running.

I appreciate your efforts in trying to resolve this problem.

Brandon
Reply all
Reply to author
Forward
0 new messages