lilypond-devel
[Top][All Lists]
Advanced

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

Re: Make doc is broken


From: Reinhold Kainhofer
Subject: Re: Make doc is broken
Date: Tue, 23 Aug 2011 15:59:01 +0200
User-agent: KMail/1.13.6 (Linux/2.6.38-11-generic; KDE/4.7.0; i686; ; )

Am Dienstag, 23. August 2011, 05:37:48 schrieb Colin Campbell:
> HTH, and let me know, too, about any tracing I can do; I'm on 64-bit
> Ubuntu Natty

It looks like python in your installations doesn't try to load packages from 
the input/regression/musicxml/ directory (here on my 32 bit Ubuntu natty it 
does). Can you (Phil and Colin) plase add the following debug statements in 
scripts/lilypond-book.py in line 609. The for loop should look like:
    for i in global_options.custom_packages:
        nr += 1
        print "  Loading package %s"  % i
        print "  sys.path: %s"  % sys.path
        print "  PYTHONPATH: %s"  % os.environ.get ("PYTHONPATH", "(UNSET)")
        sys.path.append (os.getcwd ())
        print "  sys.path: %s"  % sys.path
        print imp.load_source ("book_custom_package%s" % nr, i)

This also includes a possible fix (the sys.path.append, where I append the 
input/regression/musicxml/ dir to the standard search path).

Then please run:
-) "make" (no need to clean before; you also don't have to wait until the C++ 
is compiled, but can kill the make as soon as all python file have been 
processed at the very beginning)
-) "cd input/regression/musicxml"
-) "make doc"; also no need to clean before, you can kill the command as soon 
as lilypond-book has started

The relevant output will be before lilypond gets called, something like (on my 
machine):
==============
  Loading package book-musicxml-testsuite.py
 sys.path: ['/home/reinhold/lilypond/lilypond/scripts', 
'/home/reinhold/lilypond/lilypond/python/out', 
'/home/reinhold/lilypond/lilypond/python/auxiliar', 
'/home/reinhold/lilypond/lilypond/input/regression/musicxml', 
'/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', 
'/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', 
'/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', 
'/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-
packages/Numeric', '/usr/lib/python2.7/dist-packages/PIL', 
'/usr/lib/pymodules/python2.7/gtk-2.0', '/usr/lib/python2.7/dist-
packages/gtk-2.0', '/usr/lib/pymodules/python2.7', 
'/usr/lib/pymodules/python2.7/ubuntuone-storage-protocol', 
'/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode']
<module 'book_custom_package1' from 'book-musicxml-testsuite.pyc'>
lilypond-book.py (GNU LilyPond) 2.15.9
Reading out-www/collated-files.tely...
=============

Notice the presence of 
'/home/reinhold/lilypond/lilypond/input/regression/musicxml' in the path, 
which is why it works here. Apparently your path doesn't include that, right?

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]