Help with .write('musicxml.png')

15 views
Skip to first unread message

Áron Boros

unread,
Mar 10, 2023, 1:32:03 PM3/10/23
to music21
I'm using music21 on macOS with MuseScore 4.  

This code works fine: 
score.write('musicxml', fp='file.musicxml)
score.show('musicxml')

But this code does not:
score.write('musicxml.png', fp='file.png)
score.show('musicxml.png')

It generates:

PermissionError: [Errno 13] Permission denied: '/Applications/MuseScore 4.app'

Any thoughts on what I can try to clear up this permission problem?  Is there something different about which directories it's looking at for the png sub-format?  

Thanks in advance!

Michael Scott Cuthbert

unread,
Mar 10, 2023, 2:10:44 PM3/10/23
to music21list
MuseScore 4 seems to require the path to be /Applications/MuseScore 4.app/Contents/MacOS/mscore — you’ll need to change this in your UserSettings musescoreDirectPNGPath at least until a fix can be deployed in v9 (delayed more)

--
--
To Post: email music...@googlegroups.com
To Unsubscribe: email music21list...@googlegroups.com
Archives, Options, etc: http://groups.google.com/group/music21list

---
You received this message because you are subscribed to the Google Groups "music21" group.
To unsubscribe from this group and stop receiving emails from it, send an email to music21list...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/music21list/6f7e1615-1e27-4d46-b675-82a2c7e89460n%40googlegroups.com.

Áron Boros

unread,
Mar 10, 2023, 2:25:25 PM3/10/23
to music21
Brilliant, thank you!
Reply all
Reply to author
Forward
0 new messages