Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bot stuck #5

Open
prbreezy opened this issue Mar 8, 2024 · 0 comments
Open

Bot stuck #5

prbreezy opened this issue Mar 8, 2024 · 0 comments

Comments

@prbreezy
Copy link

prbreezy commented Mar 8, 2024

Hi my bot is stuck at this stage:

2024-03-08 11:11:05,293:DEBUG:utils.logger - Autoroller handler initialized 2024-03-08 11:11:05,319:DEBUG:utils.logger - [CACHE] Loaded cache from image_cache.pkl. 2024-03-08 11:11:05,320:DEBUG:utils.logger - Cache initialized. 2024-03-08 11:11:05,321:INFO:utils.logger - Starting... 2024-03-08 11:11:05,324:DEBUG:utils.logger - [CACHE] Caching C:\git\monopolygobot-main\images\in-home-icon.png... Exception in thread playerinfo.in_home_status: Traceback (most recent call last): File "C:\Python311\Lib\threading.py", line 1045, in _bootstrap_inner self.run() File "C:\Python311\Lib\threading.py", line 982, in run self._target(*self._args, **self._kwargs) File "C:\git\monopolygobot-main\utils\player_info.py", line 186, in in_home_status_thread in_home_location = ocr_utils.find(in_home_image) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\git\monopolygobot-main\utils\ocr_utils.py", line 52, in find screenshot = ImageGrab.grab( ^^^^^^^^^^^^^^^ File "C:\Python311\Lib\site-packages\PIL\ImageGrab.py", line 63, in grab im = im.crop((left - x0, top - y0, right - x0, bottom - y0)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Python311\Lib\site-packages\PIL\Image.py", line 1201, in crop raise ValueError(msg) ValueError: Coordinate 'right' is less than 'left'

Any idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant