[Solved]-Postgis isn't an available database backend

9👍

I had the same issue
i installed the osgeo
and then navigated to the missing libraries

> # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR =
> os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
> TEMPLATE_DIR=os.path.join(BASE_DIR,'templates')

and these were the missing libraries for me:

 GDAL_LIBRARY_PATH = r'C:\OSGeo4W64\bin\gdal204.dll'
 GEOS_LIBRARY_PATH=r'C:\OSGeo4W64\bin\geos_c.dll'

5👍

Run this command

sudo apt-get install binutils libproj-dev gdal-bin

This is described in this documentation

👤Amir

1👍

I had the same issue. I ran pip install gdal, which showed error messages about a libffi library missing on my system. After installing the correct library (libffi6 on AUR), I ran pip install gdal again and the issue was resolved.

0👍

I found that my libgdal library was causing me issues and giving me this error.

I’m working in windows under a conda environment running Django 1.11 and GDAL 2.0. Changing GDAL and django versions didnt seem to fix anything. However, setting the libgdal version to 1.11.2 seemed to clear the error up for me.

Leave a comment