This situation occurs when you have an ImportError
that does not apply to your terminal. Check all your files for invalid import statements, fix them and the error should go away.
EDIT 2017-04-02: Michael noted that my link placed under the "OLD MESSAGE PART 2" tag is incorrect. I don’t know how this error occurred, but I found the last post on Flask Github , where they refer to a commit , which was supposed to fix the problem on December 30, 2016. Probably at that time I was really launching an older version of the jar.
OLD MESSAGE PART 2: This question is discussed on the Flask Github , although I’m not sure when and even if it was really fixed, as I still encounter the error today, although I downloaded Flask after merging the fix described on this page (12 August 2016).
source share