Problem with GDAL version
I'm trying to installa Arosics with Poetry but I'm facing on the problem below:
Using version ^1.7.0 for arosics
Updating dependencies
Resolving dependencies... (12.3s)
Writing lock file
Package operations: 25 installs, 0 updates, 0 removals
• Installing cycler (0.10.0)
• Installing kiwisolver (1.3.2)
• Installing gdal (3.3.2): Failed
EnvCommandError
Command ['/home/maxdragonheart/.cache/pypoetry/virtualenvs/earthalytics-core-4nyNtiRb-py3.8/bin/pip', 'install', '--no-deps', 'file:///home/maxdragonheart/.cache/pypoetry/artifacts/bd/48/8b/9c95fb5de5ad38f10ca7ab3d184f06d3862d40972e49e7ad52add00b7e/GDAL-3.3.2.tar.gz'] errored with the following return code 1, and output:
Processing /home/maxdragonheart/.cache/pypoetry/artifacts/bd/48/8b/9c95fb5de5ad38f10ca7ab3d184f06d3862d40972e49e7ad52add00b7e/GDAL-3.3.2.tar.gz
ERROR: Command errored out with exit status 1:
command: /home/maxdragonheart/.cache/pypoetry/virtualenvs/earthalytics-core-4nyNtiRb-py3.8/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-ppj_3gbe/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-ppj_3gbe/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.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-pcwzp2zb
cwd: /tmp/pip-req-build-ppj_3gbe/
Complete output (118 lines):
running egg_info
creating /tmp/pip-pip-egg-info-pcwzp2zb/GDAL.egg-info
writing /tmp/pip-pip-egg-info-pcwzp2zb/GDAL.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-pip-egg-info-pcwzp2zb/GDAL.egg-info/dependency_links.txt
writing requirements to /tmp/pip-pip-egg-info-pcwzp2zb/GDAL.egg-info/requires.txt
writing top-level names to /tmp/pip-pip-egg-info-pcwzp2zb/GDAL.egg-info/top_level.txt
writing manifest file '/tmp/pip-pip-egg-info-pcwzp2zb/GDAL.egg-info/SOURCES.txt'
Traceback (most recent call last):
File "/tmp/pip-req-build-ppj_3gbe/setup.py", line 121, in fetch_config
p = subprocess.Popen([command, args], stdout=subprocess.PIPE)
File "/usr/lib/python3.8/subprocess.py", line 858, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.8/subprocess.py", line 1704, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '../../apps/gdal-config'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/pip-req-build-ppj_3gbe/setup.py", line 205, in get_gdal_config
return fetch_config(option, gdal_config=self.gdal_config)
File "/tmp/pip-req-build-ppj_3gbe/setup.py", line 124, in fetch_config
raise gdal_config_error(e)
__main__.gdal_config_error: [Errno 2] No such file or directory: '../../apps/gdal-config'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/pip-req-build-ppj_3gbe/setup.py", line 121, in fetch_config
p = subprocess.Popen([command, args], stdout=subprocess.PIPE)
File "/usr/lib/python3.8/subprocess.py", line 858, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.8/subprocess.py", line 1704, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'gdal-config'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/pip-req-build-ppj_3gbe/setup.py", line 212, in get_gdal_config
return fetch_config(option)
File "/tmp/pip-req-build-ppj_3gbe/setup.py", line 124, in fetch_config
raise gdal_config_error(e)
__main__.gdal_config_error: [Errno 2] No such file or directory: 'gdal-config'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-req-build-ppj_3gbe/setup.py", line 414, in <module>
setup(**setup_kwargs)
File "/home/maxdragonheart/.cache/pypoetry/virtualenvs/earthalytics-core-4nyNtiRb-py3.8/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/maxdragonheart/.cache/pypoetry/virtualenvs/earthalytics-core-4nyNtiRb-py3.8/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 299, in run
self.find_sources()
File "/home/maxdragonheart/.cache/pypoetry/virtualenvs/earthalytics-core-4nyNtiRb-py3.8/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 306, in find_sources
mm.run()
File "/home/maxdragonheart/.cache/pypoetry/virtualenvs/earthalytics-core-4nyNtiRb-py3.8/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 541, in run
self.add_defaults()
File "/home/maxdragonheart/.cache/pypoetry/virtualenvs/earthalytics-core-4nyNtiRb-py3.8/lib/python3.8/site-packages/setuptools/command/egg_info.py", line 578, in add_defaults
sdist.add_defaults(self)
File "/usr/lib/python3.8/distutils/command/sdist.py", line 228, in add_defaults
self._add_defaults_ext()
File "/usr/lib/python3.8/distutils/command/sdist.py", line 311, in _add_defaults_ext
build_ext = self.get_finalized_command('build_ext')
File "/usr/lib/python3.8/distutils/cmd.py", line 299, in get_finalized_command
cmd_obj.ensure_finalized()
File "/usr/lib/python3.8/distutils/cmd.py", line 107, in ensure_finalized
self.finalize_options()
File "/tmp/pip-req-build-ppj_3gbe/setup.py", line 275, in finalize_options
self.gdaldir = self.get_gdal_config('prefix')
File "/tmp/pip-req-build-ppj_3gbe/setup.py", line 218, in get_gdal_config
raise gdal_config_error(traceback_string + '\n' + msg)
__main__.gdal_config_error: Traceback (most recent call last):
File "/tmp/pip-req-build-ppj_3gbe/setup.py", line 121, in fetch_config
p = subprocess.Popen([command, args], stdout=subprocess.PIPE)
File "/usr/lib/python3.8/subprocess.py", line 858, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.8/subprocess.py", line 1704, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '../../apps/gdal-config'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/pip-req-build-ppj_3gbe/setup.py", line 205, in get_gdal_config
return fetch_config(option, gdal_config=self.gdal_config)
File "/tmp/pip-req-build-ppj_3gbe/setup.py", line 124, in fetch_config
raise gdal_config_error(e)
gdal_config_error: [Errno 2] No such file or directory: '../../apps/gdal-config'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/pip-req-build-ppj_3gbe/setup.py", line 121, in fetch_config
p = subprocess.Popen([command, args], stdout=subprocess.PIPE)
File "/usr/lib/python3.8/subprocess.py", line 858, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.8/subprocess.py", line 1704, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'gdal-config'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/pip-req-build-ppj_3gbe/setup.py", line 212, in get_gdal_config
return fetch_config(option)
File "/tmp/pip-req-build-ppj_3gbe/setup.py", line 124, in fetch_config
raise gdal_config_error(e)
gdal_config_error: [Errno 2] No such file or directory: 'gdal-config'
Could not find gdal-config. Make sure you have installed the GDAL native library and development headers.
----------------------------------------
WARNING: Discarding file:///home/maxdragonheart/.cache/pypoetry/artifacts/bd/48/8b/9c95fb5de5ad38f10ca7ab3d184f06d3862d40972e49e7ad52add00b7e/GDAL-3.3.2.tar.gz. 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: python setup.py egg_info Check the logs for full command output.
WARNING: You are using pip version 21.1.3; however, version 21.2.4 is available.
You should consider upgrading via the '/home/maxdragonheart/.cache/pypoetry/virtualenvs/earthalytics-core-4nyNtiRb-py3.8/bin/python -m pip install --upgrade pip' command.
at ~/.poetry/lib/poetry/utils/env.py:1180 in _run
1176│ output = subprocess.check_output(
1177│ cmd, stderr=subprocess.STDOUT, **kwargs
1178│ )
1179│ except CalledProcessError as e:
→ 1180│ raise EnvCommandError(e, input=input_)
1181│
1182│ return decode(output)
1183│
1184│ def execute(self, bin, *args, **kwargs):
• Installing imageio (2.9.0)
• Installing matplotlib (3.4.3)
• Installing networkx (2.6.3)
• Installing pyshp (2.1.3)
• Installing pywavelets (1.1.1)
• Installing spectral (0.22.4)
• Installing tifffile (2021.10.12)
Failed to add packages, reverting the pyproject.toml file to its original content.
My current GDAL version is GDAL 3.2.1, released 2020/12/29
and I use it with QGIS and many other software.
Is there a way to bypass the installation of version 3.3.2
?