simonflueckiger / tesserocr-windows_build

MIT License
206 stars 64 forks source link

'utf-8' codec can't decode byte 0xca in position 3: invalid continuation byte #25

Closed zhuazhizhuda closed 1 month ago

zhuazhizhuda commented 1 month ago

import tesserocr


UnicodeDecodeError Traceback (most recent call last) Cell In[10], line 1 ----> 1 import tesserocr

File E:\anaconda\Lib\site-packages\tesserocr__init.py:1 ----> 1 from .tesserocr import version__ 2 from .tesserocr import *

File tesserocr\tesserocr.pyx:58, in init tesserocr.tesserocr()

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xca in position 3: invalid continuation byte

tesserocr version is 2.7.1 tesseract version is 5.4.0

simonflueckiger commented 1 month ago

I wasn't able to reproduce the error on my end. Could you please provide more details?

zhuazhizhuda commented 1 month ago

Thank you for your response. In fact, I have already resolved the issue, but I forgot to close the issue. My Python version is 3.11, and when I downgraded tesserocr to version 2.7.0 and restarted my computer, the import worked normally.