質問編集履歴
2
対応後のエラーの追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -155,7 +155,21 @@
|
|
155
155
|
image = Image.open(cStringIO.StringIO(screen))
|
156
156
|
を
|
157
157
|
image = Image.open(cStringIO.StringIO(screen))
|
158
|
-
に書き換えました。
|
158
|
+
に書き換えたら、以下のエラーが表示されました。
|
159
|
+
```
|
160
|
+
{'dir': 'collection.media', 'js_before_save': 'before_scroll.js', 'force_save': False, 'prefix': 'google-img--', 'window': '720x720', 'engine': 'google', 'show': False, 'sleep': 1.0}
|
161
|
+
sample.tsv: start
|
162
|
+
Traceback (most recent call last):
|
163
|
+
File "bulk-screen-capture.py", line 120, in <module>
|
164
|
+
main()
|
165
|
+
File "bulk-screen-capture.py", line 117, in main
|
166
|
+
retrieve_snapshot_for_words(driver, get_words_from_file(file))
|
167
|
+
File "bulk-screen-capture.py", line 71, in retrieve_snapshot_for_words
|
168
|
+
save_snapshot(driver, word, idx)
|
169
|
+
File "bulk-screen-capture.py", line 58, in save_snapshot
|
170
|
+
image = Image.open(cStringIO.StringIO(screen))
|
171
|
+
TypeError: initial_value must be str or None, not bytes
|
172
|
+
```
|
159
173
|
|
160
174
|
ここにより詳細な情報を記載してください。
|
161
175
|
マシン環境はm1macbookです。
|
1
マシン環境とpythonのversionの追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -158,6 +158,8 @@
|
|
158
158
|
に書き換えました。
|
159
159
|
|
160
160
|
ここにより詳細な情報を記載してください。
|
161
|
+
マシン環境はm1macbookです。
|
162
|
+
pythonのversionは3.8.2です
|
161
163
|
pip listは
|
162
164
|
Package Version
|
163
165
|
---------- -------
|