IDE error when running script in python console

Answered

Hello,

When I try to run script in python console after launching IDE (python console tab is not active in my IDE), I get such error: 

22:02 Error running 'TestClass'
EventQueue.isDispatchThread()=false Toolkit.getEventQueue()=com.intellij.ide.IdeEventQueue@1bf6a779
Current thread: Thread[ApplicationImpl pooled thread 40,4,Idea Thread Group] 1887079558
SystemEventQueueThread: Thread[AWT-EventQueue-0,6,Idea Thread Group] 664302019

This error occurs as a pop-up window in IDE and if I open python console tab and run script again - everything is fine. 

Could you please help me how I can solve this issue?
Re-installing did not solved it.

Thanks!

2
5 comments

Hi,

Is it reproducible in a brand new project with a new virtualenv?
Does it happen only when you first open IDE and try to run a file in Python Console?

0

Hello Sergey,

Yes. the issue persists in a newly create env and using new venv, giving the same error.

In 99% cases, yes, it happens when I open IDE for the first time. Consequent runs are good.

0

May I ask you to file an issue to https://youtrack.jetbrains.com/issues/PY and attach your idea.log file from Help | Show Log in...?
We'll look into that.

0

Btw, I remembered this bug https://youtrack.jetbrains.com/issue/PY-46114 which seems to be similar, but you don't attach to the debugger, right?

0

Mentioned issue is similar indeed. Yes, I my case I do not attach to debugger.

Issue is created: https://youtrack.jetbrains.com/issue/PY-46734 (log file attached inside)
I hope I provided enough information for investigation. 

Thank you!

0

Please sign in to leave a comment.