2

I am getting a "Tlc error: no display name...etc" when I try to open python scripts in idle using Cygwin. I type the following:

idle python_script.py

Do I need to install another Cygwin package to make this work? Windows 7- recently installed. Thanks!!:)

makansij
  • 9,303
  • 37
  • 105
  • 183
  • I should mention that idle will launch when I run the idle files using cygstart: For example, `cygstart idle.bat` will launch idle. – makansij Jul 19 '14 at 23:39
  • However, I run `idle` through git bash, and it works just fine. ?? – makansij Aug 04 '14 at 16:30
  • I have no experience with cygwin on windows. Did you compile Python yourself on cygwin? Is there any reason to not use the PSF windows installer? – Terry Jan Reedy Sep 15 '14 at 07:02

1 Answers1

0

The error means that the program cannot find a display to show the window on. To solve that you need to install X Windows system and then set the display environment variable to:

export DISPLAY=:0.0

See this answer for more details: https://stackoverflow.com/a/9418800/342473

Community
  • 1
  • 1
Mariusz Jamro
  • 30,615
  • 24
  • 120
  • 162