Mac Python AI Error

Hi I am getting this error whenever I press the ‘Ask-K-AI’ button on Python script.