Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS 10.14.4: pip3 install gdal Failed #1465

Closed
gitzhang opened this issue Apr 21, 2019 · 2 comments
Closed

macOS 10.14.4: pip3 install gdal Failed #1465

gitzhang opened this issue Apr 21, 2019 · 2 comments

Comments

@gitzhang
Copy link

Running setup.py install for gdal ... error
Complete output from command /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u -c "import setuptools, tokenize;file='/private/var/folders/48/f1k3p6cs4pd9znz36lr5tns80000gn/T/pip-install-fa_85236/gdal/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /private/var/folders/48/f1k3p6cs4pd9znz36lr5tns80000gn/T/pip-record-k2svusyk/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.macosx-10.6-intel-3.7
copying gdal.py -> build/lib.macosx-10.6-intel-3.7
copying ogr.py -> build/lib.macosx-10.6-intel-3.7
copying osr.py -> build/lib.macosx-10.6-intel-3.7
copying gdalconst.py -> build/lib.macosx-10.6-intel-3.7
copying gdalnumeric.py -> build/lib.macosx-10.6-intel-3.7
creating build/lib.macosx-10.6-intel-3.7/osgeo
copying osgeo/gnm.py -> build/lib.macosx-10.6-intel-3.7/osgeo
copying osgeo/init.py -> build/lib.macosx-10.6-intel-3.7/osgeo
copying osgeo/gdalnumeric.py -> build/lib.macosx-10.6-intel-3.7/osgeo
copying osgeo/osr.py -> build/lib.macosx-10.6-intel-3.7/osgeo
copying osgeo/gdal.py -> build/lib.macosx-10.6-intel-3.7/osgeo
copying osgeo/ogr.py -> build/lib.macosx-10.6-intel-3.7/osgeo
copying osgeo/gdal_array.py -> build/lib.macosx-10.6-intel-3.7/osgeo
copying osgeo/gdalconst.py -> build/lib.macosx-10.6-intel-3.7/osgeo
Fixing build/lib.macosx-10.6-intel-3.7/gdal.py build/lib.macosx-10.6-intel-3.7/ogr.py build/lib.macosx-10.6-intel-3.7/osr.py build/lib.macosx-10.6-intel-3.7/gdalconst.py build/lib.macosx-10.6-intel-3.7/gdalnumeric.py build/lib.macosx-10.6-intel-3.7/osgeo/gnm.py build/lib.macosx-10.6-intel-3.7/osgeo/init.py build/lib.macosx-10.6-intel-3.7/osgeo/gdalnumeric.py build/lib.macosx-10.6-intel-3.7/osgeo/osr.py build/lib.macosx-10.6-intel-3.7/osgeo/gdal.py build/lib.macosx-10.6-intel-3.7/osgeo/ogr.py build/lib.macosx-10.6-intel-3.7/osgeo/gdal_array.py build/lib.macosx-10.6-intel-3.7/osgeo/gdalconst.py
Skipping optional fixer: ws_comma
Fixing build/lib.macosx-10.6-intel-3.7/gdal.py build/lib.macosx-10.6-intel-3.7/ogr.py build/lib.macosx-10.6-intel-3.7/osr.py build/lib.macosx-10.6-intel-3.7/gdalconst.py build/lib.macosx-10.6-intel-3.7/gdalnumeric.py build/lib.macosx-10.6-intel-3.7/osgeo/gnm.py build/lib.macosx-10.6-intel-3.7/osgeo/init.py build/lib.macosx-10.6-intel-3.7/osgeo/gdalnumeric.py build/lib.macosx-10.6-intel-3.7/osgeo/osr.py build/lib.macosx-10.6-intel-3.7/osgeo/gdal.py build/lib.macosx-10.6-intel-3.7/osgeo/ogr.py build/lib.macosx-10.6-intel-3.7/osgeo/gdal_array.py build/lib.macosx-10.6-intel-3.7/osgeo/gdalconst.py
Skipping optional fixer: ws_comma
running build_ext
gcc -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -g -Wno-error=unused-command-line-argument-hard-error-in-future -Wno-error=unused-command-line-argument-hard-error-in-future -I../../port -I../../gcore -I../../alg -I../../ogr/ -I../../ogr/ogrsf_frmts -I../../gnm -I../../apps -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/numpy/core/include -I/usr/local/Cellar/gdal/2.4.1/include -c gdal_python_cxx11_test.cpp -o gdal_python_cxx11_test.o
gcc -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -g -Wno-error=unused-command-line-argument-hard-error-in-future -Wno-error=unused-command-line-argument-hard-error-in-future -I../../port -I../../gcore -I../../alg -I../../ogr/ -I../../ogr/ogrsf_frmts -I../../gnm -I../../apps -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/numpy/core/include -I/usr/local/Cellar/gdal/2.4.1/include -c gdal_python_cxx11_test.cpp -o gdal_python_cxx11_test.o -std=c++11
building 'osgeo._gdal' extension
creating build/temp.macosx-10.6-intel-3.7
creating build/temp.macosx-10.6-intel-3.7/extensions
gcc -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -g -Wno-error=unused-command-line-argument-hard-error-in-future -Wno-error=unused-command-line-argument-hard-error-in-future -I../../port -I../../gcore -I../../alg -I../../ogr/ -I../../ogr/ogrsf_frmts -I../../gnm -I../../apps -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/numpy/core/include -I/usr/local/Cellar/gdal/2.4.1/include -c extensions/gdal_wrap.cpp -o build/temp.macosx-10.6-intel-3.7/extensions/gdal_wrap.o -std=c++11 -I/usr/local/Cellar/gdal/2.4.1/include
warning: unknown warning option '-Werror=unused-command-line-argument-hard-error-in-future'; did you mean '-Werror=unused-command-line-argument'? [-Wunknown-warning-option]
warning: unknown warning option '-Werror=unused-command-line-argument-hard-error-in-future'; did you mean '-Werror=unused-command-line-argument'? [-Wunknown-warning-option]
warning: include path for stdlibc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
extensions/gdal_wrap.cpp:3096:10: fatal error: 'stdexcept' file not found
#include
^~~~~~~~~~~
3 warnings and 1 error generated.
error: command 'gcc' failed with exit status 1

=========================
macOS 10.14.4 (18E226)

brew install gdal
pip3 install gdal

@chbrandt
Copy link

@gitzhang Could you please use a better title for your question?
Your issue is probably related to MacOS Mojave (10.14), a meaningful title would help (probably the developers, but also) people like me -- with a similar issue -- not being wrongly pulled.
Thanks

@rouault rouault changed the title pip3 install gdal Failed macOS 10.14.4: pip3 install gdal Failed Apr 27, 2019
@rouault
Copy link
Member

rouault commented May 9, 2019

Closing that one in favor of #1523 which has slightly more information

@rouault rouault closed this as completed May 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants