HI Team,
As am unable to run python code in both google colabs and Visual studio, getting below error tried all basic trouble shooting which has not fixed the issue.
request you to kindly help.
Platform: windows
Error:
As am unable to run python code in both google colabs and Visual studio, getting below error tried all basic trouble shooting which has not fixed the issue.
request you to kindly help.
Platform: windows
Error:
Error:AttributeError Traceback (most recent call last)
<ipython-input-22-2a3693dff072> in <cell line: 83>()
81
82 # Create the main window
---> 83 root = tk.tk()
84 root.title("Historical Event Analysis")
85
AttributeError: module 'tkinter' has no attribute 'tk'
/usr/lib/python3.10/tkinter/__init__.py in __init__(self, screenName, baseName, className, useTk, sync, use)
2297 baseName = baseName + ext
2298 interactive = False
-> 2299 self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
2300 if useTk:
2301 self._loadtk()
TclError: no display name and no $DISPLAY environment variable