Vinyzu / DiscordGenerator

Dislock, the most advanced Discord Browser Generator. Powered by hCaptcha Solving AI.
GNU General Public License v3.0
217 stars 56 forks source link

Crashes when solving captcha #91

Open thorbn opened 2 years ago

thorbn commented 2 years ago

Hello, the Gen seems to crash when it tries to solve a captcha. It just opens another browser.


[INFO] - Line 31 - initialize() - Spawned Browser successfully [ERROR] - Line 179 - generate_unclaimed() - Catched Exception, trying to save Token anyways... Error: Traceback (most recent call last): File "C:\Users\Thorb\Downloads\DiscordGenerator-main\DiscordGenerator-main\main.py", line 109, in generate_unclaimed await self.page.solve_hcaptcha() File "C:\Users\Thorb\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\botright\modules\playwright_mock\page.py", line 334, in solve_mocker return await hcaptcha.hCaptcha.solve_hcaptcha(page, rqdata=rqdata) File "C:\Users\Thorb\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\botright\modules\hcaptcha.py", line 189, in solve_hcaptcha return await hCaptcha.solve_captcha(page, checkbox) File "C:\Users\Thorb\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\botright\modules\hcaptcha.py", line 87, in solve_captcha challenger = ArmorCaptcha(dir_workspace=DIR_CHALLENGE, dir_model=DIR_MODEL, lang='en', debug=True,path_objects_yaml=PATH_OBJECTS_YAML, onnx_prefix="yolov5s6") File "C:\Users\Thorb\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\botright\modules\hcaptcha_challenger\core.py", line 131, in init self.pluggable_onnx_models = self.pom_handler.overload( File "C:\Users\Thorb\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\botright\modules\hcaptcha_challenger\solutions\resnet.py", line 203, in overload return { File "C:\Users\Thorb\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\botright\modules\hcaptcha_challenger\solutions\resnet.py", line 204, in finger: FingersOfTheGolderOrder(finger, dir_model, path_rainbow) File "C:\Users\Thorb\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\botright\modules\hcaptcha_challenger\solutions\resnet.py", line 93, in init super().init(onnx_prefix, f"{onnx_prefix}(ResNet)_model", dir_model, path_rainbow) File "C:\Users\Thorb\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\botright\modules\hcaptcha_challenger\solutions\resnet.py", line 41, in init self.net = cv2.dnn.readNetFromONNX(self.onnx_model["path"]) cv2.error: OpenCV(4.5.5) D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\onnx\onnx_importer.cpp:199: error: (-210:Unsupported format or combination of formats) Failed to parse ONNX model: C:\Users\Thorb\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\botright\modules\hcaptcha_challenger\model\porcelain_teacup.onnx in function 'cv::dnn::dnn4_v20211220::ONNXImporter::ONNXImporter'

[INFO] - Line 31 - initialize() - Spawned Browser successfully [ERROR] - Line 179 - generate_unclaimed() - Catched Exception, trying to save Token anyways...


Anything I can do about this?