[Flask] Simultaneous Matplotlib "QObject" error

John Robson John.Robson at usp.br
Thu Sep 8 21:13:38 EDT 2016


Hi all,

I have some pages that plot charts using Matplotlib, they work very 
well, but when running them simultaneously they break, with errors like:

"QObject: Cannot create children for a parent that is in a different 
thread."

"QObject::~QObject: Timers cannot be stopped from another thread"

I wonder how to safely use Matplolib with Flask (and several 
simultaneous users plotting stuff all the time)?

Thank you,
John



More information about the Flask mailing list