[QGIS-Developer] GDAL 2.2.4 Python 3.6.4 Install error in Mac OS X El Capitan (10.11.6) and QGIS3.0 : setup.py and gdal-config errors

Noli Sicad nsicad at gmail.com
Tue Apr 3 01:41:06 PDT 2018


Disregard this error.

The processing plugin loads now properly.

I think downloaded and installed the wrong version (32bit / 10.6) of
the python3.6.x. instead of 64bit / 10.9). It seems that python 3.6.5
is properly installed now.

Noli



On Mon, Apr 2, 2018 at 5:08 PM, Noli Sicad <nsicad at gmail.com> wrote:
> Hi William,
>
> I am trying python GDAL (GDAL2.2.4 and Python 3.6.4) in Mac OS X El
> Capitan (10.11.6) and QGIS3.0.
>
> sudo pip3 install gdal
>
> I got this error:
>
> File "/private/tmp/pip-build-e4ca_ecz/gdal/setup.py", line 138, in fetch_config
>         raise gdal_config_error(e)
>     __main__.gdal_config_error: [Errno 2] No such file or directory:
> 'gdal-config': 'gdal-config'
>
> I tried several suggestions in the net however, the error getting
> worst that this.
>
> Any suggestion how to fix this?
>
> Here's the log below.
>
>
> Thanks.
>
> Noli
>
> ~~~~~~~~~~~
>
> Nolis-MBP:AA_QGIS nolisicad$ sudo pip3 install gdal
> Password:
> The directory '/Users/nolisicad/Library/Caches/pip/http' or its parent
> directory is not owned by the current user and the cache has been
> disabled. Please check the permissions and owner of that directory. If
> executing pip with sudo, you may want sudo's -H flag.
> The directory '/Users/nolisicad/Library/Caches/pip' or its parent
> directory is not owned by the current user and caching wheels has been
> disabled. check the permissions and owner of that directory. If
> executing pip with sudo, you may want sudo's -H flag.
> Collecting gdal
>   Downloading GDAL-2.2.4.tar.gz (475kB)
>     100% |████████████████████████████████| 481kB 733kB/s
>     Complete output from command python setup.py egg_info:
>     running egg_info
>     creating pip-egg-info/GDAL.egg-info
>     writing pip-egg-info/GDAL.egg-info/PKG-INFO
>     writing dependency_links to pip-egg-info/GDAL.egg-info/dependency_links.txt
>     writing top-level names to pip-egg-info/GDAL.egg-info/top_level.txt
>     writing manifest file 'pip-egg-info/GDAL.egg-info/SOURCES.txt'
>     warning: manifest_maker: standard file '-c' not found
>
>     Traceback (most recent call last):
>       File "/private/tmp/pip-build-e4ca_ecz/gdal/setup.py", line 134,
> in fetch_config
>         p = subprocess.Popen([command, args], stdout=subprocess.PIPE)
>       File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py",
> line 709, in __init__
>         restore_signals, start_new_session)
>       File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py",
> line 1344, in _execute_child
>         raise child_exception_type(errno_num, err_msg, err_filename)
>     FileNotFoundError: [Errno 2] No such file or directory:
> '../../apps/gdal-config': '../../apps/gdal-config'
>
>     During handling of the above exception, another exception occurred:
>
>     Traceback (most recent call last):
>       File "/private/tmp/pip-build-e4ca_ecz/gdal/setup.py", line 182,
> in get_gdal_config
>         return fetch_config(option, gdal_config = self.gdal_config)
>       File "/private/tmp/pip-build-e4ca_ecz/gdal/setup.py", line 138,
> in fetch_config
>         raise gdal_config_error(e)
>     __main__.gdal_config_error: [Errno 2] No such file or directory:
> '../../apps/gdal-config': '../../apps/gdal-config'
>
>     During handling of the above exception, another exception occurred:
>
>     Traceback (most recent call last):
>       File "/private/tmp/pip-build-e4ca_ecz/gdal/setup.py", line 134,
> in fetch_config
>         p = subprocess.Popen([command, args], stdout=subprocess.PIPE)
>       File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py",
> line 709, in __init__
>         restore_signals, start_new_session)
>       File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py",
> line 1344, in _execute_child
>         raise child_exception_type(errno_num, err_msg, err_filename)
>     FileNotFoundError: [Errno 2] No such file or directory:
> 'gdal-config': 'gdal-config'
>
>     During handling of the above exception, another exception occurred:
>
>     Traceback (most recent call last):
>       File "<string>", line 1, in <module>
>       File "/private/tmp/pip-build-e4ca_ecz/gdal/setup.py", line 342,
> in <module>
>         **extra )
>       File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/core.py",
> line 148, in setup
>         dist.run_commands()
>       File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py",
> line 955, in run_commands
>         self.run_command(cmd)
>       File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py",
> line 974, in run_command
>         cmd_obj.run()
>       File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/command/egg_info.py",
> line 279, in run
>         self.find_sources()
>       File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/command/egg_info.py",
> line 306, in find_sources
>         mm.run()
>       File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/command/egg_info.py",
> line 533, in run
>         self.add_defaults()
>       File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/command/egg_info.py",
> line 562, in add_defaults
>         sdist.add_defaults(self)
>       File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/command/py36compat.py",
> line 36, in add_defaults
>         self._add_defaults_ext()
>       File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/command/py36compat.py",
> line 119, in _add_defaults_ext
>         build_ext = self.get_finalized_command('build_ext')
>       File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py",
> line 299, in get_finalized_command
>         cmd_obj.ensure_finalized()
>       File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py",
> line 107, in ensure_finalized
>         self.finalize_options()
>       File "/private/tmp/pip-build-e4ca_ecz/gdal/setup.py", line 217,
> in finalize_options
>         self.gdaldir = self.get_gdal_config('prefix')
>       File "/private/tmp/pip-build-e4ca_ecz/gdal/setup.py", line 191,
> in get_gdal_config
>         return fetch_config(option)
>       File "/private/tmp/pip-build-e4ca_ecz/gdal/setup.py", line 138,
> in fetch_config
>         raise gdal_config_error(e)
>     __main__.gdal_config_error: [Errno 2] No such file or directory:
> 'gdal-config': 'gdal-config'
>
>     ----------------------------------------
> Command "python setup.py egg_info" failed with error code 1 in
> /private/tmp/pip-build-e4ca_ecz/gdal/


More information about the QGIS-Developer mailing list