Open relativityhd opened 9 months ago
I've run into multiple problems trying to install the library. Having a look on the Issues of this Repo others run into similar issues. These are:
AttributeError: 'sqlite3.Connection' object has no attribute 'enable_load_extension'
sqlite3.OperationalError: mod_spatialite.so: cannot open shared object file: No such file or directory
sqlite3.OperationalError: no such table: catalog
Add to Readme, that Python needs to be installed with some feature flags. This can be done with PyEnv and the following commands:
$ sudo apt update; sudo apt install build-essential libssl-dev zlib1g-dev \ libbz2-dev libreadline-dev libsqlite3-dev libsqlite3-mod-spatialite curl \ libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev $ PYTHON_CONFIGURE_OPTS="--enable-loadable-sqlite-extensions --enable-optimizations" pyenv install 3.11
It would also be nice, if the sync-database would per default force-sync: pylandsat sync-database -f
pylandsat sync-database -f
The Problem
I've run into multiple problems trying to install the library. Having a look on the Issues of this Repo others run into similar issues. These are:
AttributeError: 'sqlite3.Connection' object has no attribute 'enable_load_extension'
sqlite3.OperationalError: mod_spatialite.so: cannot open shared object file: No such file or directory
sqlite3.OperationalError: no such table: catalog
Proposed solution
Add to Readme, that Python needs to be installed with some feature flags. This can be done with PyEnv and the following commands:
It would also be nice, if the sync-database would per default force-sync:
pylandsat sync-database -f