mojodna / marblecutter-virtual

Virtual catalogs for marblecutter
Other
48 stars 30 forks source link

Numpy has to be a strictly declared dependency for rasterio #4

Closed francbartoli closed 6 years ago

francbartoli commented 6 years ago

I need to run pip install numpy previously otherwise the error below appears:

Collecting rasterio[s3]~=1.0 (from -r requirements.txt (line 5))
  Using cached https://files.pythonhosted.org/packages/8f/06/78d85a7a1a44b5cee5aaae62692a7cec0a94af09e827db9f753b4ff990a3/rasterio-1.0.5.tar.gz
    Complete output from command python setup.py egg_info:
    ERROR: Numpy and its headers are required to run setup().

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/f5/k25ptqd12nq2mt4v3cdncgk00000gn/T/pip-install-BlYjAs/rasterio/
mojodna commented 6 years ago

Does adding numpy to requirements.txt and running pip install -r requirements.txt (which I'm guessing is how you installed it?) work?

The Dockerfile does this explicitly, but for local dev, we should definitely get this cleaned up.

francbartoli commented 6 years ago

Yep it does