Verovio, Streamlit, and Segmentation Error with Fonts. Advice needed #3262
Closed
RichardFreedman
started this conversation in
General
Replies: 1 comment 1 reply
-
My best guess would be that it still has Verovio running in memory, but it somehow cleaned up the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Friends,
I have been using Verovio successfully in a Jupyter notebook environment to render scores (and measure selections). I have installed Verovio with pip, and then use the toolkit to call up the piece or measures. No problems.
Now I would like to use Verovio in a great resource called Streamlit, which (in brief) allows you to quickly create interactive web apps with simple commands and widgets. So users can filter data (lists of pieces), or show charts, plots, etc. Example for metadata in the CRIM Project here.
In principle, it works! Well, it works the first time I load the app. We fetch MEI or MusicXML, then pass it to the toolkit, and it renders just fine! But then when I reload the app for a different piece, there is a segmentation fault, apparently because Streamlit cannot find the fonts. I attach the error message here and also the basic code in Streamlit (which is simply python inside a wrapper for Streamlit).
Does anyone have a suggestion about how to make the fonts accessible or some other solution? Thank you!
logs.txt
Richard
Beta Was this translation helpful? Give feedback.
All reactions