Cyrexxis / RokTracker

Open Source Rise of Kingdoms Stats Management Tool. Track TOP X Players of kingdom / alliance / honor leaderboard.
MIT License
47 stars 18 forks source link

[BUG] What happened??? #21

Closed quannv98k3 closed 1 year ago

quannv98k3 commented 1 year ago

Adb port of device (5555): Kingdom name (used for file name) (KD): 2655 People to scan (600): 500 Resume scan [y/n] (n): Use the new scrolling method (more accurate, but might not work) [y/n] (y): Track inactives (via screenshot) [y/n] (n): Try to reconstruct kills via killpoints [y/n] (y): Starting adb server and connecting to adb device...

Traceback (most recent call last): File "D:\RokTracker\rok-scanner.py", line 934, in main() File "D:\RokTracker\rok-scanner.py", line 922, in main scan( File "D:\RokTracker\rok-scanner.py", line 643, in scan governor = governor_scan( ^^^^^^^^^^^^^^ File "D:\RokTracker\rok-scanner.py", line 241, in governor_scan with PyTessBaseAPI(path="./deps/tessdata-main") as api: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "tesserocr.pyx", line 1219, in tesserocr._tesserocr.PyTessBaseAPI.cinit File "tesserocr.pyx", line 1233, in tesserocr._tesserocr.PyTessBaseAPI._init_api RuntimeError: Failed to init API, possibly an invalid tessdata path: ./deps/tessdata-main Press Enter to continue...:

quannv98k3 commented 1 year ago

I created "deps" folders in "D:\" so do i right or wrong?

markm-io commented 1 year ago

Yes but you also have to make sure that you are downloading the files from the Readme https://github.com/tesseract-ocr/tessdata and unzipping that and putting the tessdata-main in the deps folder

Cyrexxis commented 1 year ago

Assuming you start the script when you are in the folder D:\RokTracker the deps folder should be in the RokTracker folder: D:\RokTracker\deps. And like mark mentioned in that folder should be a tessdata-main folder with the tesseract traineddata files.

quannv98k3 commented 1 year ago

many thanks, it solved