【发布时间】:2020-12-31 14:58:54
【问题描述】:
我正在尝试在 Heroku 中运行 python dash 应用程序。由于我使用的 pdf2image 包也与 poppler 有依赖关系,因此在我的开发环境中工作正常,但是当我在 Heroku 中部署它时,我的代码在这一点上卡住了:没有任何进展
PDF 到图像的转换开始为文件:HH689 2020-09-13T19:32:48.177754+00:00 app[web.1]:从路径转换 2020-09-13T19:32:48.198294+00:00 app[web.1]: 10.52.12.238 - pdfocr [13/Sep/2020:19:32:48 +0000] “POST /_dash-update-component HTTP/ 1.1" 500 290 "https://pdf-text-ocr.herokuapp.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, 像 Gecko) Chrome/85.0.4183.102 Safari/537.36 " 2020-09-13T19:32:48.199716+00:00 heroku[路由器]: at=info method=POST path="/_dash-update-component" host=pdf-text-ocr.herokuapp.com request_id=1b268520-1ca8 -464b-8256-0dfa2c5c7f5d fwd="49.206.3.8,165.225.124.180" dyno=web.1 connect=0ms service=24ms status=500 bytes=470 protocol=https
我还添加了所有必要的构建包;路径中的 poppler、imagemagick 和 ghost 脚本。
【问题讨论】: