Install poppler onto Heroku Server django

我的梦境 提交于 2019-12-24 04:02:35

问题


I am trying to install poppler on my Heroku server because I am using pdf2image as a python package. However, I can't just run brew install poppler like I did on my Mac.

I have tried to add some heroku buildpacks off the internet but with no luck. Anytime pdf2image runs I get this error.

pdf2image.exceptions.PDFInfoNotInstalledError: Unable to get page count. Is poppler installed and in PATH?

Is there something I can do on the command line to get poppler installed while keeping heroku/python as my buildpack?


回答1:


Is there something I can do on the command line to get poppler installed while keeping heroku/python as my buildpack?

Heroku lets you run multiple buildpacks. I haven't tried this buildpack, but I'd recommend adding this buildpack to your existing app:

heroku buildpacks:set heroku/python
heroku buildpacks:add --index 1 https://github.com/survantjames/heroku-buildpack-poppler.git

Then redeploy your application.



来源:https://stackoverflow.com/questions/54739063/install-poppler-onto-heroku-server-django

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!