Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to load "luaotfload" module "features". #213

Closed
dragonstyle opened this issue Feb 26, 2022 · 6 comments
Closed

Failed to load "luaotfload" module "features". #213

dragonstyle opened this issue Feb 26, 2022 · 6 comments

Comments

@dragonstyle
Copy link

I've recently started receiving this error when attempting to compile a tex document using lualatex. For example, with the test document test.tex:

\documentclass{article}
    % General document formatting
    \usepackage[margin=0.7in]{geometry}
    \usepackage[parfill]{parskip}
    \usepackage[utf8]{inputenc}
    
    % Related to math
    \usepackage{amsmath,amssymb,amsfonts,amsthm}

\begin{document}

Name, date, Exercise X

\section*{Part a}

Put your answer to part a here

\section*{Part b}

etc

\end{document}

the command lualatex test.tex results in the error:

This is LuaHBTeX, Version 1.13.2 (TeX Live 2021) 
 restricted system commands enabled.
(./test.tex
LaTeX2e <2021-11-15> patch level 1


luaotfload | load : FATAL ERROR
luaotfload | load :   × Failed to load "luaotfload" module "features".
luaotfload | load :   × Error message:
luaotfload | load :     × "...texmf-dist/tex/luatex/luaotfload/luaotfload-features.lua:835: module 'lua-uni-normalize' not found:".
luaotfload | load :     × "no field package.preload['lua-uni-normalize']".
luaotfload | load :     × "[kpse lua searcher] file not found: 'lua-uni-normalize'".

stack traceback:
	.../TinyTeX/texmf-dist/tex/luatex/luaotfload/luaotfload.lua:200: in upvalue 'loadmodule'
	.../TinyTeX/texmf-dist/tex/luatex/luaotfload/luaotfload.lua:275: in local 'initialize'
	.../TinyTeX/texmf-dist/tex/luatex/luaotfload/luaotfload.lua:340: in field 'main'
	[\directlua]:1: in main chunk

Curious if I should be doing something differently or if this is perhaps related to the recent 3.19 release. Any help appreciated.

@zauguin
Copy link
Member

zauguin commented Feb 26, 2022

It is related to the release: The new version requires the lua-uni-normalize package which does not seem to be installed on your system. Which distribution do you use?

@dragonstyle
Copy link
Author

Thank you! I can confirm that after installing lua-uni-normalize it compiles the tex fine.

I'm using https://github.com/yihui/tinytex.

dragonstyle added a commit to quarto-dev/quarto-cli that referenced this issue Feb 26, 2022
@FrankMittelbach
Copy link
Member

looks like it is a tiny bit too tiny now :-)

@zauguin
Copy link
Member

zauguin commented Feb 26, 2022

I reported the additional dependency to the TeX Live list, hopefully Tiny TeX & co will pick it up once it's listed there.

@FrankMittelbach
Copy link
Member

why not open an issue on their github instead?

@dragonstyle
Copy link
Author

Will do thank you!

yihui added a commit to rstudio/tinytex that referenced this issue Mar 1, 2022
…f error `module 'lua-uni-normalize' not found`

applying the same fix as quarto-dev/quarto-cli@ddf9cf3
clrpackages pushed a commit to clearlinux-pkgs/R-tinytex that referenced this issue Mar 31, 2022
…0.38

Christophe Dervieux (2):
      update GHA to last version of actions (#360)
      Do not run workflows when working on build.yaml in #170

Yihui Xie (9):
      start the next version
      fix #354: set the env var TEXLIVE_PREFER_OWN=1 before calling tlmgr to use TeX Live's own curl instead of curl on PATH
      we probably don't need the dev version of knitr now (although I don't remember why we needed it in the past)
      close #356: `set -e` and `curl -f` to fail immediately
      fix latex3/luaotfload#213: detect the lua-uni-algos package in case of error `module 'lua-uni-normalize' not found`
      add lua-uni-algos after 157b62dcd78dbc3a02b4e2302031d9c06a1b7c5a
      use pandoc 2.17.1.1 (current version bundled with RStudio)
      close #361: add the help page ?tinytex
      CRAN release v0.38
netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this issue Dec 31, 2022
tinytex 0.43
  * Added the LaTeX package pdfcol to the TinyTeX bundle (#387).
  * Removed the internal use of xfun::isFALSE() (yihui/xfun#67).

tinytex 0.42
  * Querying CTAN might time out, which can cause failure in installing TinyTeX
    (thanks, Lillian Welsh, https://stackoverflow.com/q/73404800/559676).

  * When installing TinyTeX on macOS and the directory /usr/local/bin does not
    exist, users will be prompted to create it. Then if it is not writable,
    users will be prompted to make it writable via chown (a13ae48).

tinytex 0.41
  * TinyTeX no longer defines the TEXMFHOME variable (thanks, @vsheg, #377).

  * The internal function fc_cache() also runs on the TinyTeX root directory
    now (3d146ac).

tinytex 0.40
  * Added a bundle argument to tinytex::install_tinytex(), so that users can
    choose to install any TinyTeX bundle, e.g., TinyTeX-0 or TinyTeX-2.

tinytex 0.39

  * The tinytex and tinytex-releases repositories have been moved from @yihui's
    account to @rstudio, i.e., their addresses are https://github.com/rstudio/
    tinytex/ and https://github.com/rstudio/tinytex-releases/ now.

  * The full TeX Live has been pre-built as the TinyTeX-2 bundle in the daily
    release of TinyTeX: https://github.com/rstudio/tinytex-releases/releases/
    tag/daily To know how to install it, please see https://github.com/rstudio/
    tinytex-releases#installation.

  * If tinytex::install_tinytex() detects an existing LaTeX distribution in the
    system, it will ask if you want to continue the installation in an
    interactive R session. If this function is called in a non-interactive R
    session (e.g., via the Rscript command), it will throw an error in this
    case, unless the argument force = TRUE is used. This is to prevent an
    accidental installation of TinyTeX (which occurred on CRAN recently).
    Another way to prevent the installation is to set the environment variable
    TINYTEX_PREVENT_INSTALL=true.

  * On *nix, if the dir ~/.local/bin exists, it will be used as the bin path
    for TinyTeX, i.e., symlinks of TeX Live binaries will be created to this
    dir. If it does not exist, ~/bin/ will be used as usual (thanks, @salim-b,
    #365).

tinytex 0.38
  * Fixed #354: set the env var TEXLIVE_PREFER_OWN=1 before calling tlmgr() to
    use TeX Live's own curl instead of curl on PATH (thanks, @netique).

  * Fixed latex3/luaotfload#213: detect the lua-uni-algos package in case of
    error module 'lua-uni-normalize' not found (thanks, @dragonstyle).

  * Added the help page ?tinytex (thanks, @AmeliaMN, #361).

  * Use set -e and curl -f to fail immediately in the *nix installation script
    (thanks, @gaborcsardi, #356).

tinytex 0.37
  * Fixed rstudio/bookdown#1274: latexmk() should run the LaTeX engine one more
    time before calling makeindex (thanks, @trevorcampbell @ttimbers).

tinytex 0.36
  * Fixed the failure to detect the hyphen-french package from the LaTeX log:
    https://stackoverflow.com/q/69887190/559676

  * xfun::session_info('tinytex') can report the TeX Live (TinyTeX) version
    now.

  * Improved the way tinytex::tlmgr_repo() normalizes the repo URL (#346).

tinytex 0.35
  * install_tinytex() will automatically switch to using https://github.com/
    yihui/tinytex-releases/releases/tag/daily to install the daily version of
    TinyTeX if accessing https://yihui.org fails (#332).

  * install-bin-unix.sh and install-bin-windows.bat now install TinyTeX from
    https://github.com/yihui/tinytex-releases/releases/tag/daily instead of
    https://yihui.org/tinytex/TinyTeX.* (#270).

  * Fixed #322: automatically install hyphen-* packages in case of polyglossia
    warnings.

  * Run tlmgr conf texmf max_print_line 10000 to prevent LaTeX from wrapping
    log lines (#322 (comment)). If you do not like this configuration, you may
    run tlmgr conf texmf --delete max_print_line to delete it.

tinytex 0.34
  * The --data argument in tl_sizes() is properly quoted now to make it work on
    Windows (thanks, @IndrajeetPatil #329, @cderv #330).
netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this issue Jan 18, 2023
tinytex 0.43
  * Added the LaTeX package pdfcol to the TinyTeX bundle (#387).
  * Removed the internal use of xfun::isFALSE() (yihui/xfun#67).

tinytex 0.42
  * Querying CTAN might time out, which can cause failure in installing TinyTeX
    (thanks, Lillian Welsh, https://stackoverflow.com/q/73404800/559676).

  * When installing TinyTeX on macOS and the directory /usr/local/bin does not
    exist, users will be prompted to create it. Then if it is not writable,
    users will be prompted to make it writable via chown (a13ae48).

tinytex 0.41
  * TinyTeX no longer defines the TEXMFHOME variable (thanks, @vsheg, #377).

  * The internal function fc_cache() also runs on the TinyTeX root directory
    now (3d146ac).

tinytex 0.40
  * Added a bundle argument to tinytex::install_tinytex(), so that users can
    choose to install any TinyTeX bundle, e.g., TinyTeX-0 or TinyTeX-2.

tinytex 0.39

  * The tinytex and tinytex-releases repositories have been moved from @yihui's
    account to @rstudio, i.e., their addresses are https://github.com/rstudio/
    tinytex/ and https://github.com/rstudio/tinytex-releases/ now.

  * The full TeX Live has been pre-built as the TinyTeX-2 bundle in the daily
    release of TinyTeX: https://github.com/rstudio/tinytex-releases/releases/
    tag/daily To know how to install it, please see https://github.com/rstudio/
    tinytex-releases#installation.

  * If tinytex::install_tinytex() detects an existing LaTeX distribution in the
    system, it will ask if you want to continue the installation in an
    interactive R session. If this function is called in a non-interactive R
    session (e.g., via the Rscript command), it will throw an error in this
    case, unless the argument force = TRUE is used. This is to prevent an
    accidental installation of TinyTeX (which occurred on CRAN recently).
    Another way to prevent the installation is to set the environment variable
    TINYTEX_PREVENT_INSTALL=true.

  * On *nix, if the dir ~/.local/bin exists, it will be used as the bin path
    for TinyTeX, i.e., symlinks of TeX Live binaries will be created to this
    dir. If it does not exist, ~/bin/ will be used as usual (thanks, @salim-b,
    #365).

tinytex 0.38
  * Fixed #354: set the env var TEXLIVE_PREFER_OWN=1 before calling tlmgr() to
    use TeX Live's own curl instead of curl on PATH (thanks, @netique).

  * Fixed latex3/luaotfload#213: detect the lua-uni-algos package in case of
    error module 'lua-uni-normalize' not found (thanks, @dragonstyle).

  * Added the help page ?tinytex (thanks, @AmeliaMN, #361).

  * Use set -e and curl -f to fail immediately in the *nix installation script
    (thanks, @gaborcsardi, #356).

tinytex 0.37
  * Fixed rstudio/bookdown#1274: latexmk() should run the LaTeX engine one more
    time before calling makeindex (thanks, @trevorcampbell @ttimbers).

tinytex 0.36
  * Fixed the failure to detect the hyphen-french package from the LaTeX log:
    https://stackoverflow.com/q/69887190/559676

  * xfun::session_info('tinytex') can report the TeX Live (TinyTeX) version
    now.

  * Improved the way tinytex::tlmgr_repo() normalizes the repo URL (#346).

tinytex 0.35
  * install_tinytex() will automatically switch to using https://github.com/
    yihui/tinytex-releases/releases/tag/daily to install the daily version of
    TinyTeX if accessing https://yihui.org fails (#332).

  * install-bin-unix.sh and install-bin-windows.bat now install TinyTeX from
    https://github.com/yihui/tinytex-releases/releases/tag/daily instead of
    https://yihui.org/tinytex/TinyTeX.* (#270).

  * Fixed #322: automatically install hyphen-* packages in case of polyglossia
    warnings.

  * Run tlmgr conf texmf max_print_line 10000 to prevent LaTeX from wrapping
    log lines (#322 (comment)). If you do not like this configuration, you may
    run tlmgr conf texmf --delete max_print_line to delete it.

tinytex 0.34
  * The --data argument in tl_sizes() is properly quoted now to make it work on
    Windows (thanks, @IndrajeetPatil #329, @cderv #330).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants