Closed Lupin76 closed 6 years ago
@Lupin76 You are using gdal within conda root-env. This is not recommended. See also this comment.
Hi thank you very much for your help. As I told you I'm brand new with anaconda. Moving from root-env means uninstall and re-install anaconda again?
Thank you again
Moving from root-env means uninstall and re-install anaconda again?
No need to re-install. Please take a look at
https://conda.io/docs/user-guide/tasks/manage-environments.html
to learn more about conda environments and
https://conda-forge.org/docs/conda-forge_gotchas.html#using-multiple-channels
to understand more about the issue of mixing conda channels.
Ok. You are really very helpful.
Thank you very much
Just the last question.
Before creating a new environment and installing GDAL in, do I have to uninstall GDAL from the root-env? How to do it?
Thank you
Before creating a new environment and installing GDAL in, do I have to uninstall GDAL from the root-env? How to do it?
It should not affect the new environment, but it is not working... So that is your call.
Ok. Thank you again
Hello, I'm new to Python and have basically the same problem only with liblibkea:
ImportError: /home/mattes/anaconda3/lib/python3.6/site-packages/osgeo/../../.././libkea.so.1.4: undefined symbol: _ZN2H56H5FileC1ERKSsjRKNS_17FileCreatPropListERKNS_15FileAccPropListE
I tried to create a new environment like the following description: http://www.gmtpython.xyz/install.html#installing-gmt-and-other-dependencies
But sadly it still doesn't work.
The output of the conda list
is the following:
# packages in environment at /home/mattes/anaconda3/envs/gmt-python:
#
# Name Version Build Channel
blas 1.1 openblas conda-forge
bokeh 0.12.16 py36_0 conda-forge
boost 1.66.0 py36_1 conda-forge
boost-cpp 1.66.0 1 conda-forge
bottleneck 1.2.1 py36_1 conda-forge
bzip2 1.0.6 1 conda-forge
ca-certificates 2018.4.16 0 conda-forge
cairo 1.14.10 0 conda-forge
certifi 2018.4.16 py36_0 conda-forge
cftime 1.0.0 py36_0 conda-forge
click 6.7 py_1 conda-forge
cloudpickle 0.5.3 py_0 conda-forge
curl 7.60.0 0 conda-forge
cytoolz 0.9.0.1 py36_0 conda-forge
dask 0.17.5 py_0 conda-forge
dask-core 0.17.5 py_0 conda-forge
dcw-gmt 1.1.3 0 conda-forge
distributed 1.21.8 py36_0 conda-forge
expat 2.2.5 0 conda-forge
fftw 3.3.7 0 conda-forge
fontconfig 2.12.6 0 conda-forge
freetype 2.8.1 0 conda-forge
freexl 1.0.5 0 conda-forge
gdal 2.2.4 py36_0 conda-forge
geos 3.6.2 1 conda-forge
geotiff 1.4.2 1 conda-forge
gettext 0.19.8.1 0 conda-forge
ghostscript 9.22 0 conda-forge
giflib 5.1.4 0 conda-forge
glib 2.55.0 0 conda-forge
gmt 6.0.0a14 blas_openblas_202 [blas_openblas] conda-forge/label/dev
gmt-python 0+unknown <pip>
gshhg-gmt 2.3.7 0 conda-forge
h5netcdf 0.5.1 py_0 conda-forge
h5py 2.8.0 py36h470a237_0 conda-forge
hdf4 4.2.13 0 conda-forge
hdf5 1.10.1 2 conda-forge
heapdict 1.0.0 py36_0 conda-forge
icu 58.2 0 conda-forge
jinja2 2.10 py36_0 conda-forge
jpeg 9b 2 conda-forge
json-c 0.12.1 0 conda-forge
kealib 1.4.7 4 conda-forge
krb5 1.14.6 0 conda-forge
libdap4 3.18.3 2 conda-forge
libffi 3.2.1 3 conda-forge
libgcc-ng 7.2.0 hdf63c60_3
libgdal 2.2.4 2 conda-forge
libgfortran 3.0.0 1
libiconv 1.15 0 conda-forge
libkml 1.3.0 6 conda-forge
libnetcdf 4.6.1 2 conda-forge
libpng 1.6.34 0 conda-forge
libpq 9.6.3 0 conda-forge
libspatialite 4.3.0a 19 conda-forge
libssh2 1.8.0 2 conda-forge
libstdcxx-ng 7.2.0 hdf63c60_3
libtiff 4.0.9 0 conda-forge
libxml2 2.9.8 0 conda-forge
locket 0.2.0 py36_1 conda-forge
markupsafe 1.0 py36_0 conda-forge
msgpack-python 0.5.6 py36h2d50403_2 conda-forge
ncurses 5.9 10 conda-forge
netcdf4 1.4.0 py36_0 conda-forge
numpy 1.14.3 py36_blas_openblas_200 [blas_openblas] conda-forge
openblas 0.2.20 8 conda-forge
openjpeg 2.3.0 2 conda-forge
openssl 1.0.2o 0 conda-forge
packaging 17.1 py_0 conda-forge
pandas 0.23.0 py36_1 conda-forge
partd 0.3.8 py36_0 conda-forge
pcre 8.41 1 conda-forge
pip 9.0.3 py36_0 conda-forge
pixman 0.34.0 2 conda-forge
poppler 0.61.1 3 conda-forge
poppler-data 0.4.9 0 conda-forge
proj4 4.9.3 5 conda-forge
psutil 5.4.5 py36_0 conda-forge
pyparsing 2.2.0 py36_0 conda-forge
python 3.6.5 1 conda-forge
python-dateutil 2.7.3 py_0 conda-forge
pytz 2018.4 py_0 conda-forge
pyyaml 3.12 py36_1 conda-forge
readline 7.0 0 conda-forge
scipy 1.1.0 py36_blas_openblas_200 [blas_openblas] conda-forge
setuptools 39.2.0 py36_0 conda-forge
six 1.11.0 py36_1 conda-forge
sortedcontainers 2.0.2 py36_0 conda-forge
sqlite 3.20.1 2 conda-forge
tblib 1.3.2 py36_0 conda-forge
tk 8.6.7 0 conda-forge
toolz 0.9.0 py_0 conda-forge
tornado 5.0.2 py36_0 conda-forge
util-linux 2.21 0
wheel 0.31.0 py36_0 conda-forge
xarray 0.10.4 py36_0 conda-forge
xerces-c 3.2.0 0 conda-forge
xz 5.2.3 0 conda-forge
yaml 0.1.7 0 conda-forge
zict 0.1.3 py_0 conda-forge
zlib 1.2.11 h470a237_2 conda-forge
Does someone has an idea? Thank you very much in advance!
Please read https://conda-forge.org/docs/conda-forge_gotchas.html#using-multiple-channels first!
You are getting gdal
from conda-forge and libgdal
from defaults
. That won't work! You will need to put the conda-forge
on top of defaults
in your .condarc
and install things in an isolated env. I cannot say anything about the instructions your are following (I would ask there), but this works:
conda create -n GDAL python=3.6 gdal
conda activate GDAL
python -c 'import gdal; print(dir(gdal))'
Thank you very much! I could solve the problem.
I get this error message when I try to import gdal in Spyder installed via Anaconda.
ImportError: /home/giacomo/anaconda2/lib/python2.7/site-packages/osgeo/../../.././libkea.so.1.4: undefined symbol: _ZN2H56H5FileC1ERKSsjRKNS_17FileCreatPropListERKNS_15FileAccPropListE
You can find in attach what comes out from TEST, conda list and conda info.
I installed it just today thus I'm brand new with this environment. Any help is welcome. Thank you