Django migration cannot find GDALRaster

I took the project with Django, Django REST framework and Leaflet to save the return path in the database. Installing Django in virtualenvand trying to port it:

File "D: \ SHK \ ElektroClean \ venv \ lib \ site-packages \ django \ contrib \ gis \ db \ backends \ postgis \ operations.py", line 7, from django.contrib.gis.gdal import GDALRaster ImportError: unable to import name 'GDALRaster'

The directory D:\SHK\ElektroClean\py27\Lib\site-packages\django\contrib\gis\gdalcontains a folder with the name raster. Does this folder send a patch to GDALRaster?

Any suggestions on how to fix this?

+4
source share
1 answer

fixed installation errors GDAL -.-

On Linux:

sudo apt-get install libgdal-dev
pip install gdal

Windows GDAL Core GDAL Python gisinternals

+10

Source: https://habr.com/ru/post/1651775/


All Articles