On Tue, Apr 23, 2013 at 2:03 PM, Steven D'Aprano <steve+comp.lang.pyt...@pearwood.info> wrote: > On Tue, 23 Apr 2013 10:36:38 +1000, Chris Angelico wrote: > >> On Tue, Apr 23, 2013 at 10:22 AM, Steven D'Aprano >> <steve+comp.lang.pyt...@pearwood.info> wrote: >>> It's only when I actually try to do something that requires an X >>> display that it will fail. I won't show the entire traceback, because >>> it is long and not particularly enlightening, but the final error >>> message explains exactly why it isn't working: >>> >>> _tkinter.TclError: no display name and no $DISPLAY environment variable >> >> You presumably have a system to test this on. Can you try using ssh -X >> to get to it, and then retry that action? It looks like you actually >> have everything you need, just no display... which is exactly what you'd >> get if you ssh to something that has a real GUI. Not a dependency >> problem. > > I didn't say it was a dependency problem. I'm just demonstrating that it > is possible for tkinter code to fail even if all the dependencies are > met; and on the other hand, it is useful to be able to import tkinter > even if you cannot display any tkinter windows.
Sure. But I don't know that the situation you're seeing is the same as the one you'd see if you install tkinter without tk. ChrisA -- http://mail.python.org/mailman/listinfo/python-list