On 2015-03-11 12:16 AM, Wilbert Berendsen wrote:
Op Tue, 10 Mar 2015 16:53:03 -0600
Colin Campbell <[email protected]> schreef:

  >>> import ly.pkginfo
Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
ImportError: No module named pkginfo
Strange. There must be an old 'ly' module lying around on your system,
because pkginfo was already added quite some time ago.

Please, give me the result of:

$ python
import ly
ly.__path__
ly.__file__


Nailed it, Wilbert! It seems that I must be the first person to install python-ly as well as Adam Spiers' ly2video. That's a really cool utility which takes a .ly project, compiles to MIDI and ultimately gives an AVI file with the score scrolling past over the synchronised MIDI.

*********************************************
colin@Sherlock ~$ python
Python 2.7.8 (default, Oct 20 2014, 15:05:19)
[GCC 4.9.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ly
>>> ly.__path__
*['/usr/local/lib/python2.7/dist-packages/ly2video-0.4.1-py2.7.egg/ly']*
>>> ly.__file__
*'/usr/local/lib/python2.7/dist-packages/ly2video-0.4.1-py2.7.egg/ly/__init__.pyc'*
>>>
[1]+  Stopped                 python
colin@Sherlock ~$
*********************************************

Adam's .egg file exists as a .zip and inside the .zip is a folder named ly. I'm copying this to the -dev list because it might be wise for the LilyPond community to restrict the name ly for core lilypond use only. A major strength of LilyPond is the community of supporting and supplemental utilities which has grown around LP, but the risk of this sort of conflict will probably only grow, especially as "ly" is an obvious name for a folder.

@devel: The problem comes from installing python-ly for the new 2.18 version of Frescobaldi, which makes Frescobaldi look for a folder named "ly" outside its own code. It uses the first one it finds on the path, opening the possibility that a conflicting version is found first, with the result that Frescobaldi errors off.

Cheers,
Colin

-- I've learned that you shouldn't go through life with a catcher's mitt on both hands. You need to be able to throw something back. -Maya Angelou, poet (1928- )
_______________________________________________
lilypond-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to