conda-forge / conda-forge/miktex-feedstock

MikTex doesn't work with nbconvert because xelatex fails

Open
#26 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Batchfile
Stars
3
Forks
11
PR merge metrics
No merged PRs in 30d

Description

### Solution to issue cannot be found in the documentation.

- [X] I checked the documentation.

### Issue

Trying to save ipynb notebook from Jupyter using nbconvert fails with the following error:
```
nbconvert failed: PDF creating failed, captured latex output:
Failed to run "xelatex notebook.tex -quiet" command:
Sorry, but C:\Users\user\.conda\envs\test\Library\miktex\texmfs\install\miktex\bin\x64\xelatex.exe did not succeed.
```
Logs of xelatex start attempt:
```
2023-08-11 11:50:57,055+0200 INFO xelatex - this process (14556) started by xelatex in directory C:\Users\user\AppData\Local\Temp\tmp4uccbdfq with command line: C:\Users\user\.conda\envs\test\Library\miktex\texmfs\install\miktex\bin\x64\xelatex.exe notebook.tex -quiet
2023-08-11 11:50:57,056+0200 INFO xelatex - running on Windows 10.0.19045
2023-08-11 11:50:57,061+0200 INFO xelatex - this is MiKTeX-XETEX 4.10.0 (0.999995) (MiKTeX 23.5 Portable)
2023-08-11 11:50:57,063+0200 INFO xelatex - allowing known shell commands
2023-08-11 11:50:57,082+0200 INFO xelatex - going to create file: xelatex.fmt
2023-08-11 11:50:57,082+0200 INFO xelatex.core - start process: miktex --enable-installer formats build xelatex --engine xetex
2023-08-11 11:50:59,896+0200 ERROR xelatex - C:\Users\user\.conda\envs\test\Library\miktex\texmfs\install\miktex\bin\x64\miktex.exe did not succeed; exitCode: 1
2023-08-11 11:50:59,897+0200 ERROR xelatex - output:
2023-08-11 11:50:59,897+0200 ERROR xelatex - Building format 'xelatex' with engine 'xetex'...

Sorry, but: The executed process did not succeed.

2023-08-11 11:50:59,897+0200 FATAL xelatex.core - The memory dump file could not be found.
2023-08-11 11:50:59,897+0200 FATAL xelatex.core - Data: fileName="xelatex.fmt"
2023-08-11 11:50:59,897+0200 FATAL xelatex.core - Source: Libraries\MiKTeX\TeXAndFriends\texmfapp.cpp:697
2023-08-11 11:50:59,897+0200 FATAL xelatex - The memory dump file could not be found.
2023-08-11 11:50:59,898+0200 FATAL xelatex - Info: fileName="xelatex.fmt"
2023-08-11 11:50:59,898+0200 FATAL xelatex - Source: Libraries\MiKTeX\TeXAndFriends\texmfapp.cpp
2023-08-11 11:50:59,898+0200 FATAL xelatex - Line: 697
2023-08-11 11:50:59,898+0200 INFO xelatex - this process (14556) finishes with exit code 1
```

### Installed packages

