[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: convert-ly broken in 2.10/11.15?
From: |
Stan Sanderson |
Subject: |
Re: convert-ly broken in 2.10/11.15? |
Date: |
Fri, 2 Feb 2007 07:33:34 -0600 |
Thank you Robert and Werner.
Werner's suggestion led me to compare the convert-ly scripts in a
copy of 2.10.13 and 2.10.15.
The path for MacOS is LilyPond.app -> Contents -> Resources -> bin ->
convert-ly .
The following lines were missing in 2.10.15:
datadir = '/usr/share/lilypond/2.10.13'
if not os.path.isdir (datadir):
datadir = '/usr/share/lilypond/2.10.13'
sys.path.insert (0, os.path.join (datadir, 'python'))
# dynamic relocation, for GUB binaries.
bindir = os.path.abspath (os.path.split (sys.argv[0])[0])
for p in ['share', 'lib']:
datadir = os.path.abspath (bindir + '/../%s/lilypond/current/
python/' % p)
sys.path.insert (0, datadir)
I copied, then pasted them into the 2.10.15 convert-ly script, then
changed the occurrences of "2.10.13" to "2.10.15" in the copied text.
All is well until 2.10/11. 16 comes outl
Always learning...
Stan
On Feb 2, 2007, at 1:35 AM, Werner LEMBERG wrote:
Traceback (most recent call last):
File "/Users/ssanders/Documents/Lilypond stuff/LilyPond 2.11.x/
LilyPond.app/Contents/Resources/bin/convert-ly", line 22, in ?
import lilylib as ly
ImportError: No module named lilylib
I think Han-Wen has fixed this already in the GIT repository. As a
workaround, edit the installed convert-ly script and replace this:
for d in ['@lilypond_datadir@',
'@lilypond_libdir@']:
sys.path.insert (0, os.path.join (d, 'python'))
with this:
for d in ['/usr/local/share/lilypond/2.11.14',
'/usr/local/lib/lilypond/2.11.14']:
sys.path.insert (0, os.path.join (d, 'python'))
(assuming that lilypond has been installed in /usr/local/share, of
course).
Werner