Pycharm remote interpreter tkinter error : no display name and no $DISPLAY environment variable
I'm trying to run a python script in a remote server via Pycharm.
When I try to display a dialogbox via tkinter I get an error “no display name and no $DISPLAY environment variable”
I see many answers that say I need to set the $DISPLAY variable in the configuration. I tried setting the DISPLAY variable to 0 and also localhost 10.0 in the configuration for he script, but unable to resolve the error.
How do I resolve this?
Please sign in to leave a comment.
Hi, we had some similar reports, but they're pretty old - PY-28816 and your case is probably different, so let's go ahead and move this one to YouTrack as we need additional details, such as a code snippet to try to replicate the behavior and if you're using a remote interpreter or a remote debug server. Please also make sure to provide the IDE UI logs from Help | Collect Logs and Diagnostic Data
Please create it here: https://youtrack.jetbrains.com/newIssue?project=PY