Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'tesseract: error while loading shared libraries: libarchive.so.13: python

Error : pytesseract.pytesseract.TesseractError: (127, 'tesseract: error while loading shared libraries: libarchive.so.13: cannot open shared object file: No such

My apt file looks like this :

libgl1 libsm6 libxrender1 libfontconfig1 libarchive-dev libtesseract-dev tesseract-ocr tesseract-ocr-eng

My requirements file has pytesseract mentioned.

I added a buildpack, set the TESSDATA_PREFIX config variable path.

The issue persists.

like image 648
nemesis Avatar asked Mar 24 '26 21:03

nemesis


1 Answers

I have faced same issue recently. But i fixed by adding the following library in Aptfile

  • *libarchive13*

and then redeployed my app and everything works fine...

like image 191
Jawad Hussain Shah Avatar answered Mar 27 '26 20:03

Jawad Hussain Shah



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!