Good evening all,
I am trying to build an interactive map and when i try to add incidents to the interactive map i get the following error:
Operational Error - no such module: rtree
Exception Location:
C:\OSGeo4W64\apps\Python36\lib\site-packages\django\db\backends\sqlite3\base.py, line 413, in execute
Script in base.py (line 413):
def execute(self, query, params=None):
if params is None:
return Database.Cursor.execute(self, query)
query = self.convert_query(query)
return Database.Cursor.execute(self, query, params)
my pip freeze
alabaster==0.7.12
asgiref==3.3.1
Babel==2.9.0
certifi==2020.12.5
chardet==4.0.0
colorama==0.4.4
Django==3.1.7
docutils==0.16
GDAL @ file:///C:/Users/sangelrd/projects/mymap/GDAL-2.4.1-cp36-cp36m-win_amd64.whl
idna==2.10
imagesize==1.2.0
Jinja2==2.11.3
MarkupSafe==1.1.1
packaging==20.9
psycopg2==2.8.6
Pygments==2.8.1
pyparsing==2.4.7
pytz==2021.1
requests==2.25.1
Rtree==0.9.7
snowballstemmer==2.1.0
spatialite==0.0.3
Sphinx==3.5.2
sphinxcontrib-applehelp==1.0.2
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==1.0.3
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.4
sqlparse==0.4.1
urllib3==1.26.3
models.py
name = models.CharField(max_length=255)
location = PointField()
admin.py
from .models import Report
@admin.register(Report)
class ReportsAdmin(admin.OSMGeoAdmin):
list_display = ("name","location")
Having read some posts online indicate that there is an issue with the model and attributes, but any advice or input would be really appreciated.
Thank you in advance
Stathis