```shell
# packages in environment at C:\Users\user\.conda\envs\test:
#
# Name Version Build Channel
aiofiles 22.1.0 py311haa95532_0
aiosqlite 0.18.0 py311haa95532_0
anyio 3.5.0 py311haa95532_0
appdirs 1.4.4 pyhd3eb1b0_0
argon2-cffi 21.3.0 pyhd3eb1b0_0
argon2-cffi-bindings 21.2.0 py311h2bbff1b_0
asttokens 2.0.5 pyhd3eb1b0_0
attrs 22.1.0 py311haa95532_0
babel 2.11.0 py311haa95532_0
backcall 0.2.0 pyhd3eb1b0_0
beautifulsoup4 4.12.2 py311haa95532_0
blas 1.0 mkl
bleach 4.1.0 pyhd3eb1b0_0
bottleneck 1.3.5 py311h5bb9823_0
brotli 1.0.9 h2bbff1b_7
brotli-bin 1.0.9 h2bbff1b_7
brotlipy 0.7.0 py311h2bbff1b_1002
bzip2 1.0.8 he774522_0
ca-certificates 2023.7.22 h56e8100_0 conda-forge
certifi 2023.7.22 pyhd8ed1ab_0 conda-forge
cffi 1.15.1 py311h2bbff1b_3
charset-normalizer 2.0.4 pyhd3eb1b0_0
colorama 0.4.6 py311haa95532_0
comm 0.1.2 py311haa95532_0
contourpy 1.0.5 py311h59b6b97_0
cryptography 41.0.2 py311h31511bf_0
cx_oracle 8.3.0 py311h2bbff1b_0
cycler 0.11.0 pyhd3eb1b0_0
debugpy 1.6.7 py311hd77b12b_0
decorator 5.1.1 pyhd3eb1b0_0
defusedxml 0.7.1 pyhd3eb1b0_0
entrypoints 0.4 py311haa95532_0
et_xmlfile 1.1.0 py311haa95532_0
executing 0.8.3 pyhd3eb1b0_0
fonttools 4.25.0 pyhd3eb1b0_0
freetype 2.12.1 ha860e81_0
giflib 5.2.1 h8cc25b3_3
glib 2.69.1 h5dc1a3c_2
greenlet 2.0.1 py311hd77b12b_0
gst-plugins-base 1.18.5 h9e645db_0
gstreamer 1.18.5 hd78058f_0
icc_rt 2022.1.0 h6049295_2
icu 58.2 ha925a31_3
idna 3.4 py311haa95532_0
intel-openmp 2023.1.0 h59b6b97_46319
ipykernel 6.25.0 py311h746a85d_0
ipython 8.12.0 py311haa95532_0
ipython_genutils 0.2.0 pyhd3eb1b0_1
ipywidgets 8.0.4 py311haa95532_0
jedi 0.18.1 py311haa95532_1
jinja2 3.1.2 py311haa95532_0
joblib 1.2.0 py311haa95532_0
jpeg 9e h2bbff1b_1
json5 0.9.6 pyhd3eb1b0_0
jsonschema 4.17.3 py311haa95532_0
jupyter 1.0.0 py311haa95532_8
jupyter_client 7.4.9 py311haa95532_0
jupyter_console 6.6.3 py311haa95532_0
jupyter_core 5.3.0 py311haa95532_0
jupyter_events 0.6.3 py311haa95532_0
jupyter_server 1.23.4 py311haa95532_0
jupyter_server_fileid 0.9.0 py311haa95532_0
jupyter_server_ydoc 0.8.0 py311haa95532_1
jupyter_ydoc 0.2.4 py311haa95532_0
jupyterlab 3.6.3 py311haa95532_0
jupyterlab_pygments 0.1.2 py_0
jupyterlab_server 2.22.0 py311haa95532_0
jupyterlab_widgets 3.0.5 py311haa95532_0
kiwisolver 1.4.4 py311hd77b12b_0
krb5 1.19.4 h5b6d351_0
lerc 3.0 hd77b12b_0
libbrotlicommon 1.0.9 h2bbff1b_7
libbrotlidec 1.0.9 h2bbff1b_7
libbrotlienc 1.0.9 h2bbff1b_7
libclang 14.0.6 default_hb5a9fac_1
libclang13 14.0.6 default_h8e68704_1
libdeflate 1.17 h2bbff1b_0
libffi 3.4.4 hd77b12b_0
libiconv 1.16 h2bbff1b_2
libogg 1.3.5 h2bbff1b_1
libpng 1.6.39 h8cc25b3_0
libsodium 1.0.18 h62dcd97_0
libtiff 4.5.0 h6c2663c_2
libvorbis 1.3.7 he774522_0
libwebp 1.2.4 hbc33d0d_1
libwebp-base 1.2.4 h2bbff1b_1
libxml2 2.10.3 h0ad7f3c_0
libxslt 1.1.37 h2bbff1b_0
lxml 4.9.2 py311h2bbff1b_0
lz4-c 1.9.4 h2bbff1b_0
markupsafe 2.1.1 py311h2bbff1b_0
matplotlib 3.7.1 py311haa95532_1
matplotlib-base 3.7.1 py311hf62ec03_1
matplotlib-inline 0.1.6 py311haa95532_0
miktex 23.5 hcfcfb64_0 conda-forge
mistune 0.8.4 py311h2bbff1b_1000
mkl 2023.1.0 h8bd8f75_46356
mkl-service 2.4.0 py311h2bbff1b_1
mkl_fft 1.3.6 py311hf62ec03_1
mkl_random 1.2.2 py311hf62ec03_1
munkres 1.1.4 py_0
nbclassic 0.5.5 py311haa95532_0
nbclient 0.5.13 py311haa95532_0
nbconvert 6.5.4 py311haa95532_0
nbformat 5.7.0 py311haa95532_0
nest-asyncio 1.5.6 py311haa95532_0
notebook 6.5.4 py311haa95532_1
notebook-shim 0.2.2 py311haa95532_0
numexpr 2.8.4 py311h1fcbade_1
numpy 1.24.3 py311hdab7c0b_1
numpy-base 1.24.3 py311hd01c5d8_1
openpyxl 3.0.10 py311h2bbff1b_0
openssl 1.1.1v hcfcfb64_0 conda-forge
packaging 23.0 py311haa95532_0
pandas 1.5.3 py311heda8569_0
pandocfilters 1.5.0 pyhd3eb1b0_0
parso 0.8.3 pyhd3eb1b0_0
pcre 8.45 hd77b12b_0
pickleshare 0.7.5 pyhd3eb1b0_1003
pillow 9.4.0 py311hd77b12b_0
pip 23.2.1 py311haa95532_0
platformdirs 2.5.2 py311haa95532_0
ply 3.11 py311haa95532_0
pooch 1.4.0 pyhd3eb1b0_0
prometheus_client 0.14.1 py311haa95532_0
prompt-toolkit 3.0.36 py311haa95532_0
prompt_toolkit 3.0.36 hd3eb1b0_0
psutil 5.9.0 py311h2bbff1b_0
pure_eval 0.2.2 pyhd3eb1b0_0
pycparser 2.21 pyhd3eb1b0_0
pygments 2.15.1 py311haa95532_1
pyopenssl 23.2.0 py311haa95532_0
pyparsing 3.0.9 py311haa95532_0
pyqt 5.15.7 py311hd77b12b_0
pyqt5-sip 12.11.0 py311hd77b12b_0
pyrsistent 0.18.0 py311h2bbff1b_0
pysocks 1.7.1 py311haa95532_0
python 3.11.4 h966fe2a_0
python-dateutil 2.8.2 pyhd3eb1b0_0
python-fastjsonschema 2.16.2 py311haa95532_0
python-json-logger 2.0.7 py311haa95532_0
pytz 2022.7 py311haa95532_0
pywin32 305 py311h2bbff1b_0
pywinpty 2.0.10 py311h5da7b33_0
pyyaml 6.0 py311h2bbff1b_1
pyzmq 23.2.0 py311hd77b12b_0
qt-main 5.15.2 he8e5bd7_8
qt-webengine 5.15.9 hb9a9bb5_5
qtconsole 5.4.2 py311haa95532_0
qtpy 2.2.0 py311haa95532_0
qtwebkit 5.212 h2bbfb41_5
requests 2.31.0 py311haa95532_0
rfc3339-validator 0.1.4 py311haa95532_0
rfc3986-validator 0.1.1 py311haa95532_0
scikit-learn 1.3.0 py311hf62ec03_0
scipy 1.10.1 py311hc1ccb85_1
send2trash 1.8.0 pyhd3eb1b0_1
setuptools 68.0.0 py311haa95532_0
sip 6.6.2 py311hd77b12b_0
six 1.16.0 pyhd3eb1b0_1
sniffio 1.2.0 py311haa95532_1
soupsieve 2.4 py311haa95532_0
sqlalchemy 1.4.39 py311h2bbff1b_0
sqlite 3.41.2 h2bbff1b_0
stack_data 0.2.0 pyhd3eb1b0_0
symlink-exe-runtime 1.0 hcfcfb64_0 conda-forge
tbb 2021.8.0 h59b6b97_0
terminado 0.17.1 py311haa95532_0
threadpoolctl 2.2.0 pyh0d69192_0
tinycss2 1.2.1 py311haa95532_0
tk 8.6.12 h2bbff1b_0
toml 0.10.2 pyhd3eb1b0_0
tornado 6.3.2 py311h2bbff1b_0
traitlets 5.7.1 py311haa95532_0
typing-extensions 4.7.1 py311haa95532_0
typing_extensions 4.7.1 py311haa95532_0
tzdata 2023c h04d1e81_0
ucrt 10.0.22621.0 h57928b3_0 conda-forge
urllib3 1.26.16 py311haa95532_0
vc 14.2 h21ff451_1
vc14_runtime 14.36.32532 hfdfe4a8_17 conda-forge
vs2015_runtime 14.36.32532 h05e6639_17 conda-forge
wcwidth 0.2.5 pyhd3eb1b0_0
webencodings 0.5.1 py311haa95532_1
websocket-client 0.58.0 py311haa95532_4
wheel 0.38.4 py311haa95532_0
widgetsnbextension 4.0.5 py311haa95532_0
win_inet_pton 1.1.0 py311haa95532_0
winpty 0.4.3 4
xlrd 2.0.1 pyhd3eb1b0_1
xlwt 1.3.0 py311haa95532_0
xz 5.4.2 h8cc25b3_0
y-py 0.5.9 py311hb6bf4ef_0
yaml 0.2.5 he774522_0
ypy-websocket 0.8.2 py311haa95532_0
zeromq 4.3.4 hd77b12b_0
zlib 1.2.13 h8cc25b3_0
zstd 1.5.5 hd43e919_0
```

