lilypond-devel
[Top][All Lists]
Advanced

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

Re: lilypond-book.py broken?


From: Reinhold Kainhofer
Subject: Re: lilypond-book.py broken?
Date: Sat, 12 Jun 2010 20:22:11 +0200
User-agent: KMail/1.13.3 (Linux/2.6.32-22-generic; KDE/4.4.4; i686; ; )

Am Samstag, 12. Juni 2010, um 20:07:06 schrieb Colin Campbell:
> Still breaking, Reinhold, at least for me. Here are the last few lines
> 
> of the console:
> > /home/colin/lilypond-git/scripts/build/out/help2man out/lilypond-book
> > > out/lilypond-book.1
> > langdefs.py: warning: lilypond-doc gettext domain not found.
> > Traceback (most recent call last):
> >   File "out/lilypond-book", line 86, in <module>
> >     import book_base as BookBase
> >   File "/home/colin/lilypond-git/python/out/book_base.py", line 4, in
> > <module>
> >     import book_snippets as BookSnippet
> >   File "/home/colin/lilypond-git/python/out/book_snippets.py", line
> > 12, in <module>
> >     warning = ly.warning
> > AttributeError: 'module' object has no attribute 'warning'

Hmm, that's really strange... lilylib.py contains warning:

def warning (s):
    stderr_write (program_name + ": " + _ ("warning: %s") % s + '\n')

def error (s):
    stderr_write (program_name + ": " + _ ("error: %s") % s + '\n')

progress = stderr_write


Furthermore, on your installation, python seems to be able to access 
ly.progress (the line before ly.warning), but fails for ly.warning...

Can you try removing /home/colin/lilypond-git/python/out/*.pyc ? It might be 
that python is still using some old byte-compiled *.pyc files rather than 
loading the new versions from *.py...

Cheers,
Reinhold
-- 
------------------------------------------------------------------
Reinhold Kainhofer, address@hidden, http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org



reply via email to

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