環境
heroku/7.16.0 linux-x64 node-v10.10.0
エラー
herokuでopenCVとか使うpythonのやつデプロイすると,herokuのログに
Import Error: libSM.so.6: cannot open ~~
こんなのが出る
対処
こちらの通りにやればできる
https://stackoverflow.com/questions/49469764/how-to-use-opencv-with-heroku/51004957#51004957
簡単な手順
- heroku-buildpack-aptを追加する
$ heroku buildpacks:add --index 1 https://github.com/heroku/heroku-buildpack-apt
2.Aptfileをつくる
Aptfile
libsm6
libxrender1
libfontconfig1
libice6
3.デプロイ
$ git add .
$ git commit -m "add Aptfile"
$ git push heroku master
以上