-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Heroku stack-18 issue: error while loading shared libraries: libpng12.so.0: cannot open shared object file: #15
Comments
Let me do some investigation. Are you currently blocked by this? |
Hey @nicholasklick thanks for the response!. |
I'll add some quick notes on this - our team uses Codeship, and the tests we have that rely on
When on the box:
I think dropping to Update: That did it. no errors with: # Gemfile
gem "wkhtmltoimage-binary", "0.12.4" |
I see there are updated binaries for other ubuntu versions: https://wkhtmltopdf.org/downloads.html |
libpng12 has been replaced with libpng16 on heroku-18 any update on this ? |
@MathieuDerelle read the above comments, I've gotten it to work on heroku-18 |
thanks @abury but it did not work for me I've replaced and added an initializer :
the error went away but the images exported from HTML were always trash : 15 bytes |
removing this gem and using the buildpack |
I spent hours on this. I tried using the buildpack, but never crossed my mind removing the gems. Thanks! |
You can use the build pack It will install the missing library on the server on deploy |
Hello guys I'm having the following error using heroku tesseract, does anyone know how to solve I'm using stack 20 pytesseract.pytesseract.TesseractError: (127, 'tesseract: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory') |
2024-10-21T11:24:19.765828+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.12/site-packages/pytesseract/pytesseract.py", line 489, in |
2024-10-21T11:32:51.485901+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.12/site-packages/pytesseract/pytesseract.py", line 489, in |
Hey guys.
Thanks for the great gem! It's been really helpful so far. Unfortunately, we've run into a bit of a snag. It looks like the binary used in this gem relies on
libpng12
, however, this is not pre-installed on Heroku's new stack (Based on Ubtunu 18.04).https://devcenter.heroku.com/articles/stack-packages
What is the best way to resolve this issue? Let me know if I can help out at all 👍
The text was updated successfully, but these errors were encountered: