Bug description:
Today I open my python(with turtle) file. But I can’t run. Because when I open, the system is running and I can’t stop. So I open a new python(with turtle) file. But I can’t see the output in tools. By the way, I also see on console:
Traceback (most recent call last):
File "/home/runner/Lesson-13-User-Defined-Functions/driver.py", line 13, in <module>
screen = turtle.Screen()
File "/nix/store/9kzgdmf4q5vxshisils7pzgc6342pcsy-python3-3.10.0/lib/python3.10/turtle.py", line 3663, in Screen
Turtle._screen = _Screen()
File "/nix/store/9kzgdmf4q5vxshisils7pzgc6342pcsy-python3-3.10.0/lib/python3.10/turtle.py", line 3679, in __init__
_Screen._root = self._root = _Root()
File "/nix/store/9kzgdmf4q5vxshisils7pzgc6342pcsy-python3-3.10.0/lib/python3.10/turtle.py", line 435, in __init__
TK.Tk.__init__(self)
File "/nix/store/9kzgdmf4q5vxshisils7pzgc6342pcsy-python3-3.10.0/lib/python3.10/tkinter/__init__.py", line 2299, in __init__
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: couldn't connect to display ":0"
repl process died unexpectedly: exit status 1
Expected vs Current Behavior:
Expected: I can run my file and I can see my output.
Current Behavior: I can’t run my file and I can’t see my output.
Steps to reproduce:
- Open a python(with turtle) file or create a python(with turtle) file.
- Type some code.
- Bug appear.
Bug appears at this link:
main.py - Lesson 13 - User-Defined Functions - Replit
Screenshot(s)/Screen Recording:
Browser/OS/Device: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36 Edg/111.0.1661.62
Replit Profile: https://replit.com/@remypeng