質問編集履歴

2

エラーの追加

2023/05/27 02:10

投稿

youa
youa

スコア5

test CHANGED
File without changes
test CHANGED
@@ -8,6 +8,19 @@
8
8
 
9
9
  ### 発生している問題・エラーメッセージ
10
10
  ```
11
+ Traceback (most recent call last):
12
+ File "/Users/・・/main.py", line 4, in <module>
13
+ print(pyautogui.locateCenterOnScreen("icon.png", confidence=0.9))
14
+ File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyautogui/__init__.py", line 172, in wrapper
15
+ return wrappedFunction(*args, **kwargs)
16
+ File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyautogui/__init__.py", line 204, in locateCenterOnScreen
17
+ return pyscreeze.locateCenterOnScreen(*args, **kwargs)
18
+ File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyscreeze/__init__.py", line 420, in locateCenterOnScreen
19
+ coords = locateOnScreen(image, **kwargs)
20
+ File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyscreeze/__init__.py", line 375, in locateOnScreen
21
+ screenshotIm = screenshot(
22
+ File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyscreeze/__init__.py", line 527, in _screenshot_osx
23
+ if tuple(PIL__version__) < (6, 2, 1):
11
24
  TypeError: '<' not supported between instances of 'str' and 'int'
12
25
  ```
13
26
 

1

)を追加

2023/05/27 01:49

投稿

youa
youa

スコア5

test CHANGED
File without changes
test CHANGED
@@ -15,7 +15,7 @@
15
15
  ```Python3
16
16
  import pyautogui
17
17
 
18
- print(pyautogui.locateCenterOnScreen("icon.png", confidence=0.9)
18
+ print(pyautogui.locateCenterOnScreen("icon.png", confidence=0.9))
19
19
  ```
20
20
 
21
21
  ### 試したこと