Error in `/usr/bin/python': double free or corruption (out): 0x00007f7c3c017260 Error in `/usr/bin/python': double free or corruption (out): 0x00007f7c3c017260 flask flask

Error in `/usr/bin/python': double free or corruption (out): 0x00007f7c3c017260


I had a similar issue.

I had an unused dependency: spacy == 1.6.0removing it solved the issue.(maybe upgrading spacy version could also work)

spacy is written in Cython - an optimising static compiler for Python. So it might be related to sum bug memory allocation in spacy implementation.