Open skasberger opened 6 years ago
try
# apt-get install libgnutls28-dev
Are you using virtual environment to install it? Maybe, most of the troubles that you are passing will be solved with this solution. Regards
@coolsteve11 installing the lib did not solve the problem.
@dogosousa tried it inside a python virtualenv. rasterio still threw an error, but a different one:
(venv) 1 cheeseman@t550 /my-data/projects/geo-data-sci (git)-[master] % pip install landsat-util
Collecting landsat-util
Requirement already satisfied: polyline==1.3 in /home/cheeseman/.local/lib/python3.6/site-packages (from landsat-util)
Requirement already satisfied: requests==2.7.0 in /home/cheeseman/.local/lib/python3.6/site-packages (from landsat-util)
Requirement already satisfied: scikit-image==0.12.3 in /home/cheeseman/.local/lib/python3.6/site-packages (from landsat-util)
Collecting rasterio==0.32.0 (from landsat-util)
Using cached rasterio-0.32.0.tar.gz
Requirement already satisfied: homura==0.1.3 in /home/cheeseman/.local/lib/python3.6/site-packages (from landsat-util)
Requirement already satisfied: scipy==0.17.0 in /home/cheeseman/.local/lib/python3.6/site-packages (from landsat-util)
Requirement already satisfied: usgs==0.1.9 in /home/cheeseman/.local/lib/python3.6/site-packages (from landsat-util)
Requirement already satisfied: six>=1.8.0 in /my-data/apps/anaconda3/lib/python3.6/site-packages (from landsat-util)
Requirement already satisfied: boto==2.39.0 in /home/cheeseman/.local/lib/python3.6/site-packages (from landsat-util)
Requirement already satisfied: numpy==1.10.4 in /home/cheeseman/.local/lib/python3.6/site-packages (from landsat-util)
Requirement already satisfied: matplotlib==1.5.1 in /home/cheeseman/.local/lib/python3.6/site-packages (from landsat-util)
Requirement already satisfied: python-dateutil==2.5.1 in /home/cheeseman/.local/lib/python3.6/site-packages (from landsat-util)
Requirement already satisfied: geocoder==1.9.0 in /home/cheeseman/.local/lib/python3.6/site-packages (from landsat-util)
Requirement already satisfied: termcolor==1.1.0 in /home/cheeseman/.local/lib/python3.6/site-packages (from landsat-util)
Requirement already satisfied: networkx>=1.8 in /my-data/apps/anaconda3/lib/python3.6/site-packages (from scikit-image==0.12.3->landsat-util)
Requirement already satisfied: dask[array]>=0.5.0 in /my-data/apps/anaconda3/lib/python3.6/site-packages (from scikit-image==0.12.3->landsat-util)
Requirement already satisfied: pillow>=2.1.0 in /my-data/apps/anaconda3/lib/python3.6/site-packages (from scikit-image==0.12.3->landsat-util)
Requirement already satisfied: affine in /my-data/apps/anaconda3/lib/python3.6/site-packages (from rasterio==0.32.0->landsat-util)
Requirement already satisfied: cligj in /my-data/apps/anaconda3/lib/python3.6/site-packages (from rasterio==0.32.0->landsat-util)
Requirement already satisfied: snuggs in /my-data/apps/anaconda3/lib/python3.6/site-packages (from rasterio==0.32.0->landsat-util)
Requirement already satisfied: click-plugins in /my-data/apps/anaconda3/lib/python3.6/site-packages (from rasterio==0.32.0->landsat-util)
Requirement already satisfied: pycurl in /my-data/apps/anaconda3/lib/python3.6/site-packages (from homura==0.1.3->landsat-util)
Requirement already satisfied: humanize in /home/cheeseman/.local/lib/python3.6/site-packages (from homura==0.1.3->landsat-util)
Requirement already satisfied: requests-futures>=0.9.5 in /home/cheeseman/.local/lib/python3.6/site-packages (from usgs==0.1.9->landsat-util)
Requirement already satisfied: click>=4.0 in /my-data/apps/anaconda3/lib/python3.6/site-packages (from usgs==0.1.9->landsat-util)
Requirement already satisfied: pyparsing!=2.0.4,>=1.5.6 in /my-data/apps/anaconda3/lib/python3.6/site-packages (from matplotlib==1.5.1->landsat-util)
Requirement already satisfied: cycler in /my-data/apps/anaconda3/lib/python3.6/site-packages (from matplotlib==1.5.1->landsat-util)
Requirement already satisfied: pytz in /my-data/apps/anaconda3/lib/python3.6/site-packages (from matplotlib==1.5.1->landsat-util)
Requirement already satisfied: ratelim in /home/cheeseman/.local/lib/python3.6/site-packages (from geocoder==1.9.0->landsat-util)
Requirement already satisfied: decorator>=4.1.0 in /my-data/apps/anaconda3/lib/python3.6/site-packages (from networkx>=1.8->scikit-image==0.12.3->landsat-util)
Requirement already satisfied: toolz>=0.7.3 in /my-data/apps/anaconda3/lib/python3.6/site-packages (from dask[array]>=0.5.0->scikit-image==0.12.3->landsat-util)
Requirement already satisfied: olefile in /my-data/apps/anaconda3/lib/python3.6/site-packages (from pillow>=2.1.0->scikit-image==0.12.3->landsat-util)
Building wheels for collected packages: rasterio
Running setup.py bdist_wheel for rasterio ... error
Complete output from command /my-data/apps/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-aes97dkc/rasterio/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpoehu5i8wpip-wheel- --python-tag cp36:
WARNING:root:Failed to get options via gdal-config: [Errno 2] No such file or directory: 'gdal-config': 'gdal-config'
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/rasterio
copying ./rasterio/coords.py -> build/lib.linux-x86_64-3.6/rasterio
copying ./rasterio/vfs.py -> build/lib.linux-x86_64-3.6/rasterio
copying ./rasterio/tool.py -> build/lib.linux-x86_64-3.6/rasterio
copying ./rasterio/dtypes.py -> build/lib.linux-x86_64-3.6/rasterio
copying ./rasterio/transform.py -> build/lib.linux-x86_64-3.6/rasterio
copying ./rasterio/crs.py -> build/lib.linux-x86_64-3.6/rasterio
copying ./rasterio/warnings.py -> build/lib.linux-x86_64-3.6/rasterio
copying ./rasterio/features.py -> build/lib.linux-x86_64-3.6/rasterio
copying ./rasterio/enums.py -> build/lib.linux-x86_64-3.6/rasterio
copying ./rasterio/sample.py -> build/lib.linux-x86_64-3.6/rasterio
copying ./rasterio/warp.py -> build/lib.linux-x86_64-3.6/rasterio
copying ./rasterio/fill.py -> build/lib.linux-x86_64-3.6/rasterio
copying ./rasterio/errors.py -> build/lib.linux-x86_64-3.6/rasterio
copying ./rasterio/__init__.py -> build/lib.linux-x86_64-3.6/rasterio
copying ./rasterio/profiles.py -> build/lib.linux-x86_64-3.6/rasterio
copying ./rasterio/five.py -> build/lib.linux-x86_64-3.6/rasterio
creating build/lib.linux-x86_64-3.6/rasterio/rio
copying ./rasterio/rio/helpers.py -> build/lib.linux-x86_64-3.6/rasterio/rio
copying ./rasterio/rio/info.py -> build/lib.linux-x86_64-3.6/rasterio/rio
copying ./rasterio/rio/calc.py -> build/lib.linux-x86_64-3.6/rasterio/rio
copying ./rasterio/rio/convert.py -> build/lib.linux-x86_64-3.6/rasterio/rio
copying ./rasterio/rio/bands.py -> build/lib.linux-x86_64-3.6/rasterio/rio
copying ./rasterio/rio/main.py -> build/lib.linux-x86_64-3.6/rasterio/rio
copying ./rasterio/rio/features.py -> build/lib.linux-x86_64-3.6/rasterio/rio
copying ./rasterio/rio/options.py -> build/lib.linux-x86_64-3.6/rasterio/rio
copying ./rasterio/rio/overview.py -> build/lib.linux-x86_64-3.6/rasterio/rio
copying ./rasterio/rio/sample.py -> build/lib.linux-x86_64-3.6/rasterio/rio
copying ./rasterio/rio/warp.py -> build/lib.linux-x86_64-3.6/rasterio/rio
copying ./rasterio/rio/merge.py -> build/lib.linux-x86_64-3.6/rasterio/rio
copying ./rasterio/rio/__init__.py -> build/lib.linux-x86_64-3.6/rasterio/rio
creating build/lib.linux-x86_64-3.6/rasterio/tools
copying ./rasterio/tools/mask.py -> build/lib.linux-x86_64-3.6/rasterio/tools
copying ./rasterio/tools/merge.py -> build/lib.linux-x86_64-3.6/rasterio/tools
copying ./rasterio/tools/__init__.py -> build/lib.linux-x86_64-3.6/rasterio/tools
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.6
creating build/temp.linux-x86_64-3.6/rasterio
gcc -pthread -B /my-data/apps/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/cheeseman/.local/lib/python3.6/site-packages/numpy/core/include -I/my-data/apps/anaconda3/include/python3.6m -c rasterio/_base.c -o build/temp.linux-x86_64-3.6/rasterio/_base.o -Wno-unused-parameter -Wno-unused-function
rasterio/_base.c:263:22: fatal error: cpl_conv.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Failed building wheel for rasterio
Running setup.py clean for rasterio
Failed to build rasterio
Installing collected packages: rasterio, landsat-util
Running setup.py install for rasterio ... error
Complete output from command /my-data/apps/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-aes97dkc/rasterio/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-zjacgnjy-record/install-record.txt --single-version-externally-managed --compile:
WARNING:root:Failed to get options via gdal-config: [Errno 2] No such file or directory: 'gdal-config': 'gdal-config'
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/rasterio
copying ./rasterio/coords.py -> build/lib.linux-x86_64-3.6/rasterio
copying ./rasterio/vfs.py -> build/lib.linux-x86_64-3.6/rasterio
copying ./rasterio/tool.py -> build/lib.linux-x86_64-3.6/rasterio
copying ./rasterio/dtypes.py -> build/lib.linux-x86_64-3.6/rasterio
copying ./rasterio/transform.py -> build/lib.linux-x86_64-3.6/rasterio
copying ./rasterio/crs.py -> build/lib.linux-x86_64-3.6/rasterio
copying ./rasterio/warnings.py -> build/lib.linux-x86_64-3.6/rasterio
copying ./rasterio/features.py -> build/lib.linux-x86_64-3.6/rasterio
copying ./rasterio/enums.py -> build/lib.linux-x86_64-3.6/rasterio
copying ./rasterio/sample.py -> build/lib.linux-x86_64-3.6/rasterio
copying ./rasterio/warp.py -> build/lib.linux-x86_64-3.6/rasterio
copying ./rasterio/fill.py -> build/lib.linux-x86_64-3.6/rasterio
copying ./rasterio/errors.py -> build/lib.linux-x86_64-3.6/rasterio
copying ./rasterio/__init__.py -> build/lib.linux-x86_64-3.6/rasterio
copying ./rasterio/profiles.py -> build/lib.linux-x86_64-3.6/rasterio
copying ./rasterio/five.py -> build/lib.linux-x86_64-3.6/rasterio
creating build/lib.linux-x86_64-3.6/rasterio/rio
copying ./rasterio/rio/helpers.py -> build/lib.linux-x86_64-3.6/rasterio/rio
copying ./rasterio/rio/info.py -> build/lib.linux-x86_64-3.6/rasterio/rio
copying ./rasterio/rio/calc.py -> build/lib.linux-x86_64-3.6/rasterio/rio
copying ./rasterio/rio/convert.py -> build/lib.linux-x86_64-3.6/rasterio/rio
copying ./rasterio/rio/bands.py -> build/lib.linux-x86_64-3.6/rasterio/rio
copying ./rasterio/rio/main.py -> build/lib.linux-x86_64-3.6/rasterio/rio
copying ./rasterio/rio/features.py -> build/lib.linux-x86_64-3.6/rasterio/rio
copying ./rasterio/rio/options.py -> build/lib.linux-x86_64-3.6/rasterio/rio
copying ./rasterio/rio/overview.py -> build/lib.linux-x86_64-3.6/rasterio/rio
copying ./rasterio/rio/sample.py -> build/lib.linux-x86_64-3.6/rasterio/rio
copying ./rasterio/rio/warp.py -> build/lib.linux-x86_64-3.6/rasterio/rio
copying ./rasterio/rio/merge.py -> build/lib.linux-x86_64-3.6/rasterio/rio
copying ./rasterio/rio/__init__.py -> build/lib.linux-x86_64-3.6/rasterio/rio
creating build/lib.linux-x86_64-3.6/rasterio/tools
copying ./rasterio/tools/mask.py -> build/lib.linux-x86_64-3.6/rasterio/tools
copying ./rasterio/tools/merge.py -> build/lib.linux-x86_64-3.6/rasterio/tools
copying ./rasterio/tools/__init__.py -> build/lib.linux-x86_64-3.6/rasterio/tools
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.6
creating build/temp.linux-x86_64-3.6/rasterio
gcc -pthread -B /my-data/apps/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/cheeseman/.local/lib/python3.6/site-packages/numpy/core/include -I/my-data/apps/anaconda3/include/python3.6m -c rasterio/_base.c -o build/temp.linux-x86_64-3.6/rasterio/_base.o -Wno-unused-parameter -Wno-unused-function
rasterio/_base.c:263:22: fatal error: cpl_conv.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/my-data/apps/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-aes97dkc/rasterio/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-zjacgnjy-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-aes97dkc/rasterio/
I can not install landsat-util on my ubuntu 16.04 machine.
following error occurs:
looks like the c compiler can not execute all needed code for rasterio.