Opened 3 years ago

Last modified 3 years ago

#64707 closed defect

_tkinter.TclError: no display name and no $DISPLAY environment variable — at Initial Version

Reported by: programmingkidx Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: py-tkinter

Description

I installed the py39-tkinter port and tried to run idle. What happened is I saw this error message in Python3.9:

Traceback (most recent call last):

File "/opt/local/bin/idle", line 5, in <module>

main()

File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/idlelib/pyshell.py", line 1490, in main

root = Tk(className="Idle")

File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/tkinter/init.py", line 2270, in init

self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)

_tkinter.TclError: no display name and no $DISPLAY environment variable

My info:

Core i7 MacBook Pro

Mac OS 10.14.6

Python 3.9

Change History (0)

Note: See TracTickets for help on using tickets.