heroku / heroku-geo-buildpack

0 stars 2 forks source link

OSError: libkmldom.so.1: cannot open shared object file: No such file or directory #25

Closed bluespider42 closed 2 years ago

bluespider42 commented 2 years ago

Try to build a geodjango app.

1. https://github.com/heroku/heroku-geo-buildpack.git
2. heroku/python

Using the heroku-geo-buildpack I get the error OSError: libkmldom.so.1: cannot open shared object file: No such file or directory when Django starts and tries to import GDAL.

I have tried adding the apt buildpack and installing libkmldom1 (and also tried libkml-dev as well) but with the same result.

1. heroku-community/apt
2. https://github.com/heroku/heroku-geo-buildpack.git
3. heroku/python

Any suggestions?

bluespider42 commented 2 years ago

As usual I fixed this as soon as I opened an issue.
The problem was a leftover config var from previous attempts to install GDAL Geos etc.

My current working config is:

1. heroku-community/apt
2. https://github.com/heroku/heroku-geo-buildpack.git
3. heroku/python

Aptfile:

libkmldom1