lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lilypond 2.10.17-1: lilypond-book ImportError


From: Ole Schmidt
Subject: Re: Lilypond 2.10.17-1: lilypond-book ImportError
Date: Fri, 16 Feb 2007 10:19:13 +0100

Hi,

I get an (to me) similar error when I try to execute syntax-update, unfortunatly it did not help, but maybe its the same issue? see the mail below:

ole




 I've pasted the whole text at the end of my convert-ly file:
(pasted text:)
--------------------------------------------

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)


----------------------------------------------

still getting the same error warning.

ole




Am 04.02.2007 um 18:39 schrieb Stan Sanderson:


On Feb 4, 2007, at 8:11 AM, Ole Schmidt wrote:

Hi Trevor,

When I try to use convert-ly via the terminal (I am using Mac OS X 10.4.8)
or via Lilypond / Compile-menu/ Update syntax, I get the following error message:
-----------------------
Traceback (most recent call last):
File "/Applications/LilyPond.app/Contents/Resources/bin/convert- ly", line 22, in ?
import lilylib as ly
ImportError: No module named lilylib

-----------------------
This happens with both versions 2.11.15-1 and 2.10.15-1
what is wrong?

Ole-

I posted this a couple of days ago...
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


Stan


Am 16.02.2007 um 10:07 schrieb nicola:

In article <address@hidden>,
 Fred Leason <address@hidden> 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 mailing list


reply via email to

[Prev in Thread] Current Thread [Next in Thread]