Skip to content

Instantly share code, notes, and snippets.

@sbenthall
Created January 19, 2021 17:50
Show Gist options
  • Save sbenthall/5edad4e128fea79a99c2486ab6333bfe to your computer and use it in GitHub Desktop.
Save sbenthall/5edad4e128fea79a99c2486ab6333bfe to your computer and use it in GitHub Desktop.
$ python -m pip install -e .
Defaulting to user installation because normal site-packages is not writeable
Obtaining file:///home/sb/projects/joss/copro
Requirement already satisfied: xarray==0.15.1 in /home/sb/.local/lib/python3.8/site-packages (from copro==0.0.7b0) (0.15.1)
Requirement already satisfied: rioxarray>=0.0.26 in /usr/local/lib/python3.8/dist-packages/rioxarray-0.1.1-py3.8.egg (from copro==0.0.7b0) (0.1.1)
Requirement already satisfied: rasterstats==0.14 in /usr/local/lib/python3.8/dist-packages/rasterstats-0.14.0-py3.8.egg (from copro==0.0.7b0) (0.14.0)
Requirement already satisfied: geopandas==0.8.0 in /usr/local/lib/python3.8/dist-packages/geopandas-0.8.0-py3.8.egg (from copro==0.0.7b0) (0.8.0)
Requirement already satisfied: scikit-learn>=0.22.1 in /usr/local/lib/python3.8/dist-packages/scikit_learn-0.24.0rc1-py3.8-linux-x86_64.egg (from copro==0.0.7b0) (0.24.0rc1)
Collecting numpy==1.18.1
Using cached numpy-1.18.1-cp38-cp38-manylinux1_x86_64.whl (20.6 MB)
Collecting pandas==1.0.3
Using cached pandas-1.0.3-cp38-cp38-manylinux1_x86_64.whl (10.0 MB)
Requirement already satisfied: python-dateutil>=2.6.1 in /home/sb/.local/lib/python3.8/site-packages (from pandas==1.0.3->copro==0.0.7b0) (2.8.1)
Requirement already satisfied: pytz>=2017.2 in /home/sb/.local/lib/python3.8/site-packages (from pandas==1.0.3->copro==0.0.7b0) (2020.4)
Collecting rasterio==1.1.0
Using cached rasterio-1.1.0.tar.gz (2.1 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Requirement already satisfied: attrs in /home/sb/.local/lib/python3.8/site-packages (from rasterio==1.1.0->copro==0.0.7b0) (20.3.0)
Requirement already satisfied: simplejson in /usr/lib/python3/dist-packages (from rasterstats==0.14->copro==0.0.7b0) (3.13.2)
Requirement already satisfied: setuptools>=41.2 in /home/sb/.local/lib/python3.8/site-packages (from xarray==0.15.1->copro==0.0.7b0) (51.3.3)
Collecting affine
Using cached affine-2.3.0-py2.py3-none-any.whl (15 kB)
Collecting Click>=7.0
Using cached click-7.1.2-py2.py3-none-any.whl (82 kB)
Collecting cligj>=0.5
Using cached cligj-0.7.1-py3-none-any.whl (7.1 kB)
Collecting pyproj>=2.2.0
Using cached pyproj-3.0.0.post1-cp38-cp38-manylinux2010_x86_64.whl (6.5 MB)
Requirement already satisfied: certifi in /home/sb/.local/lib/python3.8/site-packages (from pyproj>=2.2.0->geopandas==0.8.0->copro==0.0.7b0) (2020.11.8)
Requirement already satisfied: six>=1.5 in /home/sb/.local/lib/python3.8/site-packages (from python-dateutil>=2.6.1->pandas==1.0.3->copro==0.0.7b0) (1.15.0)
Requirement already satisfied: scipy in /home/sb/.local/lib/python3.8/site-packages (from rioxarray>=0.0.26->copro==0.0.7b0) (1.5.4)
Requirement already satisfied: joblib>=0.11 in /home/sb/.local/lib/python3.8/site-packages (from scikit-learn>=0.22.1->copro==0.0.7b0) (1.0.0)
Collecting snuggs>=1.4.1
Using cached snuggs-1.4.7-py3-none-any.whl (5.4 kB)
Requirement already satisfied: pyparsing>=2.1.6 in /home/sb/.local/lib/python3.8/site-packages (from snuggs>=1.4.1->rasterio==1.1.0->copro==0.0.7b0) (2.4.7)
Collecting threadpoolctl>=2.0.0
Using cached threadpoolctl-2.1.0-py3-none-any.whl (12 kB)
Collecting click-plugins
Using cached click_plugins-1.1.1-py2.py3-none-any.whl (7.5 kB)
Collecting fiona
Using cached Fiona-1.8.18-cp38-cp38-manylinux1_x86_64.whl (14.7 MB)
Collecting munch
Using cached munch-2.5.0-py2.py3-none-any.whl (10 kB)
Collecting shapely
Using cached Shapely-1.7.1-cp38-cp38-manylinux1_x86_64.whl (1.0 MB)
Building wheels for collected packages: rasterio
Building wheel for rasterio (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3.8 /home/sb/.local/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmps3p_rqyy
cwd: /tmp/pip-install-attrp5jq/rasterio_5cbe5aacf11a4580b94352e17fe8bfb9
Complete output (77 lines):
INFO:root:GDAL API version obtained from gdal-config: 3.0.4
running bdist_wheel
running build
running build_py
INFO:root:Generating grammar tables from /usr/lib/python3.8/lib2to3/Grammar.txt
INFO:root:Generating grammar tables from /usr/lib/python3.8/lib2to3/PatternGrammar.txt
creating build
creating build/lib.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/rasterio
copying ./rasterio/enums.py -> build/lib.linux-x86_64-3.8/rasterio
copying ./rasterio/features.py -> build/lib.linux-x86_64-3.8/rasterio
copying ./rasterio/errors.py -> build/lib.linux-x86_64-3.8/rasterio
copying ./rasterio/dtypes.py -> build/lib.linux-x86_64-3.8/rasterio
copying ./rasterio/transform.py -> build/lib.linux-x86_64-3.8/rasterio
copying ./rasterio/merge.py -> build/lib.linux-x86_64-3.8/rasterio
copying ./rasterio/mask.py -> build/lib.linux-x86_64-3.8/rasterio
copying ./rasterio/io.py -> build/lib.linux-x86_64-3.8/rasterio
copying ./rasterio/session.py -> build/lib.linux-x86_64-3.8/rasterio
copying ./rasterio/fill.py -> build/lib.linux-x86_64-3.8/rasterio
copying ./rasterio/tools.py -> build/lib.linux-x86_64-3.8/rasterio
copying ./rasterio/path.py -> build/lib.linux-x86_64-3.8/rasterio
copying ./rasterio/profiles.py -> build/lib.linux-x86_64-3.8/rasterio
copying ./rasterio/vrt.py -> build/lib.linux-x86_64-3.8/rasterio
copying ./rasterio/plot.py -> build/lib.linux-x86_64-3.8/rasterio
copying ./rasterio/crs.py -> build/lib.linux-x86_64-3.8/rasterio
copying ./rasterio/compat.py -> build/lib.linux-x86_64-3.8/rasterio
copying ./rasterio/drivers.py -> build/lib.linux-x86_64-3.8/rasterio
copying ./rasterio/warp.py -> build/lib.linux-x86_64-3.8/rasterio
copying ./rasterio/env.py -> build/lib.linux-x86_64-3.8/rasterio
copying ./rasterio/control.py -> build/lib.linux-x86_64-3.8/rasterio
copying ./rasterio/sample.py -> build/lib.linux-x86_64-3.8/rasterio
copying ./rasterio/coords.py -> build/lib.linux-x86_64-3.8/rasterio
copying ./rasterio/windows.py -> build/lib.linux-x86_64-3.8/rasterio
copying ./rasterio/__init__.py -> build/lib.linux-x86_64-3.8/rasterio
creating build/lib.linux-x86_64-3.8/rasterio/rio
copying ./rasterio/rio/info.py -> build/lib.linux-x86_64-3.8/rasterio/rio
copying ./rasterio/rio/blocks.py -> build/lib.linux-x86_64-3.8/rasterio/rio
copying ./rasterio/rio/main.py -> build/lib.linux-x86_64-3.8/rasterio/rio
copying ./rasterio/rio/shapes.py -> build/lib.linux-x86_64-3.8/rasterio/rio
copying ./rasterio/rio/transform.py -> build/lib.linux-x86_64-3.8/rasterio/rio
copying ./rasterio/rio/rm.py -> build/lib.linux-x86_64-3.8/rasterio/rio
copying ./rasterio/rio/merge.py -> build/lib.linux-x86_64-3.8/rasterio/rio
copying ./rasterio/rio/mask.py -> build/lib.linux-x86_64-3.8/rasterio/rio
copying ./rasterio/rio/rasterize.py -> build/lib.linux-x86_64-3.8/rasterio/rio
copying ./rasterio/rio/overview.py -> build/lib.linux-x86_64-3.8/rasterio/rio
copying ./rasterio/rio/clip.py -> build/lib.linux-x86_64-3.8/rasterio/rio
copying ./rasterio/rio/insp.py -> build/lib.linux-x86_64-3.8/rasterio/rio
copying ./rasterio/rio/helpers.py -> build/lib.linux-x86_64-3.8/rasterio/rio
copying ./rasterio/rio/stack.py -> build/lib.linux-x86_64-3.8/rasterio/rio
copying ./rasterio/rio/options.py -> build/lib.linux-x86_64-3.8/rasterio/rio
copying ./rasterio/rio/calc.py -> build/lib.linux-x86_64-3.8/rasterio/rio
copying ./rasterio/rio/warp.py -> build/lib.linux-x86_64-3.8/rasterio/rio
copying ./rasterio/rio/bounds.py -> build/lib.linux-x86_64-3.8/rasterio/rio
copying ./rasterio/rio/gcps.py -> build/lib.linux-x86_64-3.8/rasterio/rio
copying ./rasterio/rio/env.py -> build/lib.linux-x86_64-3.8/rasterio/rio
copying ./rasterio/rio/convert.py -> build/lib.linux-x86_64-3.8/rasterio/rio
copying ./rasterio/rio/sample.py -> build/lib.linux-x86_64-3.8/rasterio/rio
copying ./rasterio/rio/edit_info.py -> build/lib.linux-x86_64-3.8/rasterio/rio
copying ./rasterio/rio/__init__.py -> build/lib.linux-x86_64-3.8/rasterio/rio
running egg_info
writing rasterio.egg-info/PKG-INFO
writing dependency_links to rasterio.egg-info/dependency_links.txt
writing entry points to rasterio.egg-info/entry_points.txt
writing requirements to rasterio.egg-info/requires.txt
writing top-level names to rasterio.egg-info/top_level.txt
reading manifest file 'rasterio.egg-info/SOURCES.txt'
writing manifest file 'rasterio.egg-info/SOURCES.txt'
running build_ext
building 'rasterio._base' extension
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/rasterio
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/local/lib/python3.8/dist-packages/numpy-1.18.1-py3.8-linux-x86_64.egg/numpy/core/include -I/home/sb/anaconda3/envs/copro/include -I/usr/include/python3.8 -c rasterio/_base.c -o build/temp.linux-x86_64-3.8/rasterio/_base.o -Wno-unused-parameter -Wno-unused-function
rasterio/_base.c:42:10: fatal error: Python.h: No such file or directory
#include "Python.h"
^~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for rasterio
Failed to build rasterio
ERROR: Could not build wheels for rasterio which use PEP 517 and cannot be installed directly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment