Nicola:
I know I had the same problem before. It may be a problem with the
distribution of 2.10.17-1. I am using 2.11.13. Open up lilypond-
book and look for the code that precedes the "import lilylib as ly".
Mine looks like this:
os.environ['PATH'] = bindir + os.pathsep + os.environ['PATH']
for p in ['share', 'lib']:
datadir = os.path.abspath (bindir + '/../%s/lilypond/current/
python/' % p)
sys.path.insert (0, datadir)
import lilylib as ly
It is adding
LilyPond.app/Contents/Resources/share/lilypond/current/python/
into the path. if there is a space between the current/ and python/
in the 3rd line above, then the path is not being changed correctly.
That is the case with Ole's post from 2.10.13.
You could either eliminate the space, or put the lilypond/current/
python/ directly in your path.
Or, I know it works in 2.11.13.
Good luck.
On Feb 16, 2007, at 3:07 AM, nicola wrote:
In article <[EMAIL PROTECTED]>,
Fred Leason <[EMAIL PROTECTED]> wrote:
You explicitly called lilypond-book. I suspect you do not have the
bin directory in your PATH. lilypond-book reads your PATH to find
where lilylib is located. Your path should look like this:
PATH=/Library/Frameworks/Python.framework/Versions/Current/bin:.:/
opt/
local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/
bin:/bin:/sbin:/usr/bin:/usr/sbin:/Applications/LilyPond.app/
Contents/
Resources/bin:/usr/local/bin:/usr/local/teTeX/bin/powerpc-apple-
darwin-current
My PATH variable *does* contain the path to
LilyPond.app/Contents/Resources/bin. I find lilylib in
LilyPond.app/Contents/Resources/share/lilypond/current/python/
Maybe, some other environment variable must be set? I would like to
point out that in previous versions (e.g., 2.8) I used to run
lilypond-book in the same way and it worked fine.
Nicola
On Feb 15, 2007, at 11:02 AM, nicola wrote:
Hi,
when executing lilypond-book contained in Lilypond.app (Mac OS X),
I get
the following error:
Traceback (most recent call last):
File
"/Applications/TeX/LilyPond.app/Contents/Resources/bin/lilypond-
book",
line 44, in ?
import lilylib as ly
ImportError: No module named lilylib
Is some file missing from the distribution?
Nicola
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user