Open jlesech opened 4 years ago
Unfortunately, importing anything from GeoDjango now also imports the part using gdal, even if we don't use it. So yes you should have it to avoid this error.
You must install Geospatial Libraries (gdal). Here is the guide for Ubuntu to install same.
https://docs.djangoproject.com/en/3.1/ref/contrib/gis/install/geolibs/
This issue can be closed now.
Thanks. This dependency should be documented. I created a pull request for that.
I recoomend to downdload the procompiled package from https://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal and then add the dll (for windows) in setting.py of your Django project
GDAL_LIBRARY_PATH = r".venv\Lib\site-packages\osgeo\gdal301.dll" GEOS_LIBRARY_PATH = r".venv\Lib\site-packages\osgeo\geos_c.dll"
This article is useful to setup GDAL https://www.pointsnorthgis.ca/blog/geodjango-gdal-setup-windows-10/
I'm facing an issue with django-leaflet v0.27.x related to a missing GDAL library. My Django project was working fine without GDAL until django-leaflet v0.26.0.
I took a look at the recent commits between v0.26.0 and v0.27.0 and I found this one: Drop outdated backport files.
I'm using Python 3.8 on Ubuntu 20.04 and these packages:
Stacktrace:
Is the GDAL library now required?