Detergent13 / tft-bot

Automate Teamfight Tactics (TFT) for token/mission farming. Updated for Set 11!
GNU Affero General Public License v3.0
81 stars 45 forks source link

AttributeError: 'NoneType' object has no attribute 'shape' when starting the tft-bot #54

Closed fittwitt closed 2 years ago

fittwitt commented 2 years ago

Here is the full output. Developed by:


| \ | | | | | | | | _| | _ _ | | | | | |/ \ / _ \ '/ ` |/ \ ' | | | || | / || / | | (| | / | | | | |____/ _|_\|| _, |_|| ||__| _/ | |/

Welcome! You're running Detergent's TFT bot. Please feel free to ask questions or contribute at https://github.com/Detergent13/tft-bot Bot started, queuing up! Traceback (most recent call last): File "C:\Users\gabby\Downloads\tft-bot-main\tft-bot-main\tft.py", line 205, in queue() File "C:\Users\gabby\Downloads\tft-bot-main\tft-bot-main\tft.py", line 63, in queue if onscreen("./captures/tft logo.png"): File "C:\Users\gabby\Downloads\tft-bot-main\tft-bot-main\tft.py", line 22, in onscreen return search(path, precision)[0] != -1 File "C:\ProgramData\Anaconda3\lib\site-packages\python_imagesearch\imagesearch.py", line 122, in imagesearch template.shape[::-1] AttributeError: 'NoneType' object has no attribute 'shape'****

fittwitt commented 2 years ago

Setting the working directory to the correct folder fixed this issue.