-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not find the GDAL library #299
Comments
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). 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" |
This article is useful to setup GDAL |
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?
The text was updated successfully, but these errors were encountered: