MehulKhanna / PokeGrinder

An Auto-Grinding Bot for PokéMeow with Slash Commands! With a free Captcha Solver!
MIT License
10 stars 6 forks source link

Auto Captcha no longer working #42

Closed AloW0304 closed 7 months ago

AloW0304 commented 8 months ago

Unsure as to why the captcha solver isn't working anymore as it has been over the past few days. But now however whenever a captcha comes up I get this error message: Downloading https://cdn.discordapp.com/attachments/970646862887530540/1205690833714810970/1491468769118.png to '1491468769118.png'... ⚠️ Download failure, retrying 1/3 https://cdn.discordapp.com/attachments/970646862887530540/1205690833714810970/1491468769118.png... ################################################################################################################################################################# 100.0% 2024-02-10 12:44:56 ERROR discord.client Ignoring exception in on_message Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/discord/client.py", line 600, in _run_event await coro(*args, *kwargs) File "/Users/Destop/PokeGrinder-2.4 2/cogs/captcha.py", line 32, in on_message solve_captcha(message.embeds[0].image.url.split("?")[0]) File "/Users/Desktop/PokeGrinder-2.4 2/modules/captcha_solver.py", line 8, in solve_captcha result = model.predict( ^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/ultralytics/engine/model.py", line 406, in predict return self.predictor.predict_cli(source=source) if is_cli else self.predictor(source=source, stream=stream) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/ultralytics/engine/predictor.py", line 204, in call return list(self.stream_inference(source, model, args, **kwargs)) # merge list of Result into one ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/torch/utils/_contextlib.py", line 35, in generator_context response = gen.send(None) ^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/ultralytics/engine/predictor.py", line 272, in stream_inference for batch in self.dataset: File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/ultralytics/data/loaders.py", line 347, in next raise FileNotFoundError(f"Image Not Found {path}") FileNotFoundError: Image Not Found /Users/Desktop/PokeGrinder-2.4 2/1491468769118.png

however the captcha file is always downloaded into the folder (PokeGrinder-2.4 2) so I'm unsure as to what has gone wrong.

AloW0304 commented 7 months ago

Any ideas? I've been trying to problem-solve over the past day, but nothing seems to make a difference. image as seen in the image, image png's clog up the folder since they can't be detected to be solved or deleted. I've since deleted and redownloaded V2.4 and tried on a different device with no success.

MehulKhanna commented 7 months ago

Any ideas? I've been trying to problem-solve over the past day, but nothing seems to make a difference. image as seen in the image, image png's clog up the folder since they can't be detected to be solved or deleted. I've since deleted and redownloaded V2.4 and tried on a different device with no success.

In the past some users have had issues with python not being able to access other files. I don't have a mac so I cannot reproduce this. But I can make it store the image in memory instead of on disk in the next commit.

MehulKhanna commented 7 months ago

Any ideas? I've been trying to problem-solve over the past day, but nothing seems to make a difference. image as seen in the image, image png's clog up the folder since they can't be detected to be solved or deleted. I've since deleted and redownloaded V2.4 and tried on a different device with no success.

I have found a possible fix for this. I will commit after more testing.

MehulKhanna commented 7 months ago

Please try the latest release. This must be fixed now.

AloW0304 commented 7 months ago

working great so far, I'll keep running and let you know how it goes.