@daveluo thanks a ton for your work !!
I was trying to run your Colab notebook and facing the following errors:
(I have tried 4 different approaches and their outputs are also mentioned)
Approach1: Use the existing Solaris 0.4.0 Installation mentioned in Notebook
!add-apt-repository ppa:ubuntugis/ubuntugis-unstable -y
!apt-get update
!apt-get install python-numpy gdal-bin libgdal-dev python3-rtree
!pip install rasterio
!pip install geopandas
!pip install descartes
!pip install solaris
!pip install rio-tiler
some of the Errors in Output:
ERROR: Failed building wheel for gdal
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_bi6kor0/gdal_5793e836967c45a29ee13774fa79d314/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_bi6kor0/gdal_5793e836967c45a29ee13774fa79d314/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-hgs6fynk/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.7/gdal Check the logs for full command output.
Please see this file link for full output which shows the exact trail of the above errors
Approach2: Trying Solaris 0.2.0
Following your suggestion in the drivenData forum, I tried to install the older solaris==0.2.0 and with adding the relavant ‘ppa:ubuntugis/ppa -y’
But this approach also fails to install solaris and shows similar errors
Approach3: Install using Solaris-Github
Tried to install using: !pip install git+https://github.com/CosmiQ/solaris/@dev
which throws up an error:
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/usr/local/lib/python3.7/dist-packages/Shapely-1.7.1.dist-info/METADATA'
→ To which, I tried to install ‘pip install Shapely==1.7.1’, expecting the necessary folders (Shapely-1.7.1.dist-info/METADATA) will be found, but unfortunately the Colab files dont update with the fresh Shapely-1.7.1 installation made and it still throws up the Error:
OSError: [Errno 2] No such file or directory
Approach4: (Non Colab Solaris Setup)
Tried to install conda environment (conda env create -n solaris -f environment-gpu.yml) as suggested by the Github page of Solaris, but ultimately there are Rasterio and Riotiler version compatibility issues which come up and they throw up more errors.
I request for your help, in resolving this solaris installation errors. I feel your better insights will help to resolve this much easily.
Thanks in advance
Tilak