Untitled
unknown
plain_text
11 days ago
6.0 kB
4
Indexable
Never
Traceback (most recent call last): File "c:\Users\Usuario\Desktop\projeto pyautogui\botpyautogui\app.py", line 46, in <module> coracao = pyautogui.locateCenterOnScreen('coracao.png',confidence=0.9) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Usuario\miniconda3\Lib\site-packages\pyautogui\__init__.py", line 172, in wrapper return wrappedFunction(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Usuario\miniconda3\Lib\site-packages\pyautogui\__init__.py", line 204, in locateCenterOnScreen return pyscreeze.locateCenterOnScreen(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Usuario\miniconda3\Lib\site-packages\pyscreeze\__init__.py", line 447, in locateCenterOnScreen coords = locateOnScreen(image, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Usuario\miniconda3\Lib\site-packages\pyscreeze\__init__.py", line 405, in locateOnScreen retVal = locate(image, screenshotIm, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Usuario\miniconda3\Lib\site-packages\pyscreeze\__init__.py", line 383, in locate points = tuple(locateAll(needleImage, haystackImage, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ retVal = locate(image, screenshotIm, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Usuario\miniconda3\Lib\site-packages\pyscreeze\__init__.py", line 383, in locate points = tuple(locateAll(needleImage, haystackImage, **kwargs)) retVal = locate(image, screenshotIm, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Usuario\miniconda3\Lib\site-packages\pyscreeze\__init__.py", line 383, in locate retVal = locate(image, screenshotIm, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ retVal = locate(image, screenshotIm, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ retVal = locate(image, screenshotIm, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Usuario\miniconda3\Lib\site-packages\pyscreeze\__init__.py", line 383, in locate retVal = locate(image, screenshotIm, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Usuario\miniconda3\Lib\site-packages\pyscreeze\__init__.py", line 383, in locate points = tuple(locateAll(needleImage, haystackImage, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Usuario\miniconda3\Lib\site-packages\pyscreeze\__init__.py", line 231, in _locateAll_opencv needleImage = _load_cv2(needleImage, grayscale) retVal = locate(image, screenshotIm, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Usuario\miniconda3\Lib\site-packages\pyscreeze\__init__.py", line 383, in locate points = tuple(locateAll(needleImage, haystackImage, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Usuario\miniconda3\Lib\site-packages\pyscreeze\__init__.py", line 231, in _locateAll_opencv needleImage = _load_cv2(needleImage, grayscale) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Usuario\miniconda3\Lib\site-packages\pyscreeze\__init__.py", line 193, in _load_cv2 raise IOError( retVal = locate(image, screenshotIm, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Usuario\miniconda3\Lib\site-packages\pyscreeze\__init__.py", line 383, in locate points = tuple(locateAll(needleImage, haystackImage, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Usuario\miniconda3\Lib\site-packages\pyscreeze\__init__.py", line 231, in _locateAll_opencv needleImage = _load_cv2(needleImage, grayscale) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ retVal = locate(image, screenshotIm, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Usuario\miniconda3\Lib\site-packages\pyscreeze\__init__.py", line 383, in locate points = tuple(locateAll(needleImage, haystackImage, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Usuario\miniconda3\Lib\site-packages\pyscreeze\__init__.py", line 231, in _locateAll_opencv needleImage = _load_cv2(needleImage, grayscale) File "C:\Users\Usuario\miniconda3\Lib\site-packages\pyscreeze\__init__.py", line 383, in locate points = tuple(locateAll(needleImage, haystackImage, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Usuario\miniconda3\Lib\site-packages\pyscreeze\__init__.py", line 231, in _locateAll_opencv needleImage = _load_cv2(needleImage, grayscale) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Usuario\miniconda3\Lib\site-packages\pyscreeze\__init__.py", line 231, in _locateAll_opencv needleImage = _load_cv2(needleImage, grayscale) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Usuario\miniconda3\Lib\site-packages\pyscreeze\__init__.py", line 193, in _load_cv2 needleImage = _load_cv2(needleImage, grayscale) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Usuario\miniconda3\Lib\site-packages\pyscreeze\__init__.py", line 193, in _load_cv2 raise IOError( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Usuario\miniconda3\Lib\site-packages\pyscreeze\__init__.py", line 193, in _load_cv2 raise IOError( File "C:\Users\Usuario\miniconda3\Lib\site-packages\pyscreeze\__init__.py", line 193, in _load_cv2 raise IOError( raise IOError( OSError: Failed to read coracao.png because file is missing, has improper permissions, or is an unsupported or invalid format PS C:\Users\Usuario>
Leave a Comment