trsvchn / coco-viewer

Minimalistic COCO Dataset Viewer in Tkinter
MIT License
185 stars 59 forks source link

no display name and no $DISPLAY environment variable #66

Closed Suzansb closed 1 year ago

Suzansb commented 2 years ago

Showing the following error: INFO: Starting... Traceback (most recent call last): File "./coco-viewer/cocoviewer.py", line 898, in <module> main() File "./coco-viewer/cocoviewer.py", line 877, in main root = tk.Tk() File "/usr/lib/python3.7/tkinter/__init__.py", line 2023, in __init__ self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use) _tkinter.TclError: no display name and no $DISPLAY environment variable

trsvchn commented 2 years ago

Hello @Suzansb!

Tkinter sees no display/window system, and can't start the GUI.

Do you run cocoviewer over ssh?

if so, use ssh with the -X flag.