### Environment info

```shell
active environment : test
active env location : C:\Users\user\.conda\envs\test
shell level : 2
user config file : C:\Users\user\.condarc
populated config files : C:\Users\user\.condarc
conda version : 23.5.2
conda-build version : not installed
python version : 3.11.4.final.0
virtual packages : __archspec=1=x86_64
__win=0=0
base environment : C:\ProgramData\miniconda3 (read only)
conda av data dir : C:\ProgramData\miniconda3\etc\conda
conda av metadata url : None
channel URLs : https://conda.anaconda.org/conda-forge/win-64
https://conda.anaconda.org/conda-forge/noarch
https://repo.anaconda.com/pkgs/main/win-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/win-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/msys2/win-64
https://repo.anaconda.com/pkgs/msys2/noarch
package cache : C:\ProgramData\miniconda3\pkgs
C:\Users\user\.conda\pkgs
C:\Users\user\AppData\Local\conda\conda\pkgs
envs directories : C:\Users\user\.conda\envs
C:\ProgramData\miniconda3\envs
C:\Users\user\AppData\Local\conda\conda\envs
platform : win-64
user-agent : conda/23.5.2 requests/2.29.0 CPython/3.11.4 Windows/10 Windows/10.0.19045
administrator : False
netrc file : None
offline mode : False
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.