Sorry, I've just seen this is a duplicate of https://issues.guix.gnu.org/64729. I should have checked there first!

On 23/07/2023 20:15, Christina O'Donnell wrote:

Hi Guix! This is my first time posting on a GNU mailing list so I'd appreciate feedback on clarity and wording.

I've run `guix pull` and `guix package -u` after a couple weeks and I've hit a build failure:

builder for `/gnu/store/wv5clm6yl9hfghdsdqv0y2j749p1snhy-python-nbconvert-6.5.0.drv' failed with exit code 1

It seems that some tests have failed:

=========================== short test summary info ============================
FAILED exporters/tests/test_pdf.py::TestPDF::test_export - nbconvert.exporter...
FAILED tests/test_nbconvertapp.py::TestNbConvertApp::test_filename_accent_pdf
FAILED tests/test_nbconvertapp.py::TestNbConvertApp::test_filename_spaces - O...
FAILED tests/test_nbconvertapp.py::TestNbConvertApp::test_linked_images - OSE...
FAILED tests/test_nbconvertapp.py::TestNbConvertApp::test_pdf - OSError: [NbC...
================= 5 failed, 282 passed, 52 warnings in 13.77s ==================

These all seem to have come from xelatex. In the first it appears as xlatex not finding a format file. In the later ones, however, the error is unclear.

E                       nbconvert.exporters.pdf.LatexFailed: PDF creating failed, captured latex output:
E                       Failed to run "['/gnu/store/hyrpg4gnb92wfn5w9yjckfnwq4v50g4g-texlive-bin-20230313/bin/xelatex', 'notebook.tex', '-quiet']" command:
E                       This is XeTeX, Version 3.141592653-2.6-0.999995 (TeX Live 2023/GNU Guix) (preloaded format=xelatex)
E                        restricted \write18 enabled.
E
E                       kpathsea: Running mktexfmt xelatex.fmt
E                       mktexfmt: No such file or directory
E                       I can't find the format file `xelatex.fmt'!


E           nbconvert.exporters.pdf.LatexFailed: PDF creating failed, captured latex output:
E           Failed to run "['/gnu/store/hyrpg4gnb92wfn5w9yjckfnwq4v50g4g-texlive-bin-20230313/bin/xelatex', 'notebook.tex', '-quiet']" command

I couldn't glean anything else from the output. I've attached the build log if you're interested.

When I tried checking out the source and used `guix shell -D python-nbconvert` I appear to have tripped over something else that might be telling:

cdo@peter /t/guix-build-python-nbconvert-6.5.0.drv-0> guix shell -D python-nbconvert --debug=3 -K &| tee /tmp/nbconvert-shell.out
The following derivation will be built:
  /gnu/store/06di2r17gyji5n0pgyg39i69dpqcc923-profile.drv

building path(s) `/gnu/store/nywxlfivxzrzvicba102wq7in0jrb06w-texlive-font-maps'
|   setting up chroot environment in `/gnu/store/b72xsvb29yr6rx29ca0mz5937vaz24ny-texlive-font-maps.drv.chroot'
|   executing builder `/gnu/store/g8p09w6r78hhkl2rv1747pcp9zbk6fxv-guile-3.0.9/bin/guile'
|   @ build-started /gnu/store/b72xsvb29yr6rx29ca0mz5937vaz24ny-texlive-font-maps.drv - x86_64-linux /var/log/guix/drvs/b7//2xsvb29yr6rx29ca0mz5937vaz24ny-texlive-font-maps.drv.gz 5379
note: keeping build directory `/tmp/guix-build-texlive-font-maps.drv-0'
builder for `/gnu/store/b72xsvb29yr6rx29ca0mz5937vaz24ny-texlive-font-maps.drv' failed with exit code 1
build of /gnu/store/b72xsvb29yr6rx29ca0mz5937vaz24ny-texlive-font-maps.drv failed
View build log at '/var/log/guix/drvs/b7/2xsvb29yr6rx29ca0mz5937vaz24ny-texlive-font-maps.drv.gz'.
cannot build derivation `/gnu/store/06di2r17gyji5n0pgyg39i69dpqcc923-profile.drv': 1 dependencies couldn't be built
guix shell: error: build of `/gnu/store/06di2r17gyji5n0pgyg39i69dpqcc923-profile.drv' failed

That ends up with a log with no clear error that ends in:

ERROR: In procedure copy-file:
In procedure copy-file: Permission denied

On ci.guix.gnu.org, it's failing for tex-team, python-team and rust-team since 11th July. I reproduced it on the latest staging and master. I'm happy to investigate the matter further. Should I raise a bug first?

Kind regards,
 - Christina