wannesm / LeuvenMapMatching

Leuven.MapMatching toolbox for aligning GPS measurements to locations on a map.
Other
222 stars 43 forks source link

no such module: rtree #3

Closed aji1214 closed 5 years ago

aji1214 commented 5 years ago

Why does this prompt:no such module: rtree

The details are as follows: File "D:\Anaconda3\lib\site-packages\leuvenmapmatching\map\sqlite.py", line 393, in all_edges c.execute(q, (min_x, max_x, min_y, max_y))

OperationalError: no such module: rtree

wannesm commented 5 years ago

To use the SQLite-based DB you need to use a SQLite instance that is compiled with the R*Tree extension: https://www.sqlite.org/rtree.html

Most Python installations don't have this activated by default (e.g. HomeBrew on Mac has it enabled by default). Thus you might need to recompile SQLite.

sixyang commented 2 years ago

You can try a higher version of python, I test in Python 3.8.0. It works~