CodeForAfrica/HURUmap-apps

[BUG] GDAL + pip setup broken on Mac

DavidLemayian opened this issue · 1 comments

Description

Setting up development environment on Mac is broken. We had to downgrade GDAL version installed using git checkout because it's not a versioned and the latest libsass doesn't support the @include normalize.min line in _censusreporter.scss.

Also the latest WhiteNois v4 is broken.

How to install GDAL:

brew uninstall gdal
brew tap osgeo/osgeo4mac && brew tap --repair
brew install jasper netcdf
brew install gdal --with-complete --with-unsupported
brew link --force gdal2
brew install gdal-python

# Workaround until 2.3.1 released - https://github.com/OSGeo/gdal/issues/674
export PYTHONPATH=/usr/local/Cellar/gdal2-python/2.3.0/lib/python2.7/site-packages 

pip install "GDAL==2.3" "Shapely>=1.5.13"

Screenshots

N/A

Files

To Reproduce

Recreate virtual environment and run pip install requirements. Also any brew upgrade if GDAL installed with Homebrew should bring up the issue version issue.

Tasks

  • Document using GDAL options above
  • Add versioning to https://github.com/OSGeo/homebrew-osgeo4mac
  • Include specific version of libsass in requirements libsass==0.13.3
  • Include specific version of whitenoise in requirements whitenoise==3.3.1
  • 🤔

All fixed with Docker.