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

Gdal install error #1762

Closed
fedebais opened this issue Aug 10, 2019 · 5 comments
Closed

Gdal install error #1762

fedebais opened this issue Aug 10, 2019 · 5 comments

Comments

@fedebais
Copy link

Hi how are you? i have a issue when i try to install gdal library. what can i do to resolve?
thanks

Federicos-MacBook-Pro:osgeo fewcom$ pip install gdal
Collecting gdal
Using cached https://files.pythonhosted.org/packages/26/c6/f8846ba726b37f9a1099acb5bff43c309fb913577674c1ba491f6fc60598/GDAL-3.0.1.tar.gz
Building wheels for collected packages: gdal
Building wheel for gdal (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/nw/v_mm0gjn15j_p4fsyytz9wlw0000gn/T/pip-install-e42i5oui/gdal/setup.py'"'"'; file='"'"'/private/var/folders/nw/v_mm0gjn15j_p4fsyytz9wlw0000gn/T/pip-install-e42i5oui/gdal/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 /private/var/folders/nw/v_mm0gjn15j_p4fsyytz9wlw0000gn/T/pip-wheel-5odw8qdh --python-tag cp37
cwd: /private/var/folders/nw/v_mm0gjn15j_p4fsyytz9wlw0000gn/T/pip-install-e42i5oui/gdal/
Complete output (93 lines):
WARNING: numpy not available! Array support will not be enabled
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.7
copying gdal.py -> build/lib.macosx-10.9-x86_64-3.7
copying ogr.py -> build/lib.macosx-10.9-x86_64-3.7
copying osr.py -> build/lib.macosx-10.9-x86_64-3.7
copying gdalconst.py -> build/lib.macosx-10.9-x86_64-3.7
creating build/lib.macosx-10.9-x86_64-3.7/osgeo
copying osgeo/gnm.py -> build/lib.macosx-10.9-x86_64-3.7/osgeo
copying osgeo/init.py -> build/lib.macosx-10.9-x86_64-3.7/osgeo
copying osgeo/gdalnumeric.py -> build/lib.macosx-10.9-x86_64-3.7/osgeo
copying osgeo/osr.py -> build/lib.macosx-10.9-x86_64-3.7/osgeo
copying osgeo/gdal.py -> build/lib.macosx-10.9-x86_64-3.7/osgeo
copying osgeo/ogr.py -> build/lib.macosx-10.9-x86_64-3.7/osgeo
copying osgeo/gdal_array.py -> build/lib.macosx-10.9-x86_64-3.7/osgeo
copying osgeo/gdalconst.py -> build/lib.macosx-10.9-x86_64-3.7/osgeo
Fixing build/lib.macosx-10.9-x86_64-3.7/gdal.py build/lib.macosx-10.9-x86_64-3.7/ogr.py build/lib.macosx-10.9-x86_64-3.7/osr.py build/lib.macosx-10.9-x86_64-3.7/gdalconst.py build/lib.macosx-10.9-x86_64-3.7/osgeo/gnm.py build/lib.macosx-10.9-x86_64-3.7/osgeo/init.py build/lib.macosx-10.9-x86_64-3.7/osgeo/gdalnumeric.py build/lib.macosx-10.9-x86_64-3.7/osgeo/osr.py build/lib.macosx-10.9-x86_64-3.7/osgeo/gdal.py build/lib.macosx-10.9-x86_64-3.7/osgeo/ogr.py build/lib.macosx-10.9-x86_64-3.7/osgeo/gdal_array.py build/lib.macosx-10.9-x86_64-3.7/osgeo/gdalconst.py
Skipping optional fixer: ws_comma
Fixing build/lib.macosx-10.9-x86_64-3.7/gdal.py build/lib.macosx-10.9-x86_64-3.7/ogr.py build/lib.macosx-10.9-x86_64-3.7/osr.py build/lib.macosx-10.9-x86_64-3.7/gdalconst.py build/lib.macosx-10.9-x86_64-3.7/osgeo/gnm.py build/lib.macosx-10.9-x86_64-3.7/osgeo/init.py build/lib.macosx-10.9-x86_64-3.7/osgeo/gdalnumeric.py build/lib.macosx-10.9-x86_64-3.7/osgeo/osr.py build/lib.macosx-10.9-x86_64-3.7/osgeo/gdal.py build/lib.macosx-10.9-x86_64-3.7/osgeo/ogr.py build/lib.macosx-10.9-x86_64-3.7/osgeo/gdal_array.py build/lib.macosx-10.9-x86_64-3.7/osgeo/gdalconst.py
Skipping optional fixer: ws_comma
running build_ext
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -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. -I/usr/local/Cellar/gdal/2.4.2/include -c gdal_python_cxx11_test.cpp -o gdal_python_cxx11_test.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -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. -I/usr/local/Cellar/gdal/2.4.2/include -c gdal_python_cxx11_test.cpp -o gdal_python_cxx11_test.o -std=c++11
creating var
creating var/folders
creating var/folders/nw
creating var/folders/nw/v_mm0gjn15j_p4fsyytz9wlw0000gn
creating var/folders/nw/v_mm0gjn15j_p4fsyytz9wlw0000gn/T
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -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. -I/usr/local/Cellar/gdal/2.4.2/include -c /var/folders/nw/v_mm0gjn15j_p4fsyytz9wlw0000gn/T/tmpw6w3wgpv.cpp -o var/folders/nw/v_mm0gjn15j_p4fsyytz9wlw0000gn/T/tmpw6w3wgpv.o -Wno-error=unused-command-line-argument-hard-error-in-future
warning: unknown warning option '-Werror=unused-command-line-argument-hard-error-in-future'; did you mean '-Werror=unused-command-line-argument'? [-Wunknown-warning-option]
1 warning generated.
building 'osgeo._gdal' extension
creating build/temp.macosx-10.9-x86_64-3.7
creating build/temp.macosx-10.9-x86_64-3.7/extensions
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -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. -I/usr/local/Cellar/gdal/2.4.2/include -c extensions/gdal_wrap.cpp -o build/temp.macosx-10.9-x86_64-3.7/extensions/gdal_wrap.o -std=c++11 -I/usr/local/Cellar/gdal/2.4.2/include
extensions/gdal_wrap.cpp:4672:32: error: use of undeclared identifier 'GDALGetSpatialRef'; did you mean 'OGR_L_GetSpatialRef'?
OGRSpatialReferenceH ref = GDALGetSpatialRef(self);
^~~~~~~~~~~~~~~~~
OGR_L_GetSpatialRef
/usr/local/Cellar/gdal/2.4.2/include/ogr_api.h:584:30: note: 'OGR_L_GetSpatialRef' declared here
OGRSpatialReferenceH CPL_DLL OGR_L_GetSpatialRef( OGRLayerH );
^
extensions/gdal_wrap.cpp:4681:6: error: use of undeclared identifier 'GDALSetSpatialRef'
GDALSetSpatialRef( self, (OGRSpatialReferenceH)srs );
^
extensions/gdal_wrap.cpp:4722:32: error: use of undeclared identifier 'GDALGetGCPSpatialRef'
OGRSpatialReferenceH ref = GDALGetGCPSpatialRef(self);
^
extensions/gdal_wrap.cpp:4735:12: error: use of undeclared identifier 'GDALSetGCPs2'; did you mean 'GDALSetGCPs'?
return GDALSetGCPs2( self, nGCPs, pGCPs, (OGRSpatialReferenceH)hSRS );
^~~~~~~~~~~~
GDALSetGCPs
/usr/local/Cellar/gdal/2.4.2/include/gdal.h:672:28: note: 'GDALSetGCPs' declared here
CPLErr CPL_DLL CPL_STDCALL GDALSetGCPs( GDALDatasetH, int, const GDAL_GCP *,
^
extensions/gdal_wrap.cpp:4735:46: error: cannot initialize a parameter of type 'const char *' with an rvalue of type 'OGRSpatialReferenceH' (aka 'void *')
return GDALSetGCPs2( self, nGCPs, pGCPs, (OGRSpatialReferenceH)hSRS );
^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/Cellar/gdal/2.4.2/include/gdal.h:673:54: note: passing argument to parameter here
const char * );
^
extensions/gdal_wrap.cpp:7850:17: warning: 'PyObject_AsReadBuffer' is deprecated [-Wdeprecated-declarations]
int res = PyObject_AsReadBuffer(obj0, &safeBuf, &safeLen);
^
/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/abstract.h:492:39: note: 'PyObject_AsReadBuffer' has been explicitly marked deprecated here
Py_DEPRECATED(3.0);
^
/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pyport.h:493:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
extensions/gdal_wrap.cpp:9215:17: warning: 'PyObject_AsReadBuffer' is deprecated [-Wdeprecated-declarations]
int res = PyObject_AsReadBuffer(obj0, &safeBuf, &safeLen);
^
/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/abstract.h:492:39: note: 'PyObject_AsReadBuffer' has been explicitly marked deprecated here
Py_DEPRECATED(3.0);
^
/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pyport.h:493:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
extensions/gdal_wrap.cpp:11485:17: warning: 'PyObject_AsReadBuffer' is deprecated [-Wdeprecated-declarations]
int res = PyObject_AsReadBuffer(obj0, &safeBuf, &safeLen);
^
/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/abstract.h:492:39: note: 'PyObject_AsReadBuffer' has been explicitly marked deprecated here
Py_DEPRECATED(3.0);
^
/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pyport.h:493:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
3 warnings and 5 errors generated.
error: command 'gcc' failed with exit status 1

ERROR: Failed building wheel for gdal
Running setup.py clean for gdal
Failed to build gdal
Installing collected packages: gdal
Running setup.py install for gdal ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/nw/v_mm0gjn15j_p4fsyytz9wlw0000gn/T/pip-install-e42i5oui/gdal/setup.py'"'"'; file='"'"'/private/var/folders/nw/v_mm0gjn15j_p4fsyytz9wlw0000gn/T/pip-install-e42i5oui/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/nw/v_mm0gjn15j_p4fsyytz9wlw0000gn/T/pip-record-au2vy42x/install-record.txt --single-version-externally-managed --compile
cwd: /private/var/folders/nw/v_mm0gjn15j_p4fsyytz9wlw0000gn/T/pip-install-e42i5oui/gdal/
Complete output (88 lines):
WARNING: numpy not available! Array support will not be enabled
running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.7
copying gdal.py -> build/lib.macosx-10.9-x86_64-3.7
copying ogr.py -> build/lib.macosx-10.9-x86_64-3.7
copying osr.py -> build/lib.macosx-10.9-x86_64-3.7
copying gdalconst.py -> build/lib.macosx-10.9-x86_64-3.7
creating build/lib.macosx-10.9-x86_64-3.7/osgeo
copying osgeo/gnm.py -> build/lib.macosx-10.9-x86_64-3.7/osgeo
copying osgeo/init.py -> build/lib.macosx-10.9-x86_64-3.7/osgeo
copying osgeo/gdalnumeric.py -> build/lib.macosx-10.9-x86_64-3.7/osgeo
copying osgeo/osr.py -> build/lib.macosx-10.9-x86_64-3.7/osgeo
copying osgeo/gdal.py -> build/lib.macosx-10.9-x86_64-3.7/osgeo
copying osgeo/ogr.py -> build/lib.macosx-10.9-x86_64-3.7/osgeo
copying osgeo/gdal_array.py -> build/lib.macosx-10.9-x86_64-3.7/osgeo
copying osgeo/gdalconst.py -> build/lib.macosx-10.9-x86_64-3.7/osgeo
Fixing build/lib.macosx-10.9-x86_64-3.7/gdal.py build/lib.macosx-10.9-x86_64-3.7/ogr.py build/lib.macosx-10.9-x86_64-3.7/osr.py build/lib.macosx-10.9-x86_64-3.7/gdalconst.py build/lib.macosx-10.9-x86_64-3.7/osgeo/gnm.py build/lib.macosx-10.9-x86_64-3.7/osgeo/init.py build/lib.macosx-10.9-x86_64-3.7/osgeo/gdalnumeric.py build/lib.macosx-10.9-x86_64-3.7/osgeo/osr.py build/lib.macosx-10.9-x86_64-3.7/osgeo/gdal.py build/lib.macosx-10.9-x86_64-3.7/osgeo/ogr.py build/lib.macosx-10.9-x86_64-3.7/osgeo/gdal_array.py build/lib.macosx-10.9-x86_64-3.7/osgeo/gdalconst.py
Skipping optional fixer: ws_comma
Fixing build/lib.macosx-10.9-x86_64-3.7/gdal.py build/lib.macosx-10.9-x86_64-3.7/ogr.py build/lib.macosx-10.9-x86_64-3.7/osr.py build/lib.macosx-10.9-x86_64-3.7/gdalconst.py build/lib.macosx-10.9-x86_64-3.7/osgeo/gnm.py build/lib.macosx-10.9-x86_64-3.7/osgeo/init.py build/lib.macosx-10.9-x86_64-3.7/osgeo/gdalnumeric.py build/lib.macosx-10.9-x86_64-3.7/osgeo/osr.py build/lib.macosx-10.9-x86_64-3.7/osgeo/gdal.py build/lib.macosx-10.9-x86_64-3.7/osgeo/ogr.py build/lib.macosx-10.9-x86_64-3.7/osgeo/gdal_array.py build/lib.macosx-10.9-x86_64-3.7/osgeo/gdalconst.py
Skipping optional fixer: ws_comma
running build_ext
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -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. -I/usr/local/Cellar/gdal/2.4.2/include -c gdal_python_cxx11_test.cpp -o gdal_python_cxx11_test.o
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -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. -I/usr/local/Cellar/gdal/2.4.2/include -c gdal_python_cxx11_test.cpp -o gdal_python_cxx11_test.o -std=c++11
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -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. -I/usr/local/Cellar/gdal/2.4.2/include -c /var/folders/nw/v_mm0gjn15j_p4fsyytz9wlw0000gn/T/tmpk525tob3.cpp -o var/folders/nw/v_mm0gjn15j_p4fsyytz9wlw0000gn/T/tmpk525tob3.o -Wno-error=unused-command-line-argument-hard-error-in-future
warning: unknown warning option '-Werror=unused-command-line-argument-hard-error-in-future'; did you mean '-Werror=unused-command-line-argument'? [-Wunknown-warning-option]
1 warning generated.
building 'osgeo._gdal' extension
creating build/temp.macosx-10.9-x86_64-3.7
creating build/temp.macosx-10.9-x86_64-3.7/extensions
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -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. -I/usr/local/Cellar/gdal/2.4.2/include -c extensions/gdal_wrap.cpp -o build/temp.macosx-10.9-x86_64-3.7/extensions/gdal_wrap.o -std=c++11 -I/usr/local/Cellar/gdal/2.4.2/include
extensions/gdal_wrap.cpp:4672:32: error: use of undeclared identifier 'GDALGetSpatialRef'; did you mean 'OGR_L_GetSpatialRef'?
OGRSpatialReferenceH ref = GDALGetSpatialRef(self);
^~~~~~~~~~~~~~~~~
OGR_L_GetSpatialRef
/usr/local/Cellar/gdal/2.4.2/include/ogr_api.h:584:30: note: 'OGR_L_GetSpatialRef' declared here
OGRSpatialReferenceH CPL_DLL OGR_L_GetSpatialRef( OGRLayerH );
^
extensions/gdal_wrap.cpp:4681:6: error: use of undeclared identifier 'GDALSetSpatialRef'
GDALSetSpatialRef( self, (OGRSpatialReferenceH)srs );
^
extensions/gdal_wrap.cpp:4722:32: error: use of undeclared identifier 'GDALGetGCPSpatialRef'
OGRSpatialReferenceH ref = GDALGetGCPSpatialRef(self);
^
extensions/gdal_wrap.cpp:4735:12: error: use of undeclared identifier 'GDALSetGCPs2'; did you mean 'GDALSetGCPs'?
return GDALSetGCPs2( self, nGCPs, pGCPs, (OGRSpatialReferenceH)hSRS );
^~~~~~~~~~~~
GDALSetGCPs
/usr/local/Cellar/gdal/2.4.2/include/gdal.h:672:28: note: 'GDALSetGCPs' declared here
CPLErr CPL_DLL CPL_STDCALL GDALSetGCPs( GDALDatasetH, int, const GDAL_GCP *,
^
extensions/gdal_wrap.cpp:4735:46: error: cannot initialize a parameter of type 'const char *' with an rvalue of type 'OGRSpatialReferenceH' (aka 'void *')
return GDALSetGCPs2( self, nGCPs, pGCPs, (OGRSpatialReferenceH)hSRS );
^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/Cellar/gdal/2.4.2/include/gdal.h:673:54: note: passing argument to parameter here
const char * );
^
extensions/gdal_wrap.cpp:7850:17: warning: 'PyObject_AsReadBuffer' is deprecated [-Wdeprecated-declarations]
int res = PyObject_AsReadBuffer(obj0, &safeBuf, &safeLen);
^
/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/abstract.h:492:39: note: 'PyObject_AsReadBuffer' has been explicitly marked deprecated here
Py_DEPRECATED(3.0);
^
/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pyport.h:493:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
extensions/gdal_wrap.cpp:9215:17: warning: 'PyObject_AsReadBuffer' is deprecated [-Wdeprecated-declarations]
int res = PyObject_AsReadBuffer(obj0, &safeBuf, &safeLen);
^
/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/abstract.h:492:39: note: 'PyObject_AsReadBuffer' has been explicitly marked deprecated here
Py_DEPRECATED(3.0);
^
/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pyport.h:493:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
extensions/gdal_wrap.cpp:11485:17: warning: 'PyObject_AsReadBuffer' is deprecated [-Wdeprecated-declarations]
int res = PyObject_AsReadBuffer(obj0, &safeBuf, &safeLen);
^
/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/abstract.h:492:39: note: 'PyObject_AsReadBuffer' has been explicitly marked deprecated here
Py_DEPRECATED(3.0);
^
/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pyport.h:493:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
3 warnings and 5 errors generated.
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/nw/v_mm0gjn15j_p4fsyytz9wlw0000gn/T/pip-install-e42i5oui/gdal/setup.py'"'"'; file='"'"'/private/var/folders/nw/v_mm0gjn15j_p4fsyytz9wlw0000gn/T/pip-install-e42i5oui/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/nw/v_mm0gjn15j_p4fsyytz9wlw0000gn/T/pip-record-au2vy42x/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.

@rouault
Copy link
Member

rouault commented Aug 10, 2019

You need to install the native library GDAL 3.0.1 first. The pypi GDAL module doesn't include wheels.

@rouault rouault closed this as completed Aug 10, 2019
@fedebais
Copy link
Author

fedebais commented Aug 10, 2019

Thanks for you reply
i installed with brew
Federicos-MacBook-Pro:/ fewcom$ gdalinfo --version
GDAL 2.4.2, released 2019/06/28

and i did
it clone https://github.com/OSGeo/GDAL.git
in a folder of my pc

@rouault
Copy link
Member

rouault commented Aug 10, 2019

Then force the python GDAL version to the native lib version with: pip install gdal==2.4.2

@fedebais
Copy link
Author

thanks, how can i update the native version?

@sashkaw
Copy link

sashkaw commented Nov 19, 2022

For anyone having issues installing the right version of GDAL using GitHub Actions, adding the following line to the .yml file as a command to be run during one of the steps might help:

pip install GDAL==$(gdal-config --version)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants