mljar-supervised icon indicating copy to clipboard operation
mljar-supervised copied to clipboard

RuntimeError: main thread is not in main loop

Open Tonywhitemin opened this issue 2 years ago • 3 comments

Hello everyone, I am a beginner of mljar. After installing the mljar-supervised package yesterday, I used the example on the official website to test... image

but the following exception code occurred. image

Could you tell me how to solve this problem? Thanks for your help! System: Windows 10 Python version: 3.8.13

The complete execution result is as follows: image

Tonywhitemin avatar May 21 '22 06:05 Tonywhitemin

@Tonywhitemin thanks for reporting. That's might be related to this issue https://stackoverflow.com/questions/52839758/matplotlib-and-runtimeerror-main-thread-is-not-in-main-loop

Please try to add in your code:

import matplotlib
matplotlib.use('Agg')

pplonski avatar May 21 '22 10:05 pplonski

Hi pplonski, It works! Thanks for your help!

Tonywhitemin avatar May 22 '22 03:05 Tonywhitemin

Worked for me. @pplonski you rule.

JacobMarley avatar Jan 16 '23 15:01 JacobMarley