Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#65789 - [lilypond] lilypond-book doesn't find python libs

Attached to Project: Community Packages
Opened by andre (ad7) - Wednesday, 11 March 2020, 16:10 GMT
Last edited by Antonio Rojas (arojas) - Sunday, 15 March 2020, 11:09 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Evgeniy Alexeev (arcan1s)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
lilypond-book doesn't find correct python libs from python-ly package.


Additional info:
* package version(s)
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:
pacman -S lilypond python-ly
cat << EOF > test.lytex
\documentclass[a4paper]{article}

\begin{document}

\begin{lilypond}[fragment,quote,staffsize=26,verbatim]
c'4 f16
\end{lilypond}

\end{document}
EOF

lilypond-book --output=out --pdf test.lytex


After copying /usr/share/lilypond/2.20.0/python/* to /usr/local/share/lilypond/2.20.0/python the program lilypond-book command works again.

for d in ['/usr/local/share/lilypond/2.20.0',
'/usr/local/lib/lilypond/2.20.0']:
sys.path.insert (0, os.path.join (d, 'python'))

Best regards/liebe Grüße
aus dem Seewinkel
Andre
This task depends upon

Closed by  Antonio Rojas (arojas)
Sunday, 15 March 2020, 11:09 GMT
Reason for closing:  Fixed
Additional comments about closing:  lilypond 2.20.0-2
Comment by Caleb Maclennan (alerque) - Sunday, 15 March 2020, 05:35 GMT
I just hit this too, it killed my weekly church bulletin generation pipelines!

I was able to work around it by hacking the `/usr/bin/lilypond-book` script (which is Python 2) with basically this:

sudo sed -i -e 's!/usr/local/!/usr/!g' /usr/bin/lilypond-book

Loading...