質問編集履歴

1

実行したコードとエラーメッセージの追加

2018/01/31 07:13

投稿

hijiri_selfwild
hijiri_selfwild

スコア5

test CHANGED
File without changes
test CHANGED
@@ -2,4 +2,16 @@
2
2
 
3
3
  環境はMacOSのJupyter Notebookなのですが、テキストではWindowsのVisual Studio Codeを使う前提です。
4
4
 
5
- Macでのパスの問題でしょうか?
5
+ テキストの画像をデスクトップに保存しているのですが、Macでのパスの問題でしょうか?
6
+
7
+
8
+
9
+ images = [tkinter.PhotoImage(file="/Users/○○/Desktop/12saipython/img6/chap6-mapfield.png")]
10
+
11
+
12
+
13
+ と入力実行すると、次のエラーメッセージが出ました。
14
+
15
+
16
+
17
+ TclError: couldn't recognize data in image file "/Users/○○/Desktop/12saipython/img6/chap6-mapfield.png"