You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just ran into an error when installing basemap and gdal within the same Anaconda environment like this:
conda create -n test gdal basemap -c conda-forge
The basemap import works fine but when I try to import gdal, I get this:
Python 3.6.7 | packaged by conda-forge | (default, Nov 21 2018, 03:09:43)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gdal
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/miniconda3/envs/test/lib/python3.6/site-packages/osgeo/__init__.py", line 21, in <module>
_gdal = swig_import_helper()
File "/root/miniconda3/envs/test/lib/python3.6/site-packages/osgeo/__init__.py", line 17, in swig_import_helper
_mod = imp.load_module('_gdal', fp, pathname, description)
File "/root/miniconda3/envs/test/lib/python3.6/imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "/root/miniconda3/envs/test/lib/python3.6/imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: /root/miniconda3/envs/test/lib/python3.6/site-packages/osgeo/../../../libgdal.so.20: undefined symbol: _ZN6libdap3DDSC1EPNS_15BaseTypeFactoryERKSs
(test) [root@df11cf60d6c3 ~]# conda info
active environment : test
active env location : /root/miniconda3/envs/test
shell level : 2
user config file : /root/.condarc
populated config files :
conda version : 4.5.12
conda-build version : not installed
python version : 3.7.1.final.0
base environment : /root/miniconda3 (writable)
channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/free/linux-64
https://repo.anaconda.com/pkgs/free/noarch
https://repo.anaconda.com/pkgs/r/linux-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/pro/linux-64
https://repo.anaconda.com/pkgs/pro/noarch
package cache : /root/miniconda3/pkgs
/root/.conda/pkgs
envs directories : /root/miniconda3/envs
/root/.conda/envs
platform : linux-64
user-agent : conda/4.5.12 requests/2.21.0 CPython/3.7.1 Linux/3.13.0-119-generic centos/7 glibc/2.17
UID:GID : 0:0
netrc file : None
offline mode : False
Any suggestions?
EDIT:
I just found out that I can avoid the error by pinning geos to >3.7.0. This downgrades basemap to 1.0.8.dev0. So one of the following works for me:
conda create -n test gdal basemap "geos>3.7.0" -c conda-forge
or conda create -n test gdal "basemap=1.0.8.dev0" -c conda-forge
The text was updated successfully, but these errors were encountered:
Dear all,
I just ran into an error when installing basemap and gdal within the same Anaconda environment like this:
conda create -n test gdal basemap -c conda-forge
The basemap import works fine but when I try to import gdal, I get this:
Environment (
conda list
):Details about
conda
and system (conda info
):Any suggestions?
EDIT:
I just found out that I can avoid the error by pinning geos to >3.7.0. This downgrades basemap to 1.0.8.dev0. So one of the following works for me:
conda create -n test gdal basemap "geos>3.7.0" -c conda-forge
or
conda create -n test gdal "basemap=1.0.8.dev0" -c conda-forge
The text was updated successfully, but these errors were encountered: