will7200 / Yugioh-bot

Bot for Yugioh Duel Links via Nox and Steam
MIT License
58 stars 9 forks source link

OpenCV Assertion and bin\adb.exe is not recognized as an internal or external command, Any Help? #74

Open LawCashh opened 5 years ago

LawCashh commented 5 years ago

$ pythonw main.py gui -s C:\Users\LawCash\AppData\Local\Programs\Python\Python36\lib\site-packages\h5py_ _init__.py:36: FutureWarning: Conversion of the second argument of issubdtype fr om float to np.floating is deprecated. In future, it will be treated as np. float64 == np.dtype(float).type. from ._conv import register_converters as _register_converters 2019-01-03 21:15:03 - INFO - bot - APScheduler failed to schedule run, forcing r un now 2019-01-03 21:15:03 - DEBUG - bot - Value stop modified 2019-01-03 21:15:03 - INFO - apscheduler.scheduler - Scheduler started 2019-01-03 21:15:03 - DEBUG - bot - Value run_now modified 2019-01-03 21:15:03 - INFO - bot - Forcing run now 2019-01-03 21:15:03 - DEBUG - bot - Value next_run_at modified to 2019-01-03 21: 15:04.374644 2019-01-03 21:15:03 - INFO - apscheduler.scheduler - Added job "DuelLinkRunTime. in_main" to job store "default" 2019-01-03 21:15:03 - INFO - bot - Next run at 2019-01-03T21:15:04.374644 2019-01-03 21:15:03 - INFO - apscheduler.scheduler - Added job "DuelLinkRunTime. in_main" to job store "default" 2019-01-03 21:15:03 - DEBUG - bot - Value run_now modified 2019-01-03 21:15:03 - INFO - apscheduler.executors.default - Running job "DuelLi nkRunTime.in_main (trigger: date[2019-01-03 21:15:03 CET], next run at: 2019-01- 03 21:15:03 CET)" (scheduled at 2019-01-03 21:15:03.690000+01:00) 2019-01-03 21:15:03 - INFO - apscheduler.scheduler - Removed job cron_main_force 2019-01-03 21:15:03 - DEBUG - bot - Value last_runat modified to 2019-01-03 21: 15:03.692929 2019-01-03 21:15:03 - INFO - bot.provider.Nox - Checking for Start Screen 2019-01-03 21:15:03 - INFO - bot.provider.Nox - Waiting for DuelLinks Landing Pa ge 'bin\adb.exe' is not recognized as an internal or external command, operable program or batch file. OpenCV Error: Assertion failed (!buf.empty() && buf.isContinuous()) in cv::imdec ode, file C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp, line 637 2019-01-03 21:15:04 - INFO - apscheduler.executors.default - Running job "DuelLi nkRunTime.in_main (trigger: date[2019-01-03 21:15:04 CET], next run at: 2019-01- 03 21:15:04 CET)" (scheduled at 2019-01-03 21:15:04.374644+01:00) 2019-01-03 21:15:04 - INFO - apscheduler.scheduler - Removed job cron_main_at_20 19-01-03T21:15:04.374644 2019-01-03 21:15:04 - DEBUG - bot - Value last_runat modified to 2019-01-03 21: 15:04.392536 2019-01-03 21:15:04 - INFO - bot.provider.Nox - Checking for Start Screen 2019-01-03 21:15:04 - INFO - bot.provider.Nox - Waiting for DuelLinks Landing Pa ge 'bin\adb.exe' is not recognized as an internal or external command, operable program or batch file. OpenCV Error: Assertion failed (!buf.empty() && buf.isContinuous()) in cv::imdec ode, file C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp, line 637 'bin\adb.exe' is not recognized as an internal or external command, operable program or batch file. OpenCV Error: Assertion failed (!buf.empty() && buf.isContinuous()) in cv::imdec ode, file C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp, line 637 'bin\adb.exe' is not recognized as an internal or external command, operable program or batch file. OpenCV Error: Assertion failed (!buf.empty() && buf.isContinuous()) in cv::imdec ode, file C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp, line 637 'bin\adb.exe' is not recognized as an internal or external command, operable program or batch file. OpenCV Error: Assertion failed (!buf.empty() && buf.isContinuous()) in cv::imdec ode, file C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp, line 637 'bin\adb.exe' is not recognized as an internal or external command, operable program or batch file. OpenCV Error: Assertion failed (!buf.empty() && buf.isContinuous()) in cv::imdec ode, file C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp, line 637 'bin\adb.exe' is not recognized as an internal or external command, operable program or batch file. OpenCV Error: Assertion failed (!buf.empty() && buf.isContinuous()) in cv::imdec ode, file C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp, line 637 'bin\adb.exe' is not recognized as an internal or external command, operable program or batch file. OpenCV Error: Assertion failed (!buf.empty() && buf.isContinuous()) in cv::imdec ode, file C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp, line 637 2019-01-03 21:15:07 - DEBUG - bot.provider.Nox - LOOKING FOR BACK BUTTON, HIGH C ORRERLATION 'bin\adb.exe' is not recognized as an internal or external command, operable program or batch file. OpenCV Error: Assertion failed (!buf.empty() && buf.isContinuous()) in cv::imdec ode_, file C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp, line 637 2019-01-03 21:15:07 - DEBUG - bot - duel_links_runtime.py 43 7 2019-01-03 21:15:07 - DEBUG - bot - Traceback (most recent call last): File "C:\Users\LawCash\Yugioh-bot\bot\duel_linksruntime.py", line 437, in in main provider.compare_with_back_button() File "C:\Users\LawCash\Yugioh-bot\bot\providers\nox\nox.py", line 193, in comp are_with_back_button img = self.get_img_from_screen_shot() File "C:\Users\LawCash\Yugioh-bot\bot\providers\actions.py", line 41, in get_i mg_from_screen_shot img = cv2.imdecode(nparr, cv2.IMREADCOLOR) cv2.error: C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp:6 37: error: (-215) !buf.empty() && buf.isContinuous() in function cv::imdecode 2019-01-03 21:15:07 - INFO - apscheduler.executors.default - Job "DuelLinkRunTim e.inmain (trigger: date[2019-01-03 21:15:03 CET], next run at: 2019-01-03 21:15 :03 CET)" executed successfully 'bin\adb.exe' is not recognized as an internal or external command, operable program or batch file. OpenCV Error: Assertion failed (!buf.empty() && buf.isContinuous()) in cv::imdec ode, file C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp, line 637 2019-01-03 21:15:08 - DEBUG - bot.provider.Nox - LOOKING FOR BACK BUTTON, HIGH C ORRERLATION 'bin\adb.exe' is not recognized as an internal or external command, operable program or batch file. OpenCV Error: Assertion failed (!buf.empty() && buf.isContinuous()) in cv::imdec ode_, file C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp, line 637 2019-01-03 21:15:08 - DEBUG - bot - duel_links_runtime.py 43 7 2019-01-03 21:15:08 - DEBUG - bot - Traceback (most recent call last): File "C:\Users\LawCash\Yugioh-bot\bot\duel_linksruntime.py", line 437, in in main provider.compare_with_back_button() File "C:\Users\LawCash\Yugioh-bot\bot\providers\nox\nox.py", line 193, in comp are_with_back_button img = self.get_img_from_screen_shot() File "C:\Users\LawCash\Yugioh-bot\bot\providers\actions.py", line 41, in get_i mg_from_screen_shot img = cv2.imdecode(nparr, cv2.IMREADCOLOR) cv2.error: C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp:6 37: error: (-215) !buf.empty() && buf.isContinuous() in function cv::imdecode 2019-01-03 21:15:08 - INFO - apscheduler.executors.default - Job "DuelLinkRunTim e.inmain (trigger: date[2019-01-03 21:15:04 CET], next run at: 2019-01-03 21:15 :04 CET)" executed successfully 'bin\adb.exe' is not recognized as an internal or external command, operable program or batch file. OpenCV Error: Assertion failed (!buf.empty() && buf.isContinuous()) in cv::imdec ode, file C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp, line 637 'bin\adb.exe' is not recognized as an internal or external command, operable program or batch file. OpenCV Error: Assertion failed (!buf.empty() && buf.isContinuous()) in cv::imdec ode, file C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp, line 637 'bin\adb.exe' is not recognized as an internal or external command, operable program or batch file. OpenCV Error: Assertion failed (!buf.empty() && buf.isContinuous()) in cv::imdec ode, file C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp, line 637 'bin\adb.exe' is not recognized as an internal or external command, operable program or batch file. OpenCV Error: Assertion failed (!buf.empty() && buf.isContinuous()) in cv::imdec ode, file C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp, line 637 'bin\adb.exe' is not recognized as an internal or external command, operable program or batch file. OpenCV Error: Assertion failed (!buf.empty() && buf.isContinuous()) in cv::imdec ode, file C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp, line 637 2019-01-03 21:15:20 - DEBUG - bot - Value stop modified 2019-01-03 21:15:20 - INFO - bot - Shutdown started 2019-01-03 21:15:20 - INFO - apscheduler.scheduler - Scheduler has been shut dow n 2019-01-03 21:15:20 - INFO - bot - Shutdown complete 2019-01-03 21:15:21 - INFO - bot - Exiting Yugioh-DuelLinks Bots