dynobo / normcap

OCR powered screen-capture tool to capture information instead of images
https://dynobo.github.io/normcap/
Other
1.96k stars 89 forks source link

[Windows] Crash immediately after launch (UnicodeDecodeError) #563

Closed D-Shapyrin closed 10 months ago

D-Shapyrin commented 11 months ago

What happened?

I tried downloading from Microsoft Store and site (msi), but it doesn’t work anywhere. In debug mode, I was able to extract text from the screen. image

How did you install NormCap?

MSI installer (Windows)

Operating System + Version?

Windows 10

[Linux only] Display Server (DS) + Desktop environment (DE)?

No response

Debug log output?*

C:\Users\Юрий Рябин>Log started: 2023-12-02 16:34:06Z
PreInitializing Python runtime...
PythonHome: C:\Program Files\dynobo\NormCap
PYTHONPATH:
- C:\Program Files\dynobo\NormCap\python310.zip
- C:\Program Files\dynobo\NormCap
- C:\Program Files\dynobo\NormCap\app_packages
- C:\Program Files\dynobo\NormCap\app
Configure argc/argv...
Initializing Python runtime...
Running app module: normcap
---------------------------------------------------------------------------
16:34:06 - INFO    - normcap:30 - Start NormCap v0.4.4
16:34:06 - DEBUG   - normcap.gui.tray:60 - System info:
{'cli_args': 'C:\\Program Files\\dynobo\\NormCap\\NormCap.exe -v debug', 'is_briefcase_package': True, 'is_flatpak_package': False, 'platform': 'win32', 'pyside6_version': '6.5.1', 'qt_version': '6.5.1', 'qt_library_path': 'C:/Program Files/dynobo/NormCap/app_packages/PySide6/plugins, C:/Program Files/dynobo/NormCap', 'config_directory': WindowsPath('C:/Users/╨о╤А╨╕╨╣ ╨а╤П╨▒╨╕╨╜/AppData/Local/normcap'), 'normcap_version': '0.4.4', 'ressources_path': WindowsPath('C:/Program Files/dynobo/NormCap/app/normcap/resources'), 'tesseract_path': WindowsPath('C:/Program Files/dynobo/NormCap/app/normcap/resources/tesseract/tesseract.exe'), 'tessdata_path': WindowsPath('C:/Users/╨о╤А╨╕╨╣ ╨а╤П╨▒╨╕╨╜/AppData/Local/normcap/tessdata'), 'envs': {'TESSDATA_PREFIX': None, 'LD_LIBRARY_PATH': None}, 'desktop_environment': <DesktopEnvironment.OTHER: 0>, 'display_manager_is_wayland': False, 'screens': [Screen(is_primary=True, device_pixel_ratio=1.0, rect=Rect(left=0, top=0, right=2560, bottom=1440), index=0, screenshot=None)]}
16:34:06 - DEBUG   - normcap.gui.tray:342 - Listen on local socket v0.4.4-normcap.
16:34:06 - DEBUG   - normcap.gui.settings:128 - Skip update of non existing setting (cli_mode: False)
16:34:06 - DEBUG   - normcap.gui.settings:128 - Skip update of non existing setting (background_mode: False)
16:34:06 - DEBUG   - normcap.screengrab:32 - Select capture method QT
16:34:06 - DEBUG   - normcap.gui.utils:22 - Save debug image as C:\Users\946D~1\AppData\Local\Temp\normcap\1701524046.5033047_raw_screen0.png
16:34:06 - DEBUG   - normcap.gui.window:131 - Create window for screen 0
16:34:06 - DEBUG   - normcap.gui.window:193 - Set window of screen 0 to fullscreen
16:34:06 - DEBUG   - normcap:213 - [QT] qtwarningmsg - qsystemtrayicon::setvisible: no icon set
Exception in thread Thread-1 (_readerthread):
Traceback (most recent call last):
  File "threading.py", line 1016, in _bootstrap_inner
  File "threading.py", line 953, in run
  File "subprocess.py", line 1499, in _readerthread
  File "codecs.py", line 322, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xde in position 41: invalid continuation byte
