[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: OSX Lion cannot run lilymidi
From: |
Hans Aberg |
Subject: |
Re: OSX Lion cannot run lilymidi |
Date: |
Wed, 26 Oct 2011 23:25:48 +0200 |
On 26 Oct 2011, at 21:43, Maccesch wrote:
> I have the latest unstable Version (2.15.15-1) installed on
> OS X Lion. The GUI seems to work fine, but if I try to run
> lilymidi from the Terminal I get this error:
>
> Traceback (most recent call last):
> File "./lilymidi", line 237, in <module>
> go ()
> File "./lilymidi", line 218, in go
> midi_data = read_midi (midi_file)
> File "./lilymidi", line 67, in read_midi
> import midi
> ImportError:
> dlopen(/Applications/LilyPond.app/Contents/Resources/lib/lilypond/
> current/python/midi.so,
> 2): no suitable image found. Did find:
> /Applications/LilyPond.app/Contents/Resources/lib/lilypond/
> current/python/midi.so: mach-o, but wrong architecture
>
> I found a report for this on the web but I haven't found
> a solution.
There are two problems: current python is by default 64-bit, but midi.so is
32-bit (check in Terminal with 'file'). This can be fixed (see 'man python' -
tried on Mac OS X 10.6) by in Terminal first doing (in bash)
export VERSIONER_PYTHON_PREFER_32_BIT=yes
or change the first line in the
/Applications/LilyPond.app/Contents/Resources/bin/lilymidi script to
#!/usr/bin/env python2.5
as the default for this python version is 32-bit.
Do that, and I get:
RuntimeWarning: Python C API version mismatch for module midi: This Python
has API version 1013, module midi has version 1012.
Since this is a warning, it still works, but ideally, this module should be
recompiled with a later python version.
Hans