質問編集履歴
1
エラー内容の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,6 +1,17 @@
|
|
1
1
|
globを使ってパスを指定しフォルダ内の画像をまとめて512*256に切り取るプログラムを書きたかったのですが,以下のようなエラーが出てしまい困っています.おそらくfor文がよくないのかなとは思っているのですが...
|
2
2
|
|
3
|
+
> エラー内容
|
4
|
+
File "c:\Users\Document\pic_operate\cut.py", line 1, in <module>
|
5
|
+
from PIL import Image
|
6
|
+
File "C:\Users\AppData\Local\Programs\Python\Python39\lib\site-packages\PIL\Image.py", line 44, in
|
7
|
+
<module>
|
8
|
+
import defusedxml.ElementTree as ElementTree
|
9
|
+
File "C:\Users\AppData\Local\Programs\Python\Python39\lib\site-packages\defusedxml\ElementTree.py", line 12, in <module>
|
10
|
+
from xml.etree.ElementTree import ParseError
|
11
|
+
File "C:\Users\AppData\Local\Programs\Python\Python39\lib\xml\etree\ElementTree.py", line 2085, in
|
12
|
+
<module>
|
13
|
+
from _elementtree import *
|
3
|
-
|
14
|
+
AttributeError: module 'copy' has no attribute 'deepcopy'
|
4
15
|
|
5
16
|
```cut.py
|
6
17
|
from PIL import Image
|