pythonbacktrace
Verfasst: Montag 7. Februar 2022, 22:14
ich habe ein problem ich versteh nicht was ist falsch gemacht habe könnt ihr mir bitte helfen
Das ist der code und es kommt das als backtrace
Traceback (most recent call last):
File "C:\Users\egeme\minecraft_move\move.py", line 20, in <module>
if find.autoaccept() == 1:
File "C:\Users\egeme\minecraft_move\move.py", line 11, in autoaccept
position = p.locateOnScreen(self.image,confidence=.7)
File "C:\Users\egeme\AppData\Local\Programs\Python\Python310-32\lib\site-packages\pyautogui\__init__.py", line 175, in wrapper
return wrappedFunction(*args, **kwargs)
File "C:\Users\egeme\AppData\Local\Programs\Python\Python310-32\lib\site-packages\pyautogui\__init__.py", line 213, in locateOnScreen
return pyscreeze.locateOnScreen(*args, **kwargs)
File "C:\Users\egeme\AppData\Local\Programs\Python\Python310-32\lib\site-packages\pyscreeze\__init__.py", line 372, in locateOnScreen
screenshotIm = screenshot(region=None) # the locateAll() function must handle cropping to return accurate coordinates, so don't pass a region here.
File "C:\Users\egeme\AppData\Local\Programs\Python\Python310-32\lib\site-packages\pyscreeze\__init__.py", line 144, in wrapper
raise PyScreezeException('The Pillow package is required to use this function.')
pyscreeze.PyScreezeException: The Pillow package is required to use this function.
[Finished in 2.678s]
ich weiß nicht was falsch ist.
Code: Alles auswählen
import pyautogui as p
class Find:
def __init__(self , image , speed):
self.image = image
self.speed = speed
p.FAILSAFE = True
def autoaccept (self):
while True:
position = p.locateOnScreen(self.image,confidence=.7)
p.moveTo(position(0)+100,position(1)+25)
p.singleClick()
return 1
if __name__ == "__main__":
find = Find(r'C:\Users\egeme\minecraft_move\leagueautoaccept.png' , speed=.001)
while True:
if find.autoaccept() == 1:
break
Traceback (most recent call last):
File "C:\Users\egeme\minecraft_move\move.py", line 20, in <module>
if find.autoaccept() == 1:
File "C:\Users\egeme\minecraft_move\move.py", line 11, in autoaccept
position = p.locateOnScreen(self.image,confidence=.7)
File "C:\Users\egeme\AppData\Local\Programs\Python\Python310-32\lib\site-packages\pyautogui\__init__.py", line 175, in wrapper
return wrappedFunction(*args, **kwargs)
File "C:\Users\egeme\AppData\Local\Programs\Python\Python310-32\lib\site-packages\pyautogui\__init__.py", line 213, in locateOnScreen
return pyscreeze.locateOnScreen(*args, **kwargs)
File "C:\Users\egeme\AppData\Local\Programs\Python\Python310-32\lib\site-packages\pyscreeze\__init__.py", line 372, in locateOnScreen
screenshotIm = screenshot(region=None) # the locateAll() function must handle cropping to return accurate coordinates, so don't pass a region here.
File "C:\Users\egeme\AppData\Local\Programs\Python\Python310-32\lib\site-packages\pyscreeze\__init__.py", line 144, in wrapper
raise PyScreezeException('The Pillow package is required to use this function.')
pyscreeze.PyScreezeException: The Pillow package is required to use this function.
[Finished in 2.678s]
ich weiß nicht was falsch ist.