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

[BUG]: installation always fails #432

Open
AWS-Bassem opened this issue Aug 21, 2021 · 3 comments
Open

[BUG]: installation always fails #432

AWS-Bassem opened this issue Aug 21, 2021 · 3 comments

Comments

@AWS-Bassem
Copy link

g++ -pthread -shared -B /home/ec2-user/anaconda3/envs/py37/compiler_compat -L/home/ec2-user/anaconda3/envs/py37/lib -Wl,-rpath=/home/ec2-user/anaconda3/envs/py37/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/extensions/gnm_wrap.o -L../../.libs -L../../ -L/home/ec2-user/anaconda3/envs/py37/lib -lgdal -o build/lib.linux-x86_64-3.7/osgeo/_gnm.cpython-37m-x86_64-linux-gnu.so
/home/ec2-user/anaconda3/envs/py37/compiler_compat/ld: cannot find crti.o: No such file or directory
collect2: error: ld returned 1 exit status
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, solaris
Attempting uninstall: gdal
Found existing installation: GDAL 3.0.2
Uninstalling GDAL-3.0.2:
Successfully uninstalled GDAL-3.0.2
Running setup.py install for gdal ... error
ERROR: Command errored out with exit status 1:
command: /home/ec2-user/anaconda3/envs/py37/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-2wgtjwg8/gdal_5465e3c114f843c8a0d909113819ff34/setup.py'"'"'; file='"'"'/tmp/pip-install-2wgtjwg8/gdal_5465e3c114f843c8a0d909113819ff34/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-uh53hv0g/install-record.txt --single-version-externally-managed --compile --install-headers /home/ec2-user/anaconda3/envs/py37/include/python3.7m/gdal
cwd: /tmp/pip-install-2wgtjwg8/gdal_5465e3c114f843c8a0d909113819ff34/
Complete output (778 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/osgeo
copying osgeo/init.py -> build/lib.linux-x86_64-3.7/osgeo
copying osgeo/gdal.py -> build/lib.linux-x86_64-3.7/osgeo
copying osgeo/gdal_array.py -> build/lib.linux-x86_64-3.7/osgeo
copying osgeo/gdalconst.py -> build/lib.linux-x86_64-3.7/osgeo
copying osgeo/gdalnumeric.py -> build/lib.linux-x86_64-3.7/osgeo
copying osgeo/gnm.py -> build/lib.linux-x86_64-3.7/osgeo
copying osgeo/ogr.py -> build/lib.linux-x86_64-3.7/osgeo
copying osgeo/osr.py -> build/lib.linux-x86_64-3.7/osgeo
copying osgeo/utils.py -> build/lib.linux-x86_64-3.7/osgeo
creating build/lib.linux-x86_64-3.7/osgeo_utils
copying gdal-utils/osgeo_utils/init.py -> build/lib.linux-x86_64-3.7/osgeo_utils
copying gdal-utils/osgeo_utils/gdal2tiles.py -> build/lib.linux-x86_64-3.7/osgeo_utils
copying gdal-utils/osgeo_utils/gdal2xyz.py -> build/lib.linux-x86_64-3.7/osgeo_utils
copying gdal-utils/osgeo_utils/gdal_calc.py -> build/lib.linux-x86_64-3.7/osgeo_utils
copying gdal-utils/osgeo_utils/gdal_edit.py -> build/lib.linux-x86_64-3.7/osgeo_utils
copying gdal-utils/osgeo_utils/gdal_fillnodata.py -> build/lib.linux-x86_64-3.7/osgeo_utils
copying gdal-utils/osgeo_utils/gdal_merge.py -> build/lib.linux-x86_64-3.7/osgeo_utils
copying gdal-utils/osgeo_utils/gdal_pansharpen.py -> build/lib.linux-x86_64-3.7/osgeo_utils
copying gdal-utils/osgeo_utils/gdal_polygonize.py -> build/lib.linux-x86_64-3.7/osgeo_utils
copying gdal-utils/osgeo_utils/gdal_proximity.py -> build/lib.linux-x86_64-3.7/osgeo_utils
copying gdal-utils/osgeo_utils/gdal_retile.py -> build/lib.linux-x86_64-3.7/osgeo_utils
copying gdal-utils/osgeo_utils/gdal_sieve.py -> build/lib.linux-x86_64-3.7/osgeo_utils
copying gdal-utils/osgeo_utils/gdalattachpct.py -> build/lib.linux-x86_64-3.7/osgeo_utils
copying gdal-utils/osgeo_utils/gdalcompare.py -> build/lib.linux-x86_64-3.7/osgeo_utils
copying gdal-utils/osgeo_utils/gdalmove.py -> build/lib.linux-x86_64-3.7/osgeo_utils
copying gdal-utils/osgeo_utils/ogrmerge.py -> build/lib.linux-x86_64-3.7/osgeo_utils
copying gdal-utils/osgeo_utils/pct2rgb.py -> build/lib.linux-x86_64-3.7/osgeo_utils
copying gdal-utils/osgeo_utils/rgb2pct.py -> build/lib.linux-x86_64-3.7/osgeo_utils
creating build/lib.linux-x86_64-3.7/osgeo_utils/auxiliary
copying gdal-utils/osgeo_utils/auxiliary/init.py -> build/lib.linux-x86_64-3.7/osgeo_utils/auxiliary
copying gdal-utils/osgeo_utils/auxiliary/array_util.py -> build/lib.linux-x86_64-3.7/osgeo_utils/auxiliary
copying gdal-utils/osgeo_utils/auxiliary/base.py -> build/lib.linux-x86_64-3.7/osgeo_utils/auxiliary
copying gdal-utils/osgeo_utils/auxiliary/batch_creator.py -> build/lib.linux-x86_64-3.7/osgeo_utils/auxiliary
copying gdal-utils/osgeo_utils/auxiliary/color_palette.py -> build/lib.linux-x86_64-3.7/osgeo_utils/auxiliary
copying gdal-utils/osgeo_utils/auxiliary/color_table.py -> build/lib.linux-x86_64-3.7/osgeo_utils/auxiliary
copying gdal-utils/osgeo_utils/auxiliary/extent_util.py -> build/lib.linux-x86_64-3.7/osgeo_utils/auxiliary
copying gdal-utils/osgeo_utils/auxiliary/gdal_argparse.py -> build/lib.linux-x86_64-3.7/osgeo_utils/auxiliary
copying gdal-utils/osgeo_utils/auxiliary/numpy_util.py -> build/lib.linux-x86_64-3.7/osgeo_utils/auxiliary
copying gdal-utils/osgeo_utils/auxiliary/osr_util.py -> build/lib.linux-x86_64-3.7/osgeo_utils/auxiliary
copying gdal-utils/osgeo_utils/auxiliary/progress.py -> build/lib.linux-x86_64-3.7/osgeo_utils/auxiliary
copying gdal-utils/osgeo_utils/auxiliary/raster_creation.py -> build/lib.linux-x86_64-3.7/osgeo_utils/auxiliary
copying gdal-utils/osgeo_utils/auxiliary/rectangle.py -> build/lib.linux-x86_64-3.7/osgeo_utils/auxiliary
copying gdal-utils/osgeo_utils/auxiliary/util.py -> build/lib.linux-x86_64-3.7/osgeo_utils/auxiliary
creating build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/init.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/assemblepoly.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/build_jp2_from_xml.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/classify.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/crs2crs2grid.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/densify.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/dump_jp2.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/epsg_tr.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/esri2wkt.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/fft.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/fix_gpkg.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/gcps2ogr.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/gcps2vec.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/gcps2wld.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/gdal2grd.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/gdal_auth.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/gdal_cp.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/gdal_create_pdf.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/gdal_ls.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/gdal_lut.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/gdal_mkdir.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/gdal_remove_towgs84.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/gdal_rm.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/gdal_rmdir.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/gdal_vrtmerge.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/gdal_zip.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/gdalchksum.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/gdalcopyproj.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/gdalfilter.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/gdalident.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/gdalimport.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/gdalinfo.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/gdallocationinfo.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/get_soundg.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/histrep.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/hsv_merge.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/jpeg_in_tiff_extract.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/load2odbc.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/loslas2ntv2.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/magphase.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/make_fuzzer_friendly_archive.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/mkgraticule.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/ogr2ogr.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/ogr2vrt.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/ogr_build_junction_table.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/ogr_dispatch.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/ogr_layer_algebra.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/ogrinfo.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/ogrupdate.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/rel.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/tigerpoly.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/tile_extent_from_raster.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/tolatlong.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/val_repl.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/validate_cloud_optimized_geotiff.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/validate_gpkg.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/validate_jp2.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/vec_tr.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/vec_tr_spat.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
copying gdal-utils/osgeo_utils/samples/wcs_virtds_params.py -> build/lib.linux-x86_64-3.7/osgeo_utils/samples
running build_ext
gcc -pthread -B /home/ec2-user/anaconda3/envs/py37/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I../../port -I../../gcore -I../../alg -I../../ogr/ -I../../ogr/ogrsf_frmts -I../../gnm -I../../apps -I/home/ec2-user/anaconda3/envs/py37/include/python3.7m -I/home/ec2-user/anaconda3/envs/py37/lib/python3.7/site-packages/numpy/core/include -I/home/ec2-user/anaconda3/envs/py37/include -c gdal_python_cxx11_test.cpp -o gdal_python_cxx11_test.o
gcc -pthread -B /home/ec2-user/anaconda3/envs/py37/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I../../port -I../../gcore -I../../alg -I../../ogr/ -I../../ogr/ogrsf_frmts -I../../gnm -I../../apps -I/home/ec2-user/anaconda3/envs/py37/include/python3.7m -I/home/ec2-user/anaconda3/envs/py37/lib/python3.7/site-packages/numpy/core/include -I/home/ec2-user/anaconda3/envs/py37/include -c gdal_python_cxx11_test.cpp -o gdal_python_cxx11_test.o -std=c++11
building 'osgeo._gdalconst' extension
building 'osgeo._gdal' extension
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/extensions
creating build/temp.linux-x86_64-3.7/extensions
gcc -pthread -B /home/ec2-user/anaconda3/envs/py37/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I../../port -I../../gcore -I../../alg -I../../ogr/ -I../../ogr/ogrsf_frmts -I../../gnm -I../../apps -I/home/ec2-user/anaconda3/envs/py37/include/python3.7m -I/home/ec2-user/anaconda3/envs/py37/lib/python3.7/site-packages/numpy/core/include -I/home/ec2-user/anaconda3/envs/py37/include -c extensions/gdalconst_wrap.c -o build/temp.linux-x86_64-3.7/extensions/gdalconst_wrap.o -I/home/ec2-user/anaconda3/envs/py37/include
building 'osgeo._osr' extension
gcc -pthread -B /home/ec2-user/anaconda3/envs/py37/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I../../port -I../../gcore -I../../alg -I../../ogr/ -I../../ogr/ogrsf_frmts -I../../gnm -I../../apps -I/home/ec2-user/anaconda3/envs/py37/include/python3.7m -I/home/ec2-user/anaconda3/envs/py37/lib/python3.7/site-packages/numpy/core/include -I/home/ec2-user/anaconda3/envs/py37/include -c extensions/gdal_wrap.cpp -o build/temp.linux-x86_64-3.7/extensions/gdal_wrap.o -std=c++11 -I/home/ec2-user/anaconda3/envs/py37/include
gcc -pthread -B /home/ec2-user/anaconda3/envs/py37/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I../../port -I../../gcore -I../../alg -I../../ogr/ -I../../ogr/ogrsf_frmts -I../../gnm -I../../apps -I/home/ec2-user/anaconda3/envs/py37/include/python3.7m -I/home/ec2-user/anaconda3/envs/py37/lib/python3.7/site-packages/numpy/core/include -I/home/ec2-user/anaconda3/envs/py37/include -c extensions/osr_wrap.cpp -o build/temp.linux-x86_64-3.7/extensions/osr_wrap.o -std=c++11 -I/home/ec2-user/anaconda3/envs/py37/include
building 'osgeo._ogr' extension
gcc -pthread -B /home/ec2-user/anaconda3/envs/py37/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I../../port -I../../gcore -I../../alg -I../../ogr/ -I../../ogr/ogrsf_frmts -I../../gnm -I../../apps -I/home/ec2-user/anaconda3/envs/py37/include/python3.7m -I/home/ec2-user/anaconda3/envs/py37/lib/python3.7/site-packages/numpy/core/include -I/home/ec2-user/anaconda3/envs/py37/include -c extensions/ogr_wrap.cpp -o build/temp.linux-x86_64-3.7/extensions/ogr_wrap.o -std=c++11 -I/home/ec2-user/anaconda3/envs/py37/include
cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
extensions/gdalconst_wrap.c: In function 'PyInit__gdalconst':
extensions/gdalconst_wrap.c:3813:63: error: 'GRIORA_RMS' undeclared (first use in this function)
SWIG_Python_SetConstant(d, "GRIORA_RMS",SWIG_From_int((int)(GRIORA_RMS)));
^
extensions/gdalconst_wrap.c:3813:63: note: each undeclared identifier is reported only once for each function it appears in
extensions/gdalconst_wrap.c:3839:60: error: 'GRA_RMS' undeclared (first use in this function)
SWIG_Python_SetConstant(d, "GRA_RMS",SWIG_From_int((int)(GRA_RMS)));
^
extensions/gdalconst_wrap.c:3846:60: error: 'GRA_Sum' undeclared (first use in this function)
SWIG_Python_SetConstant(d, "GRA_Sum",SWIG_From_int((int)(GRA_Sum)));
^
extensions/gdalconst_wrap.c:3882:71: error: 'GDAL_OF_MULTIDIM_RASTER' undeclared (first use in this function)
SWIG_Python_SetConstant(d, "OF_MULTIDIM_RASTER",SWIG_From_int((int)(GDAL_OF_MULTIDIM_RASTER)));
^
extensions/gdalconst_wrap.c:3906:68: error: 'GDAL_DCAP_UNIQUE_FIELDS' undeclared (first use in this function)
SWIG_Python_SetConstant(d, "DCAP_UNIQUE_FIELDS",SWIG_FromCharPtr(GDAL_DCAP_UNIQUE_FIELDS));
^
extensions/gdalconst_wrap.c:3907:71: error: 'GDAL_DIM_TYPE_HORIZONTAL_X' undeclared (first use in this function)
SWIG_Python_SetConstant(d, "DIM_TYPE_HORIZONTAL_X",SWIG_FromCharPtr(GDAL_DIM_TYPE_HORIZONTAL_X));
^
extensions/gdalconst_wrap.c:3908:71: error: 'GDAL_DIM_TYPE_HORIZONTAL_Y' undeclared (first use in this function)
SWIG_Python_SetConstant(d, "DIM_TYPE_HORIZONTAL_Y",SWIG_FromCharPtr(GDAL_DIM_TYPE_HORIZONTAL_Y));
^
extensions/gdalconst_wrap.c:3909:67: error: 'GDAL_DIM_TYPE_VERTICAL' undeclared (first use in this function)
SWIG_Python_SetConstant(d, "DIM_TYPE_VERTICAL",SWIG_FromCharPtr(GDAL_DIM_TYPE_VERTICAL));
^
extensions/gdalconst_wrap.c:3910:67: error: 'GDAL_DIM_TYPE_TEMPORAL' undeclared (first use in this function)
SWIG_Python_SetConstant(d, "DIM_TYPE_TEMPORAL",SWIG_FromCharPtr(GDAL_DIM_TYPE_TEMPORAL));
^
extensions/gdalconst_wrap.c:3911:69: error: 'GDAL_DIM_TYPE_PARAMETRIC' undeclared (first use in this function)
SWIG_Python_SetConstant(d, "DIM_TYPE_PARAMETRIC",SWIG_FromCharPtr(GDAL_DIM_TYPE_PARAMETRIC));
^
building 'osgeo._gnm' extension
gcc -pthread -B /home/ec2-user/anaconda3/envs/py37/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I../../port -I../../gcore -I../../alg -I../../ogr/ -I../../ogr/ogrsf_frmts -I../../gnm -I../../apps -I/home/ec2-user/anaconda3/envs/py37/include/python3.7m -I/home/ec2-user/anaconda3/envs/py37/lib/python3.7/site-packages/numpy/core/include -I/home/ec2-user/anaconda3/envs/py37/include -c extensions/gnm_wrap.cpp -o build/temp.linux-x86_64-3.7/extensions/gnm_wrap.o -std=c++11 -I/home/ec2-user/anaconda3/envs/py37/include
cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
extensions/gdal_wrap.cpp:3211:9: error: 'GDALExtendedDataTypeHS' does not name a type
typedef GDALExtendedDataTypeHS GDALExtendedDataTypeHS;
^
extensions/gdal_wrap.cpp:3212:9: error: 'GDALEDTComponentHS' does not name a type
typedef GDALEDTComponentHS GDALEDTComponentHS;
^
extensions/gdal_wrap.cpp:3213:9: error: 'GDALGroupHS' does not name a type
typedef GDALGroupHS GDALGroupHS;
^
extensions/gdal_wrap.cpp:3214:9: error: 'GDALMDArrayHS' does not name a type
typedef GDALMDArrayHS GDALMDArrayHS;
^
extensions/gdal_wrap.cpp:3215:9: error: 'GDALAttributeHS' does not name a type
typedef GDALAttributeHS GDALAttributeHS;
^
extensions/gdal_wrap.cpp:3216:9: error: 'GDALDimensionHS' does not name a type
typedef GDALDimensionHS GDALDimensionHS;
^
extensions/gdal_wrap.cpp: In function 'bool wrapper_VSIUnlinkBatch(char**)':
extensions/gdal_wrap.cpp:4313:40: error: 'VSIUnlinkBatch' was not declared in this scope
int* success = VSIUnlinkBatch(files);
^
extensions/gdal_wrap.cpp: In function 'VSILFILE* wrapper_VSIFOpenExL(const char*, const char*, int, char**)':
extensions/gdal_wrap.cpp:4397:65: error: 'VSIFOpenEx2L' was not declared in this scope
return VSIFOpenEx2L( utf8_path, pszMode, bSetError, options );
^
extensions/gdal_wrap.cpp: In function 'GDALDatasetShadow* GDALDriverShadow_CreateMultiDimensional(GDALDriverShadow*, const char*, char**, char**)':
extensions/gdal_wrap.cpp:4457:73: error: 'GDALCreateMultiDimensional' was not declared in this scope
options );
^
extensions/gdal_wrap.cpp: At global scope:
extensions/gdal_wrap.cpp:4899:12: error: 'GDALGroupHS' does not name a type
SWIGINTERN GDALGroupHS GDALDatasetShadow_GetRootGroup(GDALDatasetShadow self){
^
extensions/gdal_wrap.cpp: In function 'OGRErr GDALDatasetShadow_AbortSQL(GDALDatasetShadow
)':
extensions/gdal_wrap.cpp:5333:36: error: 'GDALDatasetAbortSQL' was not declared in this scope
return GDALDatasetAbortSQL(self);
^
extensions/gdal_wrap.cpp: In function 'void GDALDatasetShadow_ClearStatistics(GDALDatasetShadow
)':
extensions/gdal_wrap.cpp:5345:38: error: 'GDALDatasetClearStatistics' was not declared in this scope
GDALDatasetClearStatistics(self);
^
extensions/gdal_wrap.cpp: In function 'OGRFieldDomainShadow* GDALDatasetShadow_GetFieldDomain(GDALDatasetShadow*, const char*)':
extensions/gdal_wrap.cpp:5348:72: error: 'GDALDatasetGetFieldDomain' was not declared in this scope
return (OGRFieldDomainShadow*) GDALDatasetGetFieldDomain(self, name);
^
extensions/gdal_wrap.cpp: In function 'bool GDALDatasetShadow_AddFieldDomain(GDALDatasetShadow*, OGRFieldDomainShadow*)':
extensions/gdal_wrap.cpp:5351:47: error: 'OGRFieldDomainH' was not declared in this scope
return GDALDatasetAddFieldDomain(self, (OGRFieldDomainH)fieldDomain, NULL);
^
extensions/gdal_wrap.cpp:5351:80: error: 'GDALDatasetAddFieldDomain' was not declared in this scope
return GDALDatasetAddFieldDomain(self, (OGRFieldDomainH)fieldDomain, NULL);
^
extensions/gdal_wrap.cpp: At global scope:
extensions/gdal_wrap.cpp:5453:36: error: variable or field 'delete_GDALGroupHS' declared void
SWIGINTERN void delete_GDALGroupHS(GDALGroupHS *self){
^
extensions/gdal_wrap.cpp:5453:36: error: 'GDALGroupHS' was not declared in this scope
extensions/gdal_wrap.cpp:5453:49: error: 'self' was not declared in this scope
SWIGINTERN void delete_GDALGroupHS(GDALGroupHS *self){
^
extensions/gdal_wrap.cpp:5456:44: error: 'GDALGroupHS' was not declared in this scope
SWIGINTERN char const *GDALGroupHS_GetName(GDALGroupHS *self){
^
extensions/gdal_wrap.cpp:5456:57: error: 'self' was not declared in this scope
SWIGINTERN char const *GDALGroupHS_GetName(GDALGroupHS *self){
^
extensions/gdal_wrap.cpp:5456:62: error: expected ',' or ';' before '{' token
SWIGINTERN char const *GDALGroupHS_GetName(GDALGroupHS *self){
^
extensions/gdal_wrap.cpp:5459:48: error: 'GDALGroupHS' was not declared in this scope
SWIGINTERN char const *GDALGroupHS_GetFullName(GDALGroupHS *self){
^
extensions/gdal_wrap.cpp:5459:61: error: 'self' was not declared in this scope
SWIGINTERN char const *GDALGroupHS_GetFullName(GDALGroupHS *self){
^
extensions/gdal_wrap.cpp:5459:66: error: expected ',' or ';' before '{' token
SWIGINTERN char const *GDALGroupHS_GetFullName(GDALGroupHS *self){
^
extensions/gdal_wrap.cpp:5462:47: error: 'GDALGroupHS' was not declared in this scope
SWIGINTERN char **GDALGroupHS_GetMDArrayNames(GDALGroupHS *self,char **options=0){
^
extensions/gdal_wrap.cpp:5462:60: error: 'self' was not declared in this scope
SWIGINTERN char **GDALGroupHS_GetMDArrayNames(GDALGroupHS *self,char **options=0){
^
extensions/gdal_wrap.cpp:5462:65: error: expected primary-expression before 'char'
SWIGINTERN char **GDALGroupHS_GetMDArrayNames(GDALGroupHS *self,char **options=0){
^
extensions/gdal_wrap.cpp:5462:81: error: expression list treated as compound expression in initializer [-fpermissive]
SWIGINTERN char **GDALGroupHS_GetMDArrayNames(GDALGroupHS *self,char **options=0){
^
extensions/gdal_wrap.cpp:5462:82: error: expected ',' or ';' before '{' token
SWIGINTERN char **GDALGroupHS_GetMDArrayNames(GDALGroupHS *self,char **options=0){
^
extensions/gdal_wrap.cpp:5465:12: error: 'GDALMDArrayHS' does not name a type
SWIGINTERN GDALMDArrayHS *GDALGroupHS_OpenMDArray(GDALGroupHS *self,char const *name,char **options=0){
^
extensions/gdal_wrap.cpp:5468:12: error: 'GDALMDArrayHS' does not name a type
SWIGINTERN GDALMDArrayHS *GDALGroupHS_OpenMDArrayFromFullname(GDALGroupHS *self,char const *name,char **options=0){
^
extensions/gdal_wrap.cpp:5471:12: error: 'GDALMDArrayHS' does not name a type
SWIGINTERN GDALMDArrayHS *GDALGroupHS_ResolveMDArray(GDALGroupHS *self,char const *name,char const *starting_point,char **options=0){
^
extensions/gdal_wrap.cpp:5474:45: error: 'GDALGroupHS' was not declared in this scope
SWIGINTERN char **GDALGroupHS_GetGroupNames(GDALGroupHS *self,char **options=0){
^
extensions/gdal_wrap.cpp:5474:58: error: 'self' was not declared in this scope
SWIGINTERN char **GDALGroupHS_GetGroupNames(GDALGroupHS *self,char **options=0){
^
extensions/gdal_wrap.cpp:5474:63: error: expected primary-expression before 'char'
SWIGINTERN char **GDALGroupHS_GetGroupNames(GDALGroupHS *self,char **options=0){
^
extensions/gdal_wrap.cpp:5474:79: error: expression list treated as compound expression in initializer [-fpermissive]
SWIGINTERN char **GDALGroupHS_GetGroupNames(GDALGroupHS *self,char **options=0){
^
extensions/gdal_wrap.cpp:5474:80: error: expected ',' or ';' before '{' token
SWIGINTERN char **GDALGroupHS_GetGroupNames(GDALGroupHS *self,char **options=0){
^
extensions/gdal_wrap.cpp:5477:12: error: 'GDALGroupHS' does not name a type
SWIGINTERN GDALGroupHS *GDALGroupHS_OpenGroup(GDALGroupHS *self,char const *name,char **options=0){
^
extensions/gdal_wrap.cpp:5480:12: error: 'GDALGroupHS' does not name a type
SWIGINTERN GDALGroupHS *GDALGroupHS_OpenGroupFromFullname(GDALGroupHS *self,char const *name,char **options=0){
^
extensions/gdal_wrap.cpp:5483:43: error: variable or field 'GDALGroupHS_GetDimensions' declared void
SWIGINTERN void GDALGroupHS_GetDimensions(GDALGroupHS *self,GDALDimensionHS *pdims,size_t pnCount,char options=0){
^
extensions/gdal_wrap.cpp:5483:43: error: 'GDALGroupHS' was not declared in this scope
extensions/gdal_wrap.cpp:5483:56: error: 'self' was not declared in this scope
SWIGINTERN void GDALGroupHS_GetDimensions(GDALGroupHS self,GDALDimensionHS pdims,size_t pnCount,char options=0){
^
extensions/gdal_wrap.cpp:5483:61: error: 'GDALDimensionHS' was not declared in this scope
SWIGINTERN void GDALGroupHS_GetDimensions(GDALGroupHS self,GDALDimensionHS pdims,size_t pnCount,char options=0){
^
extensions/gdal_wrap.cpp:5483:80: error: 'pdims' was not declared in this scope
SWIGINTERN void GDALGroupHS_GetDimensions(GDALGroupHS self,GDALDimensionHS pdims,size_t pnCount,char **options=0){
^
extensions/gdal_wrap.cpp:5483:93: error: expected primary-expression before '
' token
SWIGINTERN void GDALGroupHS_GetDimensions(GDALGroupHS self,GDALDimensionHS pdims,size_t pnCount,char options=0){
^
extensions/gdal_wrap.cpp:5483:94: error: 'pnCount' was not declared in this scope
SWIGINTERN void GDALGroupHS_GetDimensions(GDALGroupHS self,GDALDimensionHS pdims,size_t pnCount,char options=0){
^
extensions/gdal_wrap.cpp:5483:102: error: expected primary-expression before 'char'
SWIGINTERN void GDALGroupHS_GetDimensions(GDALGroupHS self,GDALDimensionHS pdims,size_t pnCount,char options=0){
^
extensions/gdal_wrap.cpp:5486:12: error: 'GDALAttributeHS' does not name a type
SWIGINTERN GDALAttributeHS GDALGroupHS_GetAttribute(GDALGroupHS self,char const name){
^
extensions/gdal_wrap.cpp:5489:43: error: variable or field 'GDALGroupHS_GetAttributes' declared void
SWIGINTERN void GDALGroupHS_GetAttributes(GDALGroupHS self,GDALAttributeHS pattrs,size_t pnCount,char options=0){
^
extensions/gdal_wrap.cpp:5489:43: error: 'GDALGroupHS' was not declared in this scope
extensions/gdal_wrap.cpp:5489:56: error: 'self' was not declared in this scope
SWIGINTERN void GDALGroupHS_GetAttributes(GDALGroupHS self,GDALAttributeHS pattrs,size_t pnCount,char options=0){
^
extensions/gdal_wrap.cpp:5489:61: error: 'GDALAttributeHS' was not declared in this scope
SWIGINTERN void GDALGroupHS_GetAttributes(GDALGroupHS self,GDALAttributeHS pattrs,size_t pnCount,char options=0){
^
extensions/gdal_wrap.cpp:5489:80: error: 'pattrs' was not declared in this scope
SWIGINTERN void GDALGroupHS_GetAttributes(GDALGroupHS self,GDALAttributeHS pattrs,size_t pnCount,char **options=0){
^
extensions/gdal_wrap.cpp:5489:94: error: expected primary-expression before '
' token
SWIGINTERN void GDALGroupHS_GetAttributes(GDALGroupHS self,GDALAttributeHS pattrs,size_t pnCount,char options=0){
^
extensions/gdal_wrap.cpp:5489:95: error: 'pnCount' was not declared in this scope
SWIGINTERN void GDALGroupHS_GetAttributes(GDALGroupHS self,GDALAttributeHS pattrs,size_t pnCount,char options=0){
^
extensions/gdal_wrap.cpp:5489:103: error: expected primary-expression before 'char'
SWIGINTERN void GDALGroupHS_GetAttributes(GDALGroupHS self,GDALAttributeHS pattrs,size_t pnCount,char options=0){
^
extensions/gdal_wrap.cpp:5492:49: error: 'GDALGroupHS' was not declared in this scope
SWIGINTERN char GDALGroupHS_GetStructuralInfo(GDALGroupHS self){
^
extensions/gdal_wrap.cpp:5492:62: error: 'self' was not declared in this scope
SWIGINTERN char GDALGroupHS_GetStructuralInfo(GDALGroupHS self){
^
extensions/gdal_wrap.cpp:5492:67: error: expected ',' or ';' before '{' token
SWIGINTERN char GDALGroupHS_GetStructuralInfo(GDALGroupHS self){
^
extensions/gdal_wrap.cpp:5495:12: error: 'GDALGroupHS' does not name a type
SWIGINTERN GDALGroupHS GDALGroupHS_CreateGroup(GDALGroupHS self,char const name,char options=0){
^
extensions/gdal_wrap.cpp:5498:12: error: 'GDALDimensionHS' does not name a type
SWIGINTERN GDALDimensionHS GDALGroupHS_CreateDimension(GDALGroupHS self,char const name,char const type,char const direction,unsigned long long size,char options=0){
^
extensions/gdal_wrap.cpp:5501:12: error: 'GDALMDArrayHS' does not name a type
SWIGINTERN GDALMDArrayHS GDALGroupHS_CreateMDArray(GDALGroupHS self,char const name,int nDimensions,GDALDimensionHS dimensions,GDALExtendedDataTypeHS data_type,char options=0){
^
extensions/gdal_wrap.cpp:5505:12: error: 'GDALAttributeHS' does not name a type
SWIGINTERN GDALAttributeHS GDALGroupHS_CreateAttribute(GDALGroupHS self,char const name,int nDimensions,GUIntBig dimensions,GDALExtendedDataTypeHS data_type,char options=0){
^
extensions/gdal_wrap.cpp:5526:34: error: 'GDALExtendedDataTypeHS' was not declared in this scope
static bool CheckNumericDataType(GDALExtendedDataTypeHS
dt)
^
extensions/gdal_wrap.cpp:5526:58: error: 'dt' was not declared in this scope
static bool CheckNumericDataType(GDALExtendedDataTypeHS
dt)
^
extensions/gdal_wrap.cpp:5527:1: error: expected ',' or ';' before '{' token
{
^
extensions/gdal_wrap.cpp:3407:5: warning: 'int GetUseExceptions()' defined but not used [-Wunused-function]
int GetUseExceptions() {
^
extensions/gdal_wrap.cpp:3413:6: warning: 'void UseExceptions()' defined but not used [-Wunused-function]
void UseExceptions() {
^
extensions/gdal_wrap.cpp:3430:6: warning: 'void DontUseExceptions()' defined but not used [-Wunused-function]
void DontUseExceptions() {
^
extensions/gdal_wrap.cpp:3481:13: warning: 'void ClearErrorState()' defined but not used [-Wunused-function]
static void ClearErrorState()
^
extensions/gdal_wrap.cpp:4181:15: warning: 'char
CSLFromPySequence(PyObject
, int
)' defined but not used [-Wunused-function]
static char CSLFromPySequence( PyObject pySeq, int pbErr )
^
extensions/gdal_wrap.cpp:4599:1: warning: 'PyObject
CreateTupleFromDoubleArray(const double
, size_t)' defined but not used [-Wunused-function]
CreateTupleFromDoubleArray( const double first, size_t size ) {
^
extensions/gdal_wrap.cpp:4943:1: warning: 'int
CreateCIntListFromSequence(PyObject
, int
)' defined but not used [-Wunused-function]
CreateCIntListFromSequence( PyObject
pySeq, int
pnSize ) {
^
extensions/gdal_wrap.cpp:5252:1: warning: 'const char
OGRErrMessages(int)' defined but not used [-Wunused-function]
OGRErrMessages( int rc ) {
^
extensions/gdal_wrap.cpp:5526:13: warning: 'CheckNumericDataType' defined but not used [-Wunused-variable]
static bool CheckNumericDataType(GDALExtendedDataTypeHS
dt)
^
building 'osgeo._gdal_array' extension
gcc -pthread -B /home/ec2-user/anaconda3/envs/py37/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I../../port -I../../gcore -I../../alg -I../../ogr/ -I../../ogr/ogrsf_frmts -I../../gnm -I../../apps -I/home/ec2-user/anaconda3/envs/py37/include/python3.7m -I/home/ec2-user/anaconda3/envs/py37/lib/python3.7/site-packages/numpy/core/include -I/home/ec2-user/anaconda3/envs/py37/include -c extensions/gdal_array_wrap.cpp -o build/temp.linux-x86_64-3.7/extensions/gdal_array_wrap.o -std=c++11 -I/home/ec2-user/anaconda3/envs/py37/include
cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
extensions/osr_wrap.cpp: In function 'int OSRSpatialReferenceShadow_IsDerivedGeographic(OSRSpatialReferenceShadow
)':
extensions/osr_wrap.cpp:3753:39: error: 'OSRIsDerivedGeographic' was not declared in this scope
return OSRIsDerivedGeographic(self);
^
extensions/osr_wrap.cpp: In function 'int OSRSpatialReferenceShadow_GetAxesCount(OSRSpatialReferenceShadow
)':
extensions/osr_wrap.cpp:3960:32: error: 'OSRGetAxesCount' was not declared in this scope
return OSRGetAxesCount(self);
^
extensions/osr_wrap.cpp: In function 'OGRErr OSRSpatialReferenceShadow_SetDataAxisToSRSAxisMapping(OSRSpatialReferenceShadow
, int, int
)':
extensions/osr_wrap.cpp:4008:61: error: 'OSRSetDataAxisToSRSAxisMapping' was not declared in this scope
return OSRSetDataAxisToSRSAxisMapping(self, nList, pList);
^
extensions/osr_wrap.cpp: In function 'OGRErr OSRSpatialReferenceShadow_SetVerticalPerspective(OSRSpatialReferenceShadow
, double, double, double, double, double, double)':
extensions/osr_wrap.cpp:4217:81: error: 'OSRSetVerticalPerspective' was not declared in this scope
topoOriginLat, topoOriginLon, topoOriginHeight, viewPointHeight, fe, fn );
^
extensions/osr_wrap.cpp: In function 'OGRErr OSRSpatialReferenceShadow_AddGuessedTOWGS84(OSRSpatialReferenceShadow
)':
extensions/osr_wrap.cpp:4259:39: error: 'OSRAddGuessedTOWGS84' was not declared in this scope
return OSRAddGuessedTOWGS84( self );
^
extensions/osr_wrap.cpp: In function 'OGRErr OSRSpatialReferenceShadow_ExportToPROJJSON(OSRSpatialReferenceShadow
, char
, char
)':
extensions/osr_wrap.cpp:4324:55: error: 'OSRExportToPROJJSON' was not declared in this scope
return OSRExportToPROJJSON( self, argout, options );
^
extensions/osr_wrap.cpp: In function 'OGRErr OSRSpatialReferenceShadow_PromoteTo3D(OSRSpatialReferenceShadow
, const char
)':
extensions/osr_wrap.cpp:4363:37: error: 'OSRPromoteTo3D' was not declared in this scope
return OSRPromoteTo3D(self, name);
^
extensions/osr_wrap.cpp: In function 'OGRErr OSRSpatialReferenceShadow_DemoteTo2D(OSRSpatialReferenceShadow
, const char
)':
extensions/osr_wrap.cpp:4366:36: error: 'OSRDemoteTo2D' was not declared in this scope
return OSRDemoteTo2D(self, name);
^
extensions/osr_wrap.cpp: In function 'bool OGRCoordinateTransformationOptions_SetDesiredAccuracy(OGRCoordinateTransformationOptions
, double)':
extensions/osr_wrap.cpp:4383:79: error: 'OCTCoordinateTransformationOptionsSetDesiredAccuracy' was not declared in this scope
return OCTCoordinateTransformationOptionsSetDesiredAccuracy(self, accuracy);
^
extensions/osr_wrap.cpp: In function 'bool OGRCoordinateTransformationOptions_SetBallparkAllowed(OGRCoordinateTransformationOptions
, bool)':
extensions/osr_wrap.cpp:4400:84: error: 'OCTCoordinateTransformationOptionsSetBallparkAllowed' was not declared in this scope
return OCTCoordinateTransformationOptionsSetBallparkAllowed(self, allowBallpark);
^
extensions/osr_wrap.cpp: In function 'void OSRCoordinateTransformationShadow_TransformPointWithErrorCode(OSRCoordinateTransformationShadow
, double
, int
, double, double, double, double)':
extensions/osr_wrap.cpp:4446:102: error: 'OCTTransform4DWithErrorCodes' was not declared in this scope
OCTTransform4DWithErrorCodes( self, 1, &argout[0], &argout[1], &argout[2], &argout[3], errorCode );
^
extensions/osr_wrap.cpp: In function 'char
GetPROJSearchPaths()':
extensions/osr_wrap.cpp:4654:34: error: 'OSRGetPROJSearchPaths' was not declared in this scope
return OSRGetPROJSearchPaths();
^
extensions/osr_wrap.cpp: In function 'void SetPROJAuxDbPath(const char
)':
extensions/osr_wrap.cpp:4683:35: error: 'OSRSetPROJAuxDbPaths' was not declared in this scope
OSRSetPROJAuxDbPaths(apszPaths);
^
extensions/osr_wrap.cpp: In function 'void SetPROJAuxDbPaths(char
)':
extensions/osr_wrap.cpp:4689:31: error: 'OSRSetPROJAuxDbPaths' was not declared in this scope
OSRSetPROJAuxDbPaths(paths);
^
extensions/osr_wrap.cpp: In function 'char
GetPROJAuxDbPaths()':
extensions/osr_wrap.cpp:4695:33: error: 'OSRGetPROJAuxDbPaths' was not declared in this scope
return OSRGetPROJAuxDbPaths();
^
extensions/ogr_wrap.cpp: In function 'OGRErr OGRDataSourceShadow_AbortSQL(OGRDataSourceShadow
)':
extensions/ogr_wrap.cpp:4052:58: error: 'GDALDatasetAbortSQL' was not declared in this scope
return GDALDatasetAbortSQL((OGRDataSourceShadow
)self);
^
extensions/ogr_wrap.cpp: In function 'int ValidateOGRFieldSubType(OGRFieldSubType)':
extensions/ogr_wrap.cpp:4889:18: error: 'OFSTUUID' was not declared in this scope
case OFSTUUID:
^
extensions/ogr_wrap.cpp: In function 'const char
OGRFieldDefnShadow_GetAlternativeName(OGRFieldDefnShadow
)':
extensions/ogr_wrap.cpp:4916:46: error: 'OGR_Fld_GetAlternativeNameRef' was not declared in this scope
return OGR_Fld_GetAlternativeNameRef(self);
^
extensions/ogr_wrap.cpp: In function 'const char
OGRFieldDefnShadow_GetAlternativeNameRef(OGRFieldDefnShadow
)':
extensions/ogr_wrap.cpp:4919:46: error: 'OGR_Fld_GetAlternativeNameRef' was not declared in this scope
return OGR_Fld_GetAlternativeNameRef(self);
^
extensions/ogr_wrap.cpp: In function 'void OGRFieldDefnShadow_SetAlternativeName(OGRFieldDefnShadow
, const char
)':
extensions/ogr_wrap.cpp:4922:53: error: 'OGR_Fld_SetAlternativeName' was not declared in this scope
OGR_Fld_SetAlternativeName(self, alternativeName);
^
extensions/ogr_wrap.cpp: In function 'int OGRFieldDefnShadow_IsUnique(OGRFieldDefnShadow
)':
extensions/ogr_wrap.cpp:4975:35: error: 'OGR_Fld_IsUnique' was not declared in this scope
return OGR_Fld_IsUnique( self );
^
extensions/ogr_wrap.cpp: In function 'void OGRFieldDefnShadow_SetUnique(OGRFieldDefnShadow
, int)':
extensions/ogr_wrap.cpp:4978:38: error: 'OGR_Fld_SetUnique' was not declared in this scope
OGR_Fld_SetUnique( self, bUnique );
^
extensions/ogr_wrap.cpp: In function 'const char
OGRFieldDefnShadow_GetDomainName(OGRFieldDefnShadow
)':
extensions/ogr_wrap.cpp:4990:38: error: 'OGR_Fld_GetDomainName' was not declared in this scope
return OGR_Fld_GetDomainName(self);
^
extensions/ogr_wrap.cpp: In function 'void OGRFieldDefnShadow_SetDomainName(OGRFieldDefnShadow
, const char
)':
extensions/ogr_wrap.cpp:4993:39: error: 'OGR_Fld_SetDomainName' was not declared in this scope
OGR_Fld_SetDomainName( self, name );
^
extensions/ogr_wrap.cpp: In function 'OGRGeometryShadow
CreateGeometryFromEsriJson(const char
)':
extensions/ogr_wrap.cpp:5203:96: error: 'OGR_G_CreateGeometryFromEsriJson' was not declared in this scope
OGRGeometryShadow
geom = (OGRGeometryShadow
)OGR_G_CreateGeometryFromEsriJson(input_string);
^
extensions/ogr_wrap.cpp: In function 'OGRErr OGRGeometryShadow_ExportToWkb(OGRGeometryShadow
, size_t
, char
, OGRwkbByteOrder)':
extensions/ogr_wrap.cpp:5316:35: error: 'OGR_G_WkbSizeEx' was not declared in this scope
nLen = OGR_G_WkbSizeEx( self );
^
extensions/ogr_wrap.cpp: In function 'OGRErr OGRGeometryShadow_ExportToIsoWkb(OGRGeometryShadow
, size_t
, char
, OGRwkbByteOrder)':
extensions/ogr_wrap.cpp:5323:35: error: 'OGR_G_WkbSizeEx' was not declared in this scope
nLen = OGR_G_WkbSizeEx( self );
^
extensions/ogr_wrap.cpp: In function 'OGRGeometryShadow
OGRGeometryShadow_Normalize(OGRGeometryShadow
)':
extensions/ogr_wrap.cpp:5485:53: error: 'OGR_G_Normalize' was not declared in this scope
return (OGRGeometryShadow
) OGR_G_Normalize(self);
^
extensions/ogr_wrap.cpp: In function 'OGRGeometryShadow
OGRGeometryShadow_RemoveLowerDimensionSubGeoms(OGRGeometryShadow
)':
extensions/ogr_wrap.cpp:5488:72: error: 'OGR_G_RemoveLowerDimensionSubGeoms' was not declared in this scope
return (OGRGeometryShadow
) OGR_G_RemoveLowerDimensionSubGeoms(self);
^
extensions/ogr_wrap.cpp: In function 'size_t OGRGeometryShadow_WkbSize(OGRGeometryShadow
)':
extensions/ogr_wrap.cpp:5601:32: error: 'OGR_G_WkbSizeEx' was not declared in this scope
return OGR_G_WkbSizeEx(self);
^
extensions/ogr_wrap.cpp: In function 'OGRGeometryShadow
OGRGeometryShadow_Transform__SWIG_1(OGRGeometryShadow
, OGRGeomTransformerShadow
)':
extensions/ogr_wrap.cpp:5677:79: error: 'OGR_GeomTransformer_Transform' was not declared in this scope
return (OGRGeometryShadow
)OGR_GeomTransformer_Transform(transformer, self);
^
extensions/ogr_wrap.cpp: In function 'OGRPreparedGeometryShadow
OGRGeometryShadow_CreatePreparedGeometry(OGRGeometryShadow
)':
extensions/ogr_wrap.cpp:5680:70: error: 'OGRCreatePreparedGeometry' was not declared in this scope
return (OGRPreparedGeometryShadow
)OGRCreatePreparedGeometry(self);
^
extensions/ogr_wrap.cpp: In function 'void delete_OGRPreparedGeometryShadow(OGRPreparedGeometryShadow
)':
extensions/ogr_wrap.cpp:5683:38: error: 'OGRDestroyPreparedGeometry' was not declared in this scope
OGRDestroyPreparedGeometry( self );
^
extensions/ogr_wrap.cpp: In function 'bool OGRPreparedGeometryShadow_Intersects(OGRPreparedGeometryShadow
, const OGRGeometryShadow
)':
extensions/ogr_wrap.cpp:5686:71: error: 'OGRPreparedGeometryIntersects' was not declared in this scope
return OGRPreparedGeometryIntersects(self, (OGRGeometryH)otherGeom);
^
extensions/ogr_wrap.cpp: In function 'bool OGRPreparedGeometryShadow_Contains(OGRPreparedGeometryShadow
, const OGRGeometryShadow
)':
extensions/ogr_wrap.cpp:5689:69: error: 'OGRPreparedGeometryContains' was not declared in this scope
return OGRPreparedGeometryContains(self, (OGRGeometryH)otherGeom);
^
extensions/ogr_wrap.cpp: In function 'OGRGeomTransformerShadow
new_OGRGeomTransformerShadow(OSRCoordinateTransformationShadow
, char
)':
extensions/ogr_wrap.cpp:5692:50: error: 'OGR_GeomTransformer_Create' was not declared in this scope
return OGR_GeomTransformer_Create(ct, options);
^
extensions/ogr_wrap.cpp: In function 'void delete_OGRGeomTransformerShadow(OGRGeomTransformerShadow
)':
extensions/ogr_wrap.cpp:5695:39: error: 'OGR_GeomTransformer_Destroy' was not declared in this scope
OGR_GeomTransformer_Destroy( self );
^
extensions/ogr_wrap.cpp: In function 'OGRGeometryShadow
OGRGeomTransformerShadow_Transform(OGRGeomTransformerShadow
, OGRGeometryShadow
)':
extensions/ogr_wrap.cpp:5698:76: error: 'OGR_GeomTransformer_Transform' was not declared in this scope
return (OGRGeometryShadow
)OGR_GeomTransformer_Transform(self, src_geom);
^
extensions/ogr_wrap.cpp: In function 'void delete_OGRFieldDomainShadow(OGRFieldDomainShadow
)':
extensions/ogr_wrap.cpp:5701:31: error: 'OGR_FldDomain_Destroy' was not declared in this scope
OGR_FldDomain_Destroy(self);
^
extensions/ogr_wrap.cpp: In function 'const char
OGRFieldDomainShadow_GetName(OGRFieldDomainShadow
)':
extensions/ogr_wrap.cpp:5704:38: error: 'OGR_FldDomain_GetName' was not declared in this scope
return OGR_FldDomain_GetName(self);
^
extensions/ogr_wrap.cpp: In function 'const char
OGRFieldDomainShadow_GetDescription(OGRFieldDomainShadow
)':
extensions/ogr_wrap.cpp:5707:45: error: 'OGR_FldDomain_GetDescription' was not declared in this scope
return OGR_FldDomain_GetDescription(self);
^
extensions/ogr_wrap.cpp: In function 'OGRFieldType OGRFieldDomainShadow_GetFieldType(OGRFieldDomainShadow
)':
extensions/ogr_wrap.cpp:5710:43: error: 'OGR_FldDomain_GetFieldType' was not declared in this scope
return OGR_FldDomain_GetFieldType(self);
^
extensions/ogr_wrap.cpp: In function 'OGRFieldSubType OGRFieldDomainShadow_GetFieldSubType(OGRFieldDomainShadow
)':
extensions/ogr_wrap.cpp:5713:46: error: 'OGR_FldDomain_GetFieldSubType' was not declared in this scope
return OGR_FldDomain_GetFieldSubType(self);
^
extensions/ogr_wrap.cpp: At global scope:
extensions/ogr_wrap.cpp:5715:12: error: 'OGRFieldDomainType' does not name a type
SWIGINTERN OGRFieldDomainType OGRFieldDomainShadow_GetDomainType(OGRFieldDomainShadow self){
^
extensions/ogr_wrap.cpp:5718:12: error: 'OGRFieldDomainSplitPolicy' does not name a type
SWIGINTERN OGRFieldDomainSplitPolicy OGRFieldDomainShadow_GetSplitPolicy(OGRFieldDomainShadow self){
^
extensions/ogr_wrap.cpp:5721:80: error: 'OGRFieldDomainSplitPolicy' has not been declared
SWIGINTERN void OGRFieldDomainShadow_SetSplitPolicy(OGRFieldDomainShadow self,OGRFieldDomainSplitPolicy policy){
^
extensions/ogr_wrap.cpp: In function 'void OGRFieldDomainShadow_SetSplitPolicy(OGRFieldDomainShadow
, int)':
extensions/ogr_wrap.cpp:5722:46: error: 'OGR_FldDomain_SetSplitPolicy' was not declared in this scope
OGR_FldDomain_SetSplitPolicy(self, policy);
^
extensions/ogr_wrap.cpp: At global scope:
extensions/ogr_wrap.cpp:5724:12: error: 'OGRFieldDomainMergePolicy' does not name a type
SWIGINTERN OGRFieldDomainMergePolicy OGRFieldDomainShadow_GetMergePolicy(OGRFieldDomainShadow self){
^
extensions/ogr_wrap.cpp:5727:80: error: 'OGRFieldDomainMergePolicy' has not been declared
SWIGINTERN void OGRFieldDomainShadow_SetMergePolicy(OGRFieldDomainShadow self,OGRFieldDomainMergePolicy policy){
^
extensions/ogr_wrap.cpp: In function 'void OGRFieldDomainShadow_SetMergePolicy(OGRFieldDomainShadow
, int)':
extensions/ogr_wrap.cpp:5728:46: error: 'OGR_FldDomain_SetMergePolicy' was not declared in this scope
OGR_FldDomain_SetMergePolicy(self, policy);
^
extensions/ogr_wrap.cpp: At global scope:
extensions/ogr_wrap.cpp:5730:12: error: 'OGRCodedValue' does not name a type
SWIGINTERN OGRCodedValue const OGRFieldDomainShadow_GetEnumeration(OGRFieldDomainShadow self){
^
extensions/ogr_wrap.cpp: In function 'double OGRFieldDomainShadow_GetMinAsDouble(OGRFieldDomainShadow
)':
extensions/ogr_wrap.cpp:5734:67: error: 'OGR_RangeFldDomain_GetMin' was not declared in this scope
const OGRField
psVal = OGR_RangeFldDomain_GetMin(self, NULL);
^
extensions/ogr_wrap.cpp:5737:65: error: 'OGR_FldDomain_GetFieldType' was not declared in this scope
const OGRFieldType eType = OGR_FldDomain_GetFieldType(self);
^
extensions/ogr_wrap.cpp: In function 'bool OGRFieldDomainShadow_IsMinInclusive(OGRFieldDomainShadow
)':
extensions/ogr_wrap.cpp:5748:57: error: 'OGR_RangeFldDomain_GetMin' was not declared in this scope
(void)OGR_RangeFldDomain_GetMin(self, &isInclusive);
^
extensions/ogr_wrap.cpp: In function 'double OGRFieldDomainShadow_GetMaxAsDouble(OGRFieldDomainShadow
)':
extensions/ogr_wrap.cpp:5752:67: error: 'OGR_RangeFldDomain_GetMax' was not declared in this scope
const OGRField
psVal = OGR_RangeFldDomain_GetMax(self, NULL);
^
extensions/ogr_wrap.cpp:5755:65: error: 'OGR_FldDomain_GetFieldType' was not declared in this scope
const OGRFieldType eType = OGR_FldDomain_GetFieldType(self);
^
extensions/ogr_wrap.cpp: In function 'bool OGRFieldDomainShadow_IsMaxInclusive(OGRFieldDomainShadow
)':
extensions/ogr_wrap.cpp:5766:57: error: 'OGR_RangeFldDomain_GetMax' was not declared in this scope
(void)OGR_RangeFldDomain_GetMax(self, &isInclusive);
^
extensions/ogr_wrap.cpp: In function 'const char
OGRFieldDomainShadow_GetGlob(OGRFieldDomainShadow
)':
extensions/ogr_wrap.cpp:5770:44: error: 'OGR_GlobFldDomain_GetGlob' was not declared in this scope
return OGR_GlobFldDomain_GetGlob(self);
^
extensions/ogr_wrap.cpp: At global scope:
extensions/ogr_wrap.cpp:5778:53: error: 'OGRCodedValue' does not name a type
const OGRCodedValue
enumeration) {
^
extensions/ogr_wrap.cpp: In function 'OGRFieldDomainShadow
CreateCodedFieldDomain(const char
, const char
, OGRFieldType, OGRFieldSubType, const int
)':
extensions/ogr_wrap.cpp:5783:73: error: 'OGR_CodedFldDomain_Create' was not declared in this scope
enumeration );
^
extensions/ogr_wrap.cpp: In function 'OGRFieldDomainShadow
CreateRangeFieldDomain(const char
, const char
, OGRFieldType, OGRFieldSubType, double, bool, double, double)':
extensions/ogr_wrap.cpp:5821:76: error: 'OGR_RangeFldDomain_Create' was not declared in this scope
maxIsInclusive );
^
extensions/ogr_wrap.cpp: In function 'OGRFieldDomainShadow
CreateGlobFieldDomain(const char
, const char
, OGRFieldType, OGRFieldSubType, const char
)':
extensions/ogr_wrap.cpp:5849:65: error: 'OGR_GlobFldDomain_Create' was not declared in this scope
glob );
^
extensions/ogr_wrap.cpp: In function 'PyObject
_wrap_FieldDomain_GetDomainType(PyObject
, PyObject
)':
extensions/ogr_wrap.cpp:28393:3: error: 'OGRFieldDomainType' was not declared in this scope
OGRFieldDomainType result;
^
extensions/ogr_wrap.cpp:28407:7: error: 'result' was not declared in this scope
result = (OGRFieldDomainType)OGRFieldDomainShadow_GetDomainType(arg1);
^
extensions/ogr_wrap.cpp:28419:48: error: 'result' was not declared in this scope
resultobj = SWIG_From_int(static_cast< int >(result));
^
extensions/ogr_wrap.cpp: In function 'PyObject
_wrap_FieldDomain_GetSplitPolicy(PyObject
, PyObject
)':
extensions/ogr_wrap.cpp:28433:3: error: 'OGRFieldDomainSplitPolicy' was not declared in this scope
OGRFieldDomainSplitPolicy result;
^
extensions/ogr_wrap.cpp:28447:7: error: 'result' was not declared in this scope
result = (OGRFieldDomainSplitPolicy)OGRFieldDomainShadow_GetSplitPolicy(arg1);
^
extensions/ogr_wrap.cpp:28459:48: error: 'result' was not declared in this scope
resultobj = SWIG_From_int(static_cast< int >(result));
^
extensions/ogr_wrap.cpp: In function 'PyObject
_wrap_FieldDomain_SetSplitPolicy(PyObject
, PyObject
)':
extensions/ogr_wrap.cpp:28470:3: error: 'OGRFieldDomainSplitPolicy' was not declared in this scope
OGRFieldDomainSplitPolicy arg2 ;
^
extensions/ogr_wrap.cpp:28488:3: error: 'arg2' was not declared in this scope
arg2 = static_cast< OGRFieldDomainSplitPolicy >(val2);
^
extensions/ogr_wrap.cpp:28488:23: error: 'OGRFieldDomainSplitPolicy' does not name a type
arg2 = static_cast< OGRFieldDomainSplitPolicy >(val2);
^
extensions/ogr_wrap.cpp: In function 'PyObject
_wrap_FieldDomain_GetMergePolicy(PyObject
, PyObject
)':
extensions/ogr_wrap.cpp:28521:3: error: 'OGRFieldDomainMergePolicy' was not declared in this scope
OGRFieldDomainMergePolicy result;
^
extensions/ogr_wrap.cpp:28535:7: error: 'result' was not declared in this scope
result = (OGRFieldDomainMergePolicy)OGRFieldDomainShadow_GetMergePolicy(arg1);
^
extensions/ogr_wrap.cpp:28547:48: error: 'result' was not declared in this scope
resultobj = SWIG_From_int(static_cast< int >(result));
^
extensions/ogr_wrap.cpp: In function 'PyObject
_wrap_FieldDomain_SetMergePolicy(PyObject
, PyObject
)':
extensions/ogr_wrap.cpp:28558:3: error: 'OGRFieldDomainMergePolicy' was not declared in this scope
OGRFieldDomainMergePolicy arg2 ;
^
extensions/ogr_wrap.cpp:28576:3: error: 'arg2' was not declared in this scope
arg2 = static_cast< OGRFieldDomainMergePolicy >(val2);
^
extensions/ogr_wrap.cpp:28576:23: error: 'OGRFieldDomainMergePolicy' does not name a type
arg2 = static_cast< OGRFieldDomainMergePolicy >(val2);
^
extensions/ogr_wrap.cpp: In function 'PyObject
_wrap_FieldDomain_GetEnumeration(PyObject
, PyObject
)':
extensions/ogr_wrap.cpp:28609:3: error: 'OGRCodedValue' was not declared in this scope
OGRCodedValue result = 0 ;
^
extensions/ogr_wrap.cpp:28609:18: error: 'result' was not declared in this scope
OGRCodedValue result = 0 ;
^
extensions/ogr_wrap.cpp:28623:32: error: expected primary-expression before ')' token
result = (OGRCodedValue )OGRFieldDomainShadow_GetEnumeration(arg1);
^
extensions/ogr_wrap.cpp: In function 'PyObject
_wrap_CreateCodedFieldDomain(PyObject
, PyObject
)':
extensions/ogr_wrap.cpp:28878:3: error: 'OGRCodedValue' was not declared in this scope
OGRCodedValue *arg5 = (OGRCodedValue *) 0 ;
^
extensions/ogr_wrap.cpp:28878:18: error: 'arg5' was not declared in this scope
OGRCodedValue *arg5 = (OGRCodedValue ) 0 ;
^
extensions/ogr_wrap.cpp:28878:41: error: expected primary-expression before ')' token
OGRCodedValue arg5 = (OGRCodedValue ) 0 ;
^
extensions/ogr_wrap.cpp:28925:27: error: expected primary-expression before ')' token
arg5 = (OGRCodedValue
)CPLCalloc(size+1, sizeof(OGRCodedValue) );
^
extensions/ogr_wrap.cpp:29008:126: error: expected ')' before 'const'
result = (OGRFieldDomainShadow )CreateCodedFieldDomain((char const )arg1,(char const )arg2,arg3,arg4,(OGRCodedValue const )arg5);
^
extensions/ogr_wrap.cpp:29008:139: error: expected ')' before ';' token
result = (OGRFieldDomainShadow )CreateCodedFieldDomain((char const )arg1,(char const )arg2,arg3,arg4,(OGRCodedValue const )arg5);
^
extensions/gdal_array_wrap.cpp:3994:21: error: 'GDALGroup' was not declared in this scope
std::shared_ptr GetRootGroup() const override { return poMEMDS->GetRootGroup(); }
^
extensions/gdal_array_wrap.cpp:3994:30: error: template argument 1 is invalid
std::shared_ptr GetRootGroup() const override { return poMEMDS->GetRootGroup(); }
^
extensions/gdal_array_wrap.cpp:3994:32: error: 'int NUMPYMultiDimensionalDataset::GetRootGroup() const' marked 'override', but does not override
std::shared_ptr GetRootGroup() const override { return poMEMDS->GetRootGroup(); }
^
extensions/gdal_array_wrap.cpp: In member function 'int NUMPYMultiDimensionalDataset::GetRootGroup() const':
extensions/gdal_array_wrap.cpp:3994:80: error: 'class GDALDataset' has no member named 'GetRootGroup'
std::shared_ptr GetRootGroup() const override { return poMEMDS->GetRootGroup(); }
^
extensions/gdal_array_wrap.cpp: In static member function 'static GDALDataset
NUMPYMultiDimensionalDataset::Open(PyArrayObject
)':
extensions/gdal_array_wrap.cpp:4038:33: error: 'class GDALDriver' has no member named 'CreateMultiDimensional'
auto poMEMDS = poMemDriver->CreateMultiDimensional("", nullptr, nullptr);
^
extensions/gdal_array_wrap.cpp:4042:33: error: 'GDALDimension' was not declared in this scope
std::vector<std::shared_ptr> apoDims;
^
extensions/gdal_array_wrap.cpp:4042:33: error: template argument 1 is invalid
extensions/gdal_array_wrap.cpp:4042:46: error: template argument 1 is invalid
std::vector<std::shared_ptr> apoDims;
^
extensions/gdal_array_wrap.cpp:4042:46: error: template argument 2 is invalid
extensions/gdal_array_wrap.cpp:4052:17: error: request for member 'push_back' in 'apoDims', which is of non-class type 'int'
apoDims.push_back(poDim);
^
extensions/gdal_array_wrap.cpp:4068:39: error: 'GDALExtendedDataType' has not been declared
GDALExtendedDataType::Create(eType),
^
extensions/gdal_array_wrap.cpp:4072:16: error: type '' argument given to 'delete', expected pointer
delete poMEMDS;
^
extensions/gdal_array_wrap.cpp: At global scope:
extensions/gdal_array_wrap.cpp:4522:34: error: 'GDALExtendedDataTypeHS' was not declared in this scope
static bool CheckNumericDataType(GDALExtendedDataTypeHS
dt)
^
extensions/gdal_array_wrap.cpp:4522:58: error: 'dt' was not declared in this scope
static bool CheckNumericDataType(GDALExtendedDataTypeHS
dt)
^
extensions/gdal_array_wrap.cpp:4523:1: error: expected ',' or ';' before '{' token
{
^
extensions/gdal_array_wrap.cpp:3514:13: warning: 'void _StoreLastException()' defined but not used [-Wunused-function]
static void _StoreLastException()
^
In file included from /home/ec2-user/anaconda3/envs/py37/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:21:0,
from /home/ec2-user/anaconda3/envs/py37/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from extensions/gdal_array_wrap.cpp:3539:
/home/ec2-user/anaconda3/envs/py37/lib/python3.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1464:1: warning: 'int _import_array()' defined but not used [-Wunused-function]
_import_array(void)
^
extensions/gdal_array_wrap.cpp:4492:1: warning: 'int
CreateCIntListFromSequence(PyObject
, int
)' defined but not used [-Wunused-function]
CreateCIntListFromSequence( PyObject
pySeq, int
pnSize ) {
^
extensions/gdal_array_wrap.cpp:4522:13: warning: 'CheckNumericDataType' defined but not used [-Wunused-variable]
static bool CheckNumericDataType(GDALExtendedDataTypeHS
dt)
^
g++ -pthread -shared -B /home/ec2-user/anaconda3/envs/py37/compiler_compat -L/home/ec2-user/anaconda3/envs/py37/lib -Wl,-rpath=/home/ec2-user/anaconda3/envs/py37/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/extensions/gnm_wrap.o -L../../.libs -L../../ -L/home/ec2-user/anaconda3/envs/py37/lib -lgdal -o build/lib.linux-x86_64-3.7/osgeo/_gnm.cpython-37m-x86_64-linux-gnu.so
/home/ec2-user/anaconda3/envs/py37/compiler_compat/ld: cannot find crti.o: No such file or directory
collect2: error: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
----------------------------------------
Rolling back uninstall of GDAL
Moving to /home/ec2-user/anaconda3/envs/py37/bin/epsg_tr.py
from /tmp/pip-uninstall-03hjh7qu/epsg_tr.py
Moving to /home/ec2-user/anaconda3/envs/py37/bin/esri2wkt.py
from /tmp/pip-uninstall-03hjh7qu/esri2wkt.py
Moving to /home/ec2-user/anaconda3/envs/py37/bin/gcps2vec.py
from /tmp/pip-uninstall-03hjh7qu/gcps2vec.py
Moving to /home/ec2-user/anaconda3/envs/py37/bin/gcps2wld.py
from /tmp/pip-uninstall-03hjh7qu/gcps2wld.py
Moving to /home/ec2-user/anaconda3/envs/py37/bin/gdal2tiles.py
from /tmp/pip-uninstall-03hjh7qu/gdal2tiles.py
Moving to /home/ec2-user/anaconda3/envs/py37/bin/gdal2xyz.py
from /tmp/pip-uninstall-03hjh7qu/gdal2xyz.py
Moving to /home/ec2-user/anaconda3/envs/py37/bin/gdal_auth.py
from /tmp/pip-uninstall-03hjh7qu/gdal_auth.py
Moving to /home/ec2-user/anaconda3/envs/py37/bin/gdal_calc.py
from /tmp/pip-uninstall-03hjh7qu/gdal_calc.py
Moving to /home/ec2-user/anaconda3/envs/py37/bin/gdal_edit.py
from /tmp/pip-uninstall-03hjh7qu/gdal_edit.py
Moving to /home/ec2-user/anaconda3/envs/py37/bin/gdal_fillnodata.py
from /tmp/pip-uninstall-03hjh7qu/gdal_fillnodata.py
Moving to /home/ec2-user/anaconda3/envs/py37/bin/gdal_merge.py
from /tmp/pip-uninstall-03hjh7qu/gdal_merge.py
Moving to /home/ec2-user/anaconda3/envs/py37/bin/gdal_pansharpen.py
from /tmp/pip-uninstall-03hjh7qu/gdal_pansharpen.py
Moving to /home/ec2-user/anaconda3/envs/py37/bin/gdal_polygonize.py
from /tmp/pip-uninstall-03hjh7qu/gdal_polygonize.py
Moving to /home/ec2-user/anaconda3/envs/py37/bin/gdal_proximity.py
from /tmp/pip-uninstall-03hjh7qu/gdal_proximity.py
Moving to /home/ec2-user/anaconda3/envs/py37/bin/gdal_retile.py
from /tmp/pip-uninstall-03hjh7qu/gdal_retile.py
Moving to /home/ec2-user/anaconda3/envs/py37/bin/gdal_sieve.py
from /tmp/pip-uninstall-03hjh7qu/gdal_sieve.py
Moving to /home/ec2-user/anaconda3/envs/py37/bin/gdalchksum.py
from /tmp/pip-uninstall-03hjh7qu/gdalchksum.py
Moving to /home/ec2-user/anaconda3/envs/py37/bin/gdalcompare.py
from /tmp/pip-uninstall-03hjh7qu/gdalcompare.py
Moving to /home/ec2-user/anaconda3/envs/py37/bin/gdalident.py
from /tmp/pip-uninstall-03hjh7qu/gdalident.py
Moving to /home/ec2-user/anaconda3/envs/py37/bin/gdalimport.py
from /tmp/pip-uninstall-03hjh7qu/gdalimport.py
Moving to /home/ec2-user/anaconda3/envs/py37/bin/gdalmove.py
from /tmp/pip-uninstall-03hjh7qu/gdalmove.py
Moving to /home/ec2-user/anaconda3/envs/py37/bin/mkgraticule.py
from /tmp/pip-uninstall-03hjh7qu/mkgraticule.py
Moving to /home/ec2-user/anaconda3/envs/py37/bin/ogrmerge.py
from /tmp/pip-uninstall-03hjh7qu/ogrmerge.py
Moving to /home/ec2-user/anaconda3/envs/py37/bin/pct2rgb.py
from /tmp/pip-uninstall-03hjh7qu/pct2rgb.py
Moving to /home/ec2-user/anaconda3/envs/py37/bin/rgb2pct.py
from /tmp/pip-uninstall-03hjh7qu/rgb2pct.py
Moving to /home/ec2-user/anaconda3/envs/py37/lib/python3.7/site-packages/GDAL-3.0.2-py3.7-linux-x86_64.egg-info
from /home/ec2-user/anaconda3/envs/py37/lib/python3.7/site-packages/~DAL-3.0.2-py3.7-linux-x86_64.egg-info
Moving to /home/ec2-user/anaconda3/envs/py37/lib/python3.7/site-packages/gdal.py
from /tmp/pip-uninstall-ybfak1bk/gdal.py
Moving to /home/ec2-user/anaconda3/envs/py37/lib/python3.7/site-packages/gdalconst.py
from /tmp/pip-uninstall-ybfak1bk/gdalconst.py
Moving to /home/ec2-user/anaconda3/envs/py37/lib/python3.7/site-packages/gdalnumeric.py
from /tmp/pip-uninstall-ybfak1bk/gdalnumeric.py
Moving to /home/ec2-user/anaconda3/envs/py37/lib/python3.7/site-packages/ogr.py
from /tmp/pip-uninstall-ybfak1bk/ogr.py
Moving to /home/ec2-user/anaconda3/envs/py37/lib/python3.7/site-packages/osgeo
from /home/ec2-user/anaconda3/envs/py37/lib/python3.7/site-packages/~sgeo
Moving to /home/ec2-user/anaconda3/envs/py37/lib/python3.7/site-packages/osr.py
from /tmp/pip-uninstall-ybfak1bk/osr.py
ERROR: Command errored out with exit status 1: /home/ec2-user/anaconda3/envs/py37/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-2wgtjwg8/gdal_5465e3c114f843c8a0d909113819ff34/setup.py'"'"'; file='"'"'/tmp/pip-install-2wgtjwg8/gdal_5465e3c114f843c8a0d909113819ff34/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-uh53hv0g/install-record.txt --single-version-externally-managed --compile --install-headers /home/ec2-user/anaconda3/envs/py37/include/python3.7m/gdal Check the logs for full command output.

Environment information

  • OS: ubuntu 16, 18, 20
  • solaris version: latest
  • python version: 3.7
  • version of any relevant dependencies (optional - we may ask for this information later if not provided)

I am able to successfully instal gdal with conda however when I try to install solaris, I always get the error above

@aegonwolf
Copy link

@AWS-Bassem were you able to figure this out? I get your error doing a normal install, and others when using the setup script

@AWS-Bassem
Copy link
Author

AWS-Bassem commented Nov 17, 2021 via email

@RichardScottOZ
Copy link

Pip and gdal will have problems a lot of the time - maybe try fixing that part with conda first?

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