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!
Please sign in to leave a comment.
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?
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.
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.
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?
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!