0

I can't get idle to run on my linux system. I get the following:

Traceback (most recent call last):
  File "/usr/bin/idle3", line 5, in <module>
    main()
  File "/usr/lib/python3.5/idlelib/PyShell.py", line 1544, in main
    root = Tk(className="Idle")
  File "/usr/lib/python3.5/tkinter/__init__.py", line 1871, in __init__
    self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: no display name and no $DISPLAY environment variable
Kulfy
  • 17,696

1 Answers1

0

Open a terminal and run this command :export DISPLAY=:0.0

For more details, you can read this answer

GGJON
  • 156
  • Hi, I tried it but still having issues. See below: aellis@JBCOSYSLOG:/$ idle Traceback (most recent call last): File "/usr/bin/idle", line 5, in main() File "/usr/lib/python2.7/idlelib/PyShell.py", line 1553, in main root = Tk(className="Idle") File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1818, in init self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use) _tkinter.TclError: couldn't connect to display "0.0" aellis@JBCOSYSLOG:/$ – AndrewE Mar 19 '19 at 14:40
  • Could you try export DISPLAY=:0 – GGJON Mar 20 '19 at 10:44