*Big Sur* module 'abjad' has no attribute 'lilypond'

I’m trying to setup scamp environment on Big Sur. The only error I get is related to Abjad-lilypond. Any idea .?

LilyPond --version 2.20.0
abjad --version 3.1

File “/Users/mahatGma/musx/abjad_test.py”, line 13, in
performance.to_score().export_lilypond(“ab_lily_text.ly”)
File “/Users/mahatGma/musx/venv/lib/python3.9/site-packages/scamp/score.py”, line 607, in export_lilypond
output_file.write(abjad().lilypond(self.to_abjad_lilypond_file()))
AttributeError: module ‘abjad’ has no attribute 'lilypond’

PS: I can run abjad on its own

Python 3.9.2 (v3.9.2:1a79785e3e, Feb 19 2021, 09:06:10)
[Clang 6.0 (clang-600.0.57)] on darwin
import abjad
NOTE: The Pärt demo requires abjad-ext-tonality
note=abjad.Note(“c’4”)
WARNING: yacc table file version is out of date
abjad.show(note)
exit()

Hi @mahatGma,

This is an abjad version issue. The abjad developers keep coming out with new versions, and I’m trying to keep up with changes in their API. :slight_smile:

At the moment, the version that works with SCAMP is 3.2, so a simple pip3 install abjad==3.2 should do the trick. But I’ll probably be getting things aligned with 3.3 soon. (And also adding some more informative errors/warnings when you have the wrong version installed!)

oh thanks, so strange that it is changing so fast.
would you consider to edit this page then.? it says abjad==3.1
http://scamp.marcevanstein.com/narrative/experienced_setup.html

1 Like

Good point! Thanks for catching that.