Open lyh1107 opened 2 years ago
안녕하세요. 1-grid-world 1-policy-iteration 코드 실행 중 다음과 같은 에러가 발생하여 질문드립니다.
if name == "main": env = Env() policy_iteration = PolicyIteration(env) grid_world = GraphicDisplay(policy_iteration) grid_world.mainloop() Traceback (most recent call last): File "C:\Users\84484\AppData\Local\Programs\Python\Python39\lib\code.py", line 90, in runcode exec(code, self.locals) File "", line 109, in File "C:\Users\84484\PycharmProjects\pythonProject\venv\environment.py", line 30, in init self.canvas = self._build_canvas() File "C:\Users\84484\PycharmProjects\pythonProject\venv\environment.py", line 68, in _build_canvas self.rectangle = canvas.create_image(50, 50, image=self.shapes[0]) File "C:\Users\84484\AppData\Local\Programs\Python\Python39\lib\tkinter__init.py", line 2790, in create_image return self._create('image', args, kw) File "C:\Users\84484\AppData\Local\Programs\Python\Python39\lib\tkinter\init__.py", line 2776, in _create return self.tk.getint(self.tk.call( _tkinter.TclError: image "pyimage89" doesn't exist
확인 한번 해주시면 감사하겠습니다.
안녕하세요. 1-grid-world 1-policy-iteration 코드 실행 중 다음과 같은 에러가 발생하여 질문드립니다.
if name == "main": env = Env() policy_iteration = PolicyIteration(env) grid_world = GraphicDisplay(policy_iteration) grid_world.mainloop() Traceback (most recent call last): File "C:\Users\84484\AppData\Local\Programs\Python\Python39\lib\code.py", line 90, in runcode exec(code, self.locals) File "", line 109, in
File "C:\Users\84484\PycharmProjects\pythonProject\venv\environment.py", line 30, in init
self.canvas = self._build_canvas()
File "C:\Users\84484\PycharmProjects\pythonProject\venv\environment.py", line 68, in _build_canvas
self.rectangle = canvas.create_image(50, 50, image=self.shapes[0])
File "C:\Users\84484\AppData\Local\Programs\Python\Python39\lib\tkinter__init.py", line 2790, in create_image
return self._create('image', args, kw)
File "C:\Users\84484\AppData\Local\Programs\Python\Python39\lib\tkinter\init__.py", line 2776, in _create
return self.tk.getint(self.tk.call(
_tkinter.TclError: image "pyimage89" doesn't exist
확인 한번 해주시면 감사하겠습니다.