Untitled

mail@pastecode.io avatar
unknown
plain_text
24 days ago
3.0 kB
12
Indexable
Never
File "e:\Treinamento - Python\Python Automação\Mod.4 Auto\appauto4.13.py", line 14, in <module>
    captcha = pyautogui.locateCenterOnScreen('google1.png')
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\PYTHON\Lib\site-packages\pyautogui\__init__.py", line 172, in wrapper
    return wrappedFunction(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\PYTHON\Lib\site-packages\pyautogui\__init__.py", line 204, in locateCenterOnScreen    
    return pyscreeze.locateCenterOnScreen(*args, **kwargs)
  File "E:\PYTHON\Lib\site-packages\pyscreeze\__init__.py", line 447, in locateCenterOnScreen
    coords = locateOnScreen(image, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\PYTHON\Lib\site-packages\pyscreeze\__init__.py", line 405, in locateOnScreen
    retVal = locate(image, screenshotIm, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\PYTHON\Lib\site-packages\pyscreeze\__init__.py", line 383, in locate
    points = tuple(locateAll(needleImage, haystackImage, **kwargs))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\PYTHON\Lib\site-packages\pyscreeze\__init__.py", line 282, in _locateAll_pillow
    needleFileObj = open(needleImage, 'rb')
                    ^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'google1.png'
PS E:\Treinamento - Python> & E:/PYTHON/python.exe "e:/Treinamento - Python/Python Automação/Mod.4 Auto/appauto4.13.py"
Traceback (most recent call last):
  File "e:\Treinamento - Python\Python Automação\Mod.4 Auto\appauto4.13.py", line 14, in <module>
    captcha = pyautogui.locateCenterOnScreen('google1.png')
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\PYTHON\Lib\site-packages\pyautogui\__init__.py", line 172, in wrapper
    return wrappedFunction(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\PYTHON\Lib\site-packages\pyautogui\__init__.py", line 204, in locateCenterOnScreen
    return pyscreeze.locateCenterOnScreen(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\PYTHON\Lib\site-packages\pyscreeze\__init__.py", line 447, in locateCenterOnScreen
    coords = locateOnScreen(image, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\PYTHON\Lib\site-packages\pyscreeze\__init__.py", line 405, in locateOnScreen
    retVal = locate(image, screenshotIm, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\PYTHON\Lib\site-packages\pyscreeze\__init__.py", line 383, in locate
    points = tuple(locateAll(needleImage, haystackImage, **kwargs))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\PYTHON\Lib\site-packages\pyscreeze\__init__.py", line 282, in _locateAll_pillow
    needleFileObj = open(needleImage, 'rb')
                    ^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'google1.png'
Leave a Comment