Error: conn.execute("SELECT load_extension('mod_spatialite');") OperationalError: The specified module could not be found.
rrsc1234 opened this issue · 4 comments
rrsc1234 commented
Hi. I am trying to the run the following script:
from datetime import datetime
from shapely.geometry import Point
from pylandsat import Catalog, Product
catalog = Catalog()
begin = datetime(2010, 1, 1)
end = datetime(2021, 5, 31)
geom = Point(21.78, 79.52)
# Results are returned as a list
scenes = catalog.search(
begin=begin,
end=end,
geom=geom,
sensors=['LE07', 'LC08']
)
After running the above script I am getting following error:
File "C:\Users\user1\Anaconda3\lib\site-packages\pylandsat\database.py", line 71, in connect
conn.execute("SELECT load_extension('mod_spatialite');") OperationalError: The specified module could not be found.
Can someone let me know how to resolve this issue.
trexbatman commented
I am having the exactly same issue.
MuhammadAsim1214 commented
same issue
MuhammadAsim1214 commented
Hi. I am trying to the run the following script:
from datetime import datetime from shapely.geometry import Point from pylandsat import Catalog, Product catalog = Catalog() begin = datetime(2010, 1, 1) end = datetime(2021, 5, 31) geom = Point(21.78, 79.52) # Results are returned as a list scenes = catalog.search( begin=begin, end=end, geom=geom, sensors=['LE07', 'LC08'] )
After running the above script I am getting following error:
File "C:\Users\user1\Anaconda3\lib\site-packages\pylandsat\database.py", line 71, in connect conn.execute("SELECT load_extension('mod_spatialite');") OperationalError: The specified module could not be found.
Can someone let me know how to resolve this issue.
Have yu found the solution?
relativityhd commented
I just answered that also here #3 (comment)
You need to install a library with your systems package manager. For Ubuntu it was:
sudo apt update sudo apt upgrade sudo apt install libsqlite3-mod-spatialite