K
K
koi2h2021-08-24 10:49:51
Python
koi2h, 2021-08-24 10:49:51

Error ERROR: Command errored out with exit status 1: while installing fiona (python) package?

WARNING: Discarding https://files.pythonhosted.org/packages/25/50/0466... ​​(from https://pypi.org/simple/fiona/ ). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Command errored out with exit status 1:
command: 'C:\Program Files\Python36\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ZAKIRO~1\\AppData\\Local\\Temp\\pip-install-bsjj86zn\\fiona_7dd7bdff5331402e8f3a87812016536d\\setup.py'"'" '; __file__='"'"'C:\\Users\\ZAKIRO~1\\AppData\\Local\\Temp\\pip-install-bsjj86zn\\fiona_7dd7bdff5331402e8f3a87812016536d\\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.
Complete output (1 lines):
A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
----------------------------------------
WARNING: Discarding https://files.pythonhosted .org/packages/3e/5f/0c67... (from https://pypi.org/simple/fiona/ ). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Command errored out with exit status 1:
command: 'C:\Program Files\Python36\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ZAKIRO~1\\AppData\\Local\\Temp\\pip-install-bsjj86zn\\fiona_9ef79f1ccf6b45ebae9621e50ccc1793\\setup.py'"'" '; __file__='"'"'C:\\Users\\ZAKIRO~1\\AppData\\Local\\Temp\\pip-install-bsjj86zn\\fiona_9ef79f1ccf6b45ebae9621e50ccc1793\\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.
Complete output (1 lines):
A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
----------------------------------------
WARNING: Discarding https://files.pythonhosted .org/packages/2a/bd/c1ef... (from https://pypi.org/simple/fiona/ ). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Command errored out with exit status 1:
command: 'C:\Program Files\Python36\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ZAKIRO~1\\AppData\\Local\\Temp\\pip-install-bsjj86zn\\fiona_04051d25182c47e190bfb579ccc7bfcd\\setup.py'"'" '; __file__='"'"'C:\\Users\\ZAKIRO~1\\AppData\\Local\\Temp\\pip-install-bsjj86zn\\fiona_04051d25182c47e190bfb579ccc7bfcd\\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.
cwd: C:\Users\ZAKIRO~1\AppData\Local\Temp\pip-install-bsjj86zn\fiona_04051d25182c47e190bfb579ccc7bfcd\
Complete output (50 lines):
C:\Program Files\Python36\lib\distutils\dist.py:261: UserWarning: Unknown distribution option: 'metadata_version'
warnings.warn(msg)
C:\Program Files\Python36\lib\distutils\dist.py:261: UserWarning: Unknown distribution option: 'requires_python'
warnings.warn(msg)
C: \Program Files\Python36\lib\distutils\dist.py:261: UserWarning: Unknown distribution option: 'requires_external'
warnings.warn(msg)
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\fiona
copying .\fiona\collection.py -> build\lib.win-amd64-3.6\fiona
copying .\fiona\compat.py -> build\lib.win-amd64 -3.6\fiona
copying .\fiona\crs.py -> build\lib.win-amd64-3.6\fiona
copying .\fiona\drvsupport.py -> build\lib.win-amd64-3.6\fiona
copying .\fiona \errors.py -> build\lib.win-amd64-3.6\fiona
copying .\fiona\inspector.py -> build\lib.win-amd64-3.6\fiona
copying .\fiona\rfc3339.py -> build\ lib.win-amd64-3.6\fiona
copying .\fiona\tool.py -> build\lib.win-amd64-3.6\fiona
copying .\fiona\transform.py -> build\lib.win-amd64-3.6\ fiona
copying .\fiona\__init__.py -> build\lib.win-amd64-3.6\fiona
creating build\lib.win-amd64-3.6\fiona\fio
copying .\fiona\fio\bounds.py -> build\lib.win-amd64-3.6\fiona\fio
copying .\fiona\fio\calc.py - > build\lib.win-amd64-3.6\fiona\fio
copying .\fiona\fio\cat.py -> build\lib.win-amd64-3.6\fiona\fio
copying .\fiona\fio\collect.py - > build\lib.win-amd64-3.6\fiona\fio
copying .\fiona\fio\distrib.py -> build\lib.win-amd64-3.6\fiona\fio
copying .\fiona\fio\dump.py - > build\lib.win-amd64-3.6\fiona\fio
copying .\fiona\fio\env.py -> build\lib.win-amd64-3.6\fiona\fio
copying .\fiona\fio\filter.py - > build\lib.win-amd64-3.6\fiona\fio
copying .\fiona\fio\helpers.py -> build\lib.win-amd64-3.6\fiona\fio
copying .\fiona\fio\info.py -> build\lib.win-amd64-3.6\fiona\fio
copying .\fiona\fio\insp.py -> build\lib.win-amd64-3.6\fiona\fio
copying .\fiona\fio\load.py -> build\lib.win-amd64-3.6\fiona\fio
copying .\fiona\fio\ls.py -> build\lib.win-amd64-3.6\fiona\fio
copying .\fiona\fio\main.py -> build\lib.win-amd64-3.6\fiona\fio
copying .\fiona\fio\options.py -> build\lib.win-amd64-3.6\fiona\fio
copying .\fiona\fio\__init__.py -> build\lib.win-amd64-3.6\fiona\fio
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
building 'fiona._transform' extension
creating build\temp.win-amd64-3.6
creating build\temp.win-amd64-3.6\Release
creating build\temp.win-amd64-3.6\Release\fiona
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD "-IC:\Program Files\Python36\include" "-IC:\Program Files\Python36\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16 .27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\ 10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\ include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /EHsc /Tpfiona/_transform.cpp /Fobuild\temp.win-amd64-3.6\Release\fiona /_transform.obj
_transform.cpp
fiona/_transform.cpp(606): fatal error C1083: Cpl_conv.h: No such file or directory,
error: command 'C:\\Program Files ( x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
--- -------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Program Files\Python36\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ZAKIRO~1\\AppData\\Local\\Temp\\pip-install-bsjj86zn\\fiona_04051d25182c47e190bfb579ccc7bfcd\\setup.py'"'" '; __file__='"'"'C:\\Users\\ZAKIRO~1\\AppData\\Local\\Temp\\pip-install-bsjj86zn\\fiona_04051d25182c47e190bfb579ccc7bfcd\\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'"'"', '"'"'

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alan Gibizov, 2021-08-24
@phaggi

Fiona requires Python versions 3.6+ and GDAL version 1.11-3.0. To build from a source distribution you will need a C compiler and GDAL and Python development headers and libraries (libgdal1-dev for Debian/Ubuntu, gdal-dev for CentOS/Fedora).
To build from a repository copy, you will also need Cython to build C sources from the project's .pyx files. See the project's requirements-dev.txt file for guidance.
The Kyngchaos GDAL frameworks will satisfy the GDAL/OGR dependency for OS X, as will Homebrew's GDAL Formula (brew install gdal).

I think it's GDAL. Here you either need to install it separately, or if you are compiling all this yourself, then it looks like you need cython to build ... but do not want to install from wheel?

A
alexbprofit, 2021-08-24
@alexbprofit

conda install fiona

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question