Traceback (most recent call last):
  File "C:\Program Files\dynobo\NormCap\app\normcap\gui\tray.py", line 321, in _delayed_init
    self.installed_languages = ocr.tesseract.get_languages(
  File "C:\Program Files\dynobo\NormCap\app\normcap\ocr\tesseract.py", line 40, in get_languages
    output = _run_command(cmd_args=cmd_args)
  File "C:\Program Files\dynobo\NormCap\app\normcap\ocr\tesseract.py", line 23, in _run_command
    logger.debug("Tesseract command output:\n%s", out_str.strip())
AttributeError: 'NoneType' object has no attribute 'strip'
16:34:33 - DEBUG   - normcap.gui.tray:294 - Hide 1 window
16:34:33 - INFO    - normcap.gui.tray:197 - Crop image to region (580, 869, 1124, 1064)
16:34:33 - DEBUG   - normcap.gui.utils:22 - Save debug image as C:\Users\946D~1\AppData\Local\Temp\normcap\1701524073.2250955_cropped.png
16:34:33 - DEBUG   - normcap.gui.tray:222 - Start OCR
16:34:33 - DEBUG   - normcap.ocr.enhance:76 - Scale image x3.2
16:34:33 - DEBUG   - normcap.ocr.enhance:54 - Pad image by 80px
16:34:33 - DEBUG   - normcap.ocr.enhance:92 - Invert image
16:34:33 - DEBUG   - normcap.ocr.recognize:35 - Run Tesseract on image of size (1900, 784) with args:
TessArgs(tessdata_path=WindowsPath('C:/Users/╨о╤А╨╕╨╣ ╨а╤П╨▒╨╕╨╜/AppData/Local/normcap/tessdata'), lang='eng', oem=<OEM.DEFAULT: 3>, psm=<PSM.AUTO_OSD: 1>)
Exception in thread Thread-4 (_readerthread):
Traceback (most recent call last):
  File "threading.py", line 1016, in _bootstrap_inner
  File "threading.py", line 953, in run
  File "subprocess.py", line 1499, in _readerthread
  File "codecs.py", line 322, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xde in position 33: invalid continuation byte
16:34:33 - DEBUG   - normcap.ocr.tesseract:23 - Tesseract command output:

16:34:33 - DEBUG   - normcap.ocr.recognize:44 - OCR result:
OcrResult(tess_args=TessArgs(tessdata_path=WindowsPath('C:/Users/╨о╤А╨╕╨╣ ╨а╤П╨▒╨╕╨╜/AppData/Local/normcap/tessdata'), lang='eng', oem=<OEM.DEFAULT: 3>, psm=<PSM.AUTO_OSD: 1>), words=[{'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 1, 'line_num': 1, 'word_num': 1, 'left': 80, 'top': 105, 'width': 176, 'height': 30, 'conf': 93.248978, 'text': '6:34:06'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 1, 'line_num': 1, 'word_num': 2, 'left': 285, 'top': 121, 'width': 18, 'height': 4, 'conf': 93.247444, 'text': '-'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 1, 'line_num': 1, 'word_num': 3, 'left': 335, 'top': 105, 'width': 100, 'height': 30, 'conf': 96.411247, 'text': 'INFO'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 1, 'line_num': 1, 'word_num': 4, 'left': 541, 'top': 121, 'width': 17, 'height': 4, 'conf': 91.690376, 'text': '-'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 1, 'line_num': 1, 'word_num': 5, 'left': 591, 'top': 105, 'width': 254, 'height': 39, 'conf': 28.239525, 'text': 'normcap:30'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 1, 'line_num': 1, 'word_num': 6, 'left': 874, 'top': 121, 'width': 17, 'height': 4, 'conf': 91.107422, 'text': '-'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 1, 'line_num': 1, 'word_num': 7, 'left': 922, 'top': 105, 'width': 125, 'height': 30, 'conf': 93.277031, 'text': 'Start'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 1, 'line_num': 1, 'word_num': 8, 'left': 1075, 'top': 105, 'width': 179, 'height': 39, 'conf': 91.819229, 'text': 'NormCap'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 1, 'line_num': 1, 'word_num': 9, 'left': 1280, 'top': 105, 'width': 153, 'height': 30, 'conf': 89.292686, 'text': 'v@.4.4'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 1, 'word_num': 1, 'left': 80, 'top': 156, 'width': 176, 'height': 30, 'conf': 93.110184, 'text': '6:34:06'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 1, 'word_num': 2, 'left': 285, 'top': 172, 'width': 18, 'height': 5, 'conf': 90.455406, 'text': '-'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 1, 'word_num': 3, 'left': 333, 'top': 156, 'width': 127, 'height': 65, 'conf': 0.0, 'text': '2:5'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 1, 'word_num': 4, 'left': 541, 'top': 172, 'width': 18, 'height': 5, 'conf': 92.329117, 'text': '-'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 1, 'word_num': 5, 'left': 591, 'top': 153, 'width': 484, 'height': 43, 'conf': 35.793884, 'text': 'normcap.gui.tray:60'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 1, 'word_num': 6, 'left': 1104, 'top': 172, 'width': 18, 'height': 5, 'conf': 92.480316, 'text': '-'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 1, 'word_num': 7, 'left': 1152, 'top': 156, 'width': 153, 'height': 40, 'conf': 96.575775, 'text': 'System'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 1, 'word_num': 8, 'left': 1333, 'top': 153, 'width': 117, 'height': 33, 'conf': 96.575775, 'text': 'info:'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 2, 'word_num': 1, 'left': 80, 'top': 204, 'width': 96, 'height': 85, 'conf': 41.616806, 'text': 'an'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 2, 'word_num': 2, 'left': 177, 'top': 204, 'width': 147, 'height': 62, 'conf': 14.707413, 'text': '_argsтАЩ'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 2, 'word_num': 3, 'left': 392, 'top': 204, 'width': 60, 'height': 33, 'conf': 45.724739, 'text': 'AGE'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 2, 'word_num': 4, 'left': 463, 'top': 204, 'width': 228, 'height': 69, 'conf': 92.383659, 'text': '\\\\Program'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 2, 'word_num': 5, 'left': 719, 'top': 200, 'width': 763, 'height': 70, 'conf': 84.264435, 'text': 'Files\\\\dynobo\\\\NormCap\\\\NormCap'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 2, 'word_num': 6, 'left': 1514, 'top': 214, 'width': 14, 'height': 33, 'conf': 82.800674, 'text': '.'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 2, 'word_num': 7, 'left': 1536, 'top': 214, 'width': 76, 'height': 23, 'conf': 93.250366, 'text': 'exe'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 2, 'word_num': 8, 'left': 1641, 'top': 214, 'width': 47, 'height': 23, 'conf': 91.797729, 'text': '-v'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 2, 'word_num': 9, 'left': 1715, 'top': 204, 'width': 105, 'height': 39, 'conf': 91.180428, 'text': 'debu'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 3, 'word_num': 1, 'left': 239, 'top': 230, 'width': 110, 'height': 68, 'conf': 3.905983, 'text': '"qt_v'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 3, 'word_num': 2, 'left': 333, 'top': 255, 'width': 196, 'height': 34, 'conf': 80.68174, 'text': 'versionтАЩ:'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 3, 'word_num': 3, 'left': 597, 'top': 255, 'width': 162, 'height': 34, 'conf': 25.897903, 'text': 'тАШ6.5.1"'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 3, 'word_num': 4, 'left': 827, 'top': 255, 'width': 95, 'height': 72, 'conf': 52.527332, 'text': 'CES'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 3, 'word_num': 5, 'left': 923, 'top': 255, 'width': 348, 'height': 43, 'conf': 0.0, 'text': 'library_path\'":'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 3, 'word_num': 6, 'left': 1314, 'top': 255, 'width': 59, 'height': 34, 'conf': 37.583996, 'text': 'тАШC:'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 3, 'word_num': 7, 'left': 1383, 'top': 255, 'width': 204, 'height': 62, 'conf': 92.809875, 'text': '/Program'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 3, 'word_num': 8, 'left': 1615, 'top': 255, 'width': 201, 'height': 43, 'conf': 92.56971, 'text': 'Files/dy'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 4, 'word_num': 1, 'left': 80, 'top': 259, 'width': 91, 'height': 90, 'conf': 34.439735, 'text': 'the"'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 4, 'word_num': 2, 'left': 179, 'top': 281, 'width': 43, 'height': 59, 'conf': 31.454414, 'text': 'c:'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 4, 'word_num': 3, 'left': 232, 'top': 294, 'width': 318, 'height': 55, 'conf': 0.0, 'text': 'Jusers/loeata'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 4, 'word_num': 4, 'left': 572, 'top': 265, 'width': 36, 'height': 84, 'conf': 29.429405, 'text': 'A'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 4, 'word_num': 5, 'left': 638, 'top': 297, 'width': 197, 'height': 52, 'conf': 0.0, 'text': 'tape,'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 4, 'word_num': 6, 'left': 862, 'top': 293, 'width': 22, 'height': 61, 'conf': 0.0, 'text': '4'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 4, 'word_num': 7, 'left': 897, 'top': 307, 'width': 681, 'height': 42, 'conf': 0.0, 'text': '/appData/Local/normcap"),'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 4, 'word_num': 8, 'left': 1589, 'top': 316, 'width': 231, 'height': 33, 'conf': 50.99025, 'text': 'тАЬnormcap_v'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 5, 'word_num': 1, 'left': 111, 'top': 358, 'width': 418, 'height': 43, 'conf': 22.606926, 'text': "тАЬtesseract_path':"}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 5, 'word_num': 2, 'left': 562, 'top': 358, 'width': 376, 'height': 42, 'conf': 6.20694, 'text': "WindowsPath('C:"}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 5, 'word_num': 3, 'left': 948, 'top': 358, 'width': 204, 'height': 68, 'conf': 0.0, 'text': 'Program'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 5, 'word_num': 4, 'left': 1180, 'top': 354, 'width': 634, 'height': 70, 'conf': 89.627914, 'text': 'Files/dynobo/NormCap/app/'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 6, 'word_num': 1, 'left': 80, 'top': 409, 'width': 783, 'height': 43, 'conf': 68.976746, 'text': 'pData/Local/normcap/tessdataтАЩ),'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 6, 'word_num': 2, 'left': 904, 'top': 409, 'width': 137, 'height': 33, 'conf': 66.317879, 'text': "тАШenvs':"}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 6, 'word_num': 3, 'left': 1102, 'top': 409, 'width': 476, 'height': 43, 'conf': 42.084587, 'text': "{*TESSDATA_PREFIX':"}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 6, 'word_num': 4, 'left': 1612, 'top': 412, 'width': 121, 'height': 37, 'conf': 93.08728, 'text': 'None,'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 6, 'word_num': 5, 'left': 1774, 'top': 409, 'width': 41, 'height': 33, 'conf': 73.081886, 'text': 'тАШL'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 7, 'word_num': 1, 'left': 85, 'top': 470, 'width': 9, 'height': 23, 'conf': 91.924324, 'text': ':'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 7, 'word_num': 2, 'left': 131, 'top': 460, 'width': 144, 'height': 40, 'conf': 95.812485, 'text': 'False,'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 7, 'word_num': 3, 'left': 316, 'top': 460, 'width': 239, 'height': 33, 'conf': 42.683479, 'text': 'тАШscreensтАЩ:'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 7, 'word_num': 4, 'left': 595, 'top': 460, 'width': 247, 'height': 43, 'conf': 81.39476, 'text': '[Screen(is'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 7, 'word_num': 5, 'left': 869, 'top': 435, 'width': 327, 'height': 68, 'conf': 65.17437, 'text': 'primary-True,'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 7, 'word_num': 6, 'left': 1229, 'top': 460, 'width': 581, 'height': 43, 'conf': 54.010735, 'text': 'device'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 7, 'word_num': 7, 'left': 1407, 'top': 456, 'width': 129, 'height': 51, 'conf': 54.010735, 'text': 'pixel'}, {'level': 5, 'page_num': 1, 'block_num': 1, 'par_num': 2, 'line_num': 7, 'word_num': 8, 'left': 1543, 'top': 460, 'width': 267, 'height': 43, 'conf': 34.103004, 'text': '_ratio=1.0,'}, {'level': 5, 'page_num': 1, 'block_num': 2, 'par_num': 1, 'line_num': 1, 'word_num': 1, 'left': 751, 'top': 255, 'width': 42, 'height': 94, 'conf': 39.317776, 'text': 'wis'}, {'level': 5, 'page_num': 1, 'block_num': 3, 'par_num': 1, 'line_num': 1, 'word_num': 1, 'left': 80, 'top': 515, 'width': 176, 'height': 30, 'conf': 93.214867, 'text': '6:34:06'}, {'level': 5, 'page_num': 1, 'block_num': 3, 'par_num': 1, 'line_num': 1, 'word_num': 2, 'left': 285, 'top': 531, 'width': 18, 'height': 4, 'conf': 93.214867, 'text': '-'}, {'level': 5, 'page_num': 1, 'block_num': 3, 'par_num': 1, 'line_num': 1, 'word_num': 3, 'left': 333, 'top': 515, 'width': 127, 'height': 30, 'conf': 83.057083, 'text': 'DEBUG'}, {'level': 5, 'page_num': 1, 'block_num': 3, 'par_num': 1, 'line_num': 1, 'word_num': 4, 'left': 541, 'top': 531, 'width': 17, 'height': 4, 'conf': 89.885513, 'text': '-'}, {'level': 5, 'page_num': 1, 'block_num': 3, 'par_num': 1, 'line_num': 1, 'word_num': 5, 'left': 591, 'top': 511, 'width': 508, 'height': 43, 'conf': 89.806038, 'text': 'normcap.gui.tray:342'}, {'level': 5, 'page_num': 1, 'block_num': 3, 'par_num': 1, 'line_num': 1, 'word_num': 6, 'left': 1130, 'top': 531, 'width': 17, 'height': 4, 'conf': 92.796936, 'text': '-'}, {'level': 5, 'page_num': 1, 'block_num': 3, 'par_num': 1, 'line_num': 1, 'word_num': 7, 'left': 1180, 'top': 512, 'width': 149, 'height': 33, 'conf': 96.241287, 'text': 'Listen'}, {'level': 5, 'page_num': 1, 'block_num': 3, 'par_num': 1, 'line_num': 1, 'word_num': 8, 'left': 1356, 'top': 521, 'width': 49, 'height': 24, 'conf': 94.841919, 'text': 'on'}, {'level': 5, 'page_num': 1, 'block_num': 3, 'par_num': 1, 'line_num': 1, 'word_num': 9, 'left': 1435, 'top': 511, 'width': 123, 'height': 34, 'conf': 96.676102, 'text': 'local'}, {'level': 5, 'page_num': 1, 'block_num': 3, 'par_num': 1, 'line_num': 1, 'word_num': 10, 'left': 1589, 'top': 512, 'width': 148, 'height': 33, 'conf': 93.235291, 'text': 'socket'}, {'level': 5, 'page_num': 1, 'block_num': 3, 'par_num': 1, 'line_num': 1, 'word_num': 11, 'left': 1766, 'top': 515, 'width': 51, 'height': 30, 'conf': 76.496841, 'text': 'v@'}, {'level': 5, 'page_num': 1, 'block_num': 3, 'par_num': 1, 'line_num': 2, 'word_num': 1, 'left': 80, 'top': 566, 'width': 176, 'height': 30, 'conf': 93.206795, 'text': '6:34:06'}, {'level': 5, 'page_num': 1, 'block_num': 3, 'par_num': 1, 'line_num': 2, 'word_num': 2, 'left': 285, 'top': 582, 'width': 17, 'height': 4, 'conf': 93.206795, 'text': '-'}, {'level': 5, 'page_num': 1, 'block_num': 3, 'par_num': 1, 'line_num': 2, 'word_num': 3, 'left': 333, 'top': 566, 'width': 127, 'height': 30, 'conf': 79.4907, 'text': 'DEBUG)'}, {'level': 5, 'page_num': 1, 'block_num': 3, 'par_num': 1, 'line_num': 2, 'word_num': 4, 'left': 541, 'top': 582, 'width': 17, 'height': 4, 'conf': 91.755272, 'text': '-'}, {'level': 5, 'page_num': 1, 'block_num': 3, 'par_num': 1, 'line_num': 2, 'word_num': 5, 'left': 591, 'top': 563, 'width': 611, 'height': 42, 'conf': 90.558876, 'text': 'normcap.gui.settings:128'}, {'level': 5, 'page_num': 1, 'block_num': 3, 'par_num': 1, 'line_num': 2, 'word_num': 6, 'left': 1232, 'top': 582, 'width': 17, 'height': 4, 'conf': 93.263748, 'text': '-'}, {'level': 5, 'page_num': 1, 'block_num': 3, 'par_num': 1, 'line_num': 2, 'word_num': 7, 'left': 1280, 'top': 563, 'width': 102, 'height': 42, 'conf': 96.49765, 'text': 'Skip'}, {'level': 5, 'page_num': 1, 'block_num': 3, 'par_num': 1, 'line_num': 2, 'word_num': 8, 'left': 1409, 'top': 563, 'width': 152, 'height': 42, 'conf': 96.839996, 'text': 'update'}, {'level': 5, 'page_num': 1, 'block_num': 3, 'par_num': 1, 'line_num': 2, 'word_num': 9, 'left': 1586, 'top': 563, 'width': 52, 'height': 33, 'conf': 96.619148, 'text': 'of'}, {'level': 5, 'page_num': 1, 'block_num': 3, 'par_num': 1, 'line_num': 2, 'word_num': 10, 'left': 1665, 'top': 572, 'width': 73, 'height': 24, 'conf': 95.6437, 'text': 'non'}, {'level': 5, 'page_num': 1, 'block_num': 3, 'par_num': 1, 'line_num': 2, 'word_num': 11, 'left': 1766, 'top': 572, 'width': 51, 'height': 24, 'conf': 95.6437, 'text': 'ex'}, {'level': 5, 'page_num': 1, 'block_num': 3, 'par_num': 1, 'line_num': 3, 'word_num': 1, 'left': 80, 'top': 617, 'width': 176, 'height': 30, 'conf': 93.176369, 'text': '6:34:06'}, {'level': 5, 'page_num': 1, 'block_num': 3, 'par_num': 1, 'line_num': 3, 'word_num': 2, 'left': 285, 'top': 633, 'width': 18, 'height': 4, 'conf': 93.176369, 'text': '-'}, {'level': 5, 'page_num': 1, 'block_num': 3, 'par_num': 1, 'line_num': 3, 'word_num': 3, 'left': 333, 'top': 617, 'width': 127, 'height': 30, 'conf': 86.445992, 'text': 'DEBUG'}, {'level': 5, 'page_num': 1, 'block_num': 3, 'par_num': 1, 'line_num': 3, 'word_num': 4, 'left': 541, 'top': 633, 'width': 17, 'height': 4, 'conf': 67.786804, 'text': '-'}, {'level': 5, 'page_num': 1, 'block_num': 3, 'par_num': 1, 'line_num': 3, 'word_num': 5, 'left': 591, 'top': 614, 'width': 611, 'height': 43, 'conf': 90.80294, 'text': 'normcap.gui.settings:128'}, {'level': 5, 'page_num': 1, 'block_num': 3, 'par_num': 1, 'line_num': 3, 'word_num': 6, 'left': 1232, 'top': 633, 'width': 17, 'height': 4, 'conf': 93.06337, 'text': '-'}, {'level': 5, 'page_num': 1, 'block_num': 3, 'par_num': 1, 'line_num': 3, 'word_num': 7, 'left': 1280, 'top': 614, 'width': 102, 'height': 42, 'conf': 96.975296, 'text': 'Skip'}, {'level': 5, 'page_num': 1, 'block_num': 3, 'par_num': 1, 'line_num': 3, 'word_num': 8, 'left': 1409, 'top': 614, 'width': 152, 'height': 42, 'conf': 96.627907, 'text': 'update'}, {'level': 5, 'page_num': 1, 'block_num': 3, 'par_num': 1, 'line_num': 3, 'word_num': 9, 'left': 1586, 'top': 614, 'width': 52, 'height': 33, 'conf': 96.723473, 'text': 'of'}, {'level': 5, 'page_num': 1, 'block_num': 3, 'par_num': 1, 'line_num': 3, 'word_num': 10, 'left': 1665, 'top': 623, 'width': 73, 'height': 24, 'conf': 96.793579, 'text': 'non'}, {'level': 5, 'page_num': 1, 'block_num': 3, 'par_num': 1, 'line_num': 3, 'word_num': 11, 'left': 1766, 'top': 623, 'width': 51, 'height': 24, 'conf': 96.943771, 'text': 'ex'}, {'level': 5, 'page_num': 1, 'block_num': 4, 'par_num': 1, 'line_num': 1, 'word_num': 1, 'left': 80, 'top': 668, 'width': 176, 'height': 30, 'conf': 92.418015, 'text': '6:34:06'}, {'level': 5, 'page_num': 1, 'block_num': 4, 'par_num': 1, 'line_num': 1, 'word_num': 2, 'left': 285, 'top': 684, 'width': 18, 'height': 5, 'conf': 92.460663, 'text': '-'}, {'level': 5, 'page_num': 1, 'block_num': 4, 'par_num': 1, 'line_num': 1, 'word_num': 3, 'left': 333, 'top': 668, 'width': 127, 'height': 30, 'conf': 95.936844, 'text': 'DEBUG'}, {'level': 5, 'page_num': 1, 'block_num': 4, 'par_num': 1, 'line_num': 1, 'word_num': 4, 'left': 541, 'top': 684, 'width': 18, 'height': 5, 'conf': 91.479767, 'text': '-'}, {'level': 5, 'page_num': 1, 'block_num': 4, 'par_num': 1, 'line_num': 1, 'word_num': 5, 'left': 591, 'top': 665, 'width': 533, 'height': 39, 'conf': 90.370049, 'text': 'normcap.screengrab:32'}, {'level': 5, 'page_num': 1, 'block_num': 4, 'par_num': 1, 'line_num': 1, 'word_num': 6, 'left': 1155, 'top': 684, 'width': 18, 'height': 5, 'conf': 91.64566, 'text': '-'}, {'level': 5, 'page_num': 1, 'block_num': 4, 'par_num': 1, 'line_num': 1, 'word_num': 7, 'left': 1203, 'top': 665, 'width': 151, 'height': 33, 'conf': 96.320328, 'text': 'Select'}, {'level': 5, 'page_num': 1, 'block_num': 4, 'par_num': 1, 'line_num': 1, 'word_num': 8, 'left': 1384, 'top': 668, 'width': 177, 'height': 36, 'conf': 96.247299, 'text': 'capture'}, {'level': 5, 'page_num': 1, 'block_num': 4, 'par_num': 1, 'line_num': 1, 'word_num': 9, 'left': 1586, 'top': 665, 'width': 152, 'height': 33, 'conf': 96.366608, 'text': 'method'}, {'level': 5, 'page_num': 1, 'block_num': 4, 'par_num': 1, 'line_num': 1, 'word_num': 10, 'left': 1765, 'top': 668, 'width': 52, 'height': 36, 'conf': 96.494949, 'text': 'QT'}], image=<PySide6.QtGui.QImage(QSize(1900, 784),format=QImage::Format_RGB32,depth=32,devicePixelRatio=1,bytesPerLine=7600,sizeInBytes=5958400) at 0x000001CF7D3DE3C0>, magic_scores={}, parsed='')
16:34:33 - INFO    - normcap.ocr.magics.email_magic:33 - 1 emails found : v@.4.4
16:34:33 - DEBUG   - normcap.ocr.magics.email_magic:41 - 6/684 (0.008771929824561403) chars in emails
16:34:33 - INFO    - normcap.ocr.magics.url_magic:55 - 5 URLs found : https://normcap.gui.tray:60 https://normcap.gui.tray:342 https://normcap.gui.settings:128 https://normcap.gui.settings:128 https://normcap.screengrab:32
16:34:33 - DEBUG   - normcap.ocr.magics.url_magic:63 - 148/786 (0.18829516539440203) chars in urls
16:34:33 - DEBUG   - normcap.ocr.magics.magic:70 - Magic scores:
{'SingleLineMagic': 0, 'MultiLineMagic': 0, 'ParagraphMagic': 80.0, 'EmailMagic': 0.88, 'UrlMagic': 16.01}
16:34:33 - DEBUG   - normcap.ocr.recognize:48 - Parsed text:
6:34:06 - INFO - normcap:30 - Start NormCap v@.4.4
6:34:06 - 2:5 - normcap.gui.tray:60 - System info: an _argsтАЩ AGE \\Program Files\\dynobo\\NormCap\\NormCap . exe -v debu "qt_v versionтАЩ: тАШ6.5.1" CES library_path'": тАШC: /Program Files/dy the" c: Jusers/loeata A tape, 4 /appData/Local/normcap"), тАЬnormcap_v тАЬtesseract_path': WindowsPath('C: Program Files/dynobo/NormCap/app/ pData/Local/normcap/tessdataтАЩ), тАШenvs': {*TESSDATA_PREFIX': None, тАШL : False, тАШscreensтАЩ: [Screen(is primary-True, device pixel _ratio=1.0,
wis
6:34:06 - DEBUG - normcap.gui.tray:342 - Listen on local socket v@ 6:34:06 - DEBUG) - normcap.gui.settings:128 - Skip update of non ex 6:34:06 - DEBUG - normcap.gui.settings:128 - Skip update of non ex
6:34:06 - DEBUG - normcap.screengrab:32 - Select capture method QT
16:34:33 - DEBUG   - normcap.gui.utils:22 - Save debug image as C:\Users\946D~1\AppData\Local\Temp\normcap\1701524073.9177709_enhanced.png
16:34:33 - INFO    - normcap.gui.tray:240 - Text from OCR:
6:34:06 - INFO - normcap:30 - Start NormCap v@.4.4
6:34:06 - 2:5 - normcap.gui.tray:60 - System info: an _argsтАЩ AGE \\Program Files\\dynobo\\NormCap\\NormCap . exe -v debu "qt_v versionтАЩ: тАШ6.5.1" CES library_path'": тАШC: /Program Files/dy the" c: Jusers/loeata A tape, 4 /appData/Local/normcap"), тАЬnormcap_v тАЬtesseract_path': WindowsPath('C: Program Files/dynobo/NormCap/app/ pData/Local/normcap/tessdataтАЩ), тАШenvs': {*TESSDATA_PREFIX': None, тАШL : False, тАШscreensтАЩ: [Screen(is primary-True, device pixel _ratio=1.0,
wis
6:34:06 - DEBUG - normcap.gui.tray:342 - Listen on local socket v@ 6:34:06 - DEBUG) - normcap.gui.settings:128 - Skip update of non ex 6:34:06 - DEBUG - normcap.gui.settings:128 - Skip update of non ex
6:34:06 - DEBUG - normcap.screengrab:32 - Select capture method QT
16:34:33 - DEBUG   - normcap.clipboard.windows:186 - Select clipboard method windll
16:34:33 - DEBUG   - normcap.gui.tray:270 - Copy text to clipboard
dynobo commented 11 months ago

Thanks for reporting this, @D-Shapyrin!

This error already popped up in the past, but unfortunately I had to close it due to inactivity: https://github.com/dynobo/normcap/issues/277

It is related to having non-ascii chars in the username (Юрий Рябин), a call to the Tesseract wasn't robust against that.

As a lot of changes happened to NormCap in the meanwhile: Could you please try to install the latest beta version NormCap v0.5.0-beta1 from github and report back if that works for you? That would help me a lot! :slightly_smiling_face:

(I'll try to update the app in the Microsoft Store, once the v0.5.0 final is ready. Progress about that is tracked in https://github.com/dynobo/normcap/issues/516)

dynobo commented 11 months ago

Could you please try, if this issue persists with the latest release? Thanks!

vivadavid commented 11 months ago

Hi,

With 0.5.0 beta 1, the programme was fine, but I've just installed 0.5.2 and I get the same error.

In my username (if you refer to my username in Windows, which you find in the path), I don't have any non-ascii characters.

This is what I get:

Traceback (most recent call last): File "\app\normcap__main__.py", line 3, in from normcap.app import run File "\app\normcap\app.py", line 8, in from PySide6 import QtCore, QtWidgets File "\app_packages\PySide6__init.py", line 124, in _setupQtDirectories() File "\app_packages\PySide6\init.py", line 64, in _setupQtDirectories from shiboken6 import Shiboken File "\app_packages\shiboken6\init__.py", line 27, in from shiboken6.Shiboken import * ImportError: DLL load failed while importing Shiboken: No se puede encontrar el módulo especificado.

vivadavid commented 11 months ago

Hi,

I'm not getting the error message any more, so I presume I just needed to reboot my PC after installing version 0.5.2.

dynobo commented 10 months ago

Thanks for letting me know, @vivadavid!

I'm closing this issue for now, feel free to re-open or create a new one if the problem occurs again.