Anaconda/GDAL: Error: Package missing in current win-64 channels: -gdal1.11.4*

0 views
Skip to first unread message

beye...@gmail.com

unread,
Jul 20, 2016, 9:23:02 AM7/20/16
to Anaconda - Public
Hello,

after I could not manage to install GDAL in Python 3.5, I decided to try it with the current 64bit-version of Anaconda3 (Python 3.5). I'am using a Windows 7 machine ( I know... thats my first mistake;) ) 
I thought, that the GDAL package is already implemented in conda, but i wasn't...

So I found the following instructions (in cmd):

conda install -c osgeo gdal=1.11.4

I've got the following error:

C:\Users\FB>conda install -c osgeo gdal=1.11.4
Using Anaconda Cloud api site https://api.anaconda.org
Fetching package metadata .........
Solving package specifications: .
Error: Package missing in current win-64 channels:
  - gdal 1.11.4*
You can search for packages on anaconda.org with
    anaconda search -t conda gdal

C:\Users\FB>

So, my electronic patience ends right here =)

Could anybody help me, pleace?
Message has been deleted
Message has been deleted

Florian Beyer

unread,
Jul 20, 2016, 11:44:30 AM7/20/16
to Anaconda - Public
I found a way to fix my problem.

I downgraded my python version from 3.5.* to a 3.4.*.
The problem was probably, that the 3.5 version is still to new...

C:\Users\FB>conda install python=3.4.5
Fetching package metadata .......
Solving package specifications: ..........
Package plan for installation in environment C:\Anaconda3:
The following packages will be downloaded:
    package                    |            build
    ---------------------------|-----------------
    vs2010_runtime-10.00.40219.1|                2         944 KB
    python-3.4.5               |                0        21.7 MB
    conda-env-2.5.2            |           py34_0          64 KB
    menuinst-1.4.1             |           py34_0         103 KB
    pycosat-0.6.1              |           py34_1          78 KB
    pyyaml-3.11                |           py34_4         115 KB
    requests-2.10.0            |           py34_0         657 KB
    ruamel_yaml-0.11.7         |           py34_0         192 KB
    setuptools-23.0.0          |           py34_0         691 KB
    wheel-0.29.0               |           py34_0         120 KB
    conda-4.1.8                |           py34_0         245 KB
    pip-8.1.2                  |           py34_0         1.6 MB
    ------------------------------------------------------------
                                           Total:        26.5 MB
The following NEW packages will be INSTALLED:
    vs2010_runtime: 10.00.40219.1-2
The following packages will be UPDATED:
    conda:          4.1.6-py35_0    --> 4.1.8-py34_0
    conda-env:      2.5.1-py35_0    --> 2.5.2-py34_0
    menuinst:       1.4.1-py35_0    --> 1.4.1-py34_0
    pip:            8.1.2-py35_0    --> 8.1.2-py34_0
    pycosat:        0.6.1-py35_1    --> 0.6.1-py34_1
    pyyaml:         3.11-py35_4     --> 3.11-py34_4
    requests:       2.10.0-py35_0   --> 2.10.0-py34_0
    ruamel_yaml:    0.11.7-py35_0   --> 0.11.7-py34_0
    setuptools:     23.0.0-py35_0   --> 23.0.0-py34_0
    wheel:          0.29.0-py35_0   --> 0.29.0-py34_0
The following packages will be DOWNGRADED due to dependency conflicts:
    python:         3.5.2-0         --> 3.4.5-0

THAN: 
 
Proceed ([y]/n)? y
menuinst-1.4.1 100% |###############################| Time: 0:00:00 270.37 kB/s
Fetching packages ...
vs2010_runtime 100% |###############################| Time: 0:00:01 609.05 kB/s
python-3.4.5-0 100% |###############################| Time: 0:00:15   1.50 MB/s
conda-env-2.5. 100% |###############################| Time: 0:00:00 206.76 kB/s
pycosat-0.6.1- 100% |###############################| Time: 0:00:00 201.05 kB/s
pyyaml-3.11-py 100% |###############################| Time: 0:00:00 237.52 kB/s
requests-2.10. 100% |###############################| Time: 0:00:01 394.17 kB/s
ruamel_yaml-0. 100% |###############################| Time: 0:00:00 308.72 kB/s
setuptools-23. 100% |###############################| Time: 0:00:01 534.97 kB/s
wheel-0.29.0-p 100% |###############################| Time: 0:00:00 237.49 kB/s
conda-4.1.8-py 100% |###############################| Time: 0:00:00 325.98 kB/s
pip-8.1.2-py34 100% |###############################| Time: 0:00:01 992.27 kB/s
Extracting packages ...
[      COMPLETE      ]|##################################################| 100%
Unlinking packages ...
[      COMPLETE      ]|##################################################| 100%
Linking packages ...
[      COMPLETE      ]|##################################################| 100%
 
C:\Users\FB>


After this STEP, I changed also the installation command:

conda install -c anaconda gdal

NOW it works!!!

Florian Beyer

unread,
Jul 20, 2016, 12:06:12 PM7/20/16
to Anaconda - Public
ok... it does not work!

gdal is installed, but I cannot import the module...

(C:\Anaconda3) C:\Users\FB>python
Python 3.4.1 |Anaconda 4.1.1 (32-bit)| (default, Sep 24 2014, 18:34:57) [MSC v.1600 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import gdal
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Anaconda3\lib\site-packages\gdal.py", line 2, in <module>
    from osgeo.gdal import deprecation_warn
  File "C:\Anaconda3\lib\site-packages\osgeo\__init__.py", line 25, in <module>
    _gdal = swig_import_helper()
  File "C:\Anaconda3\lib\site-packages\osgeo\__init__.py", line 21, in swig_import_helper
    _mod = imp.load_module('_gdal', fp, pathname, description)
  File "C:\Anaconda3\lib\imp.py", line 243, in load_module
    return load_dynamic(name, filename, file)
ImportError: DLL load failed: Die angegebene Prozedur wurde nicht gefunden.
>>>

Why? 

Florian Beyer

unread,
Jul 20, 2016, 12:17:31 PM7/20/16
to Anaconda - Public
next try :)

conda uninstall -c anaconda gdal

THAN:

conda install -c IOOS gdal


it seems to work now... the import in python was succesful...

but we will see... :)

Filipe Pires Alvarenga Fernandes

unread,
Jul 20, 2016, 12:21:14 PM7/20/16
to anac...@continuum.io
Please do not use the gdal from the IOOS channel. That channel deprecated and in maintenance more only. You should use conda-forge instead:

$ conda install -c conda-forge gdal

-Filipe

Florian Beyer

unread,
Jul 20, 2016, 5:25:05 PM7/20/16
to Anaconda - Public
Hi Filipe,

I did your recommendation  and I got this:

Python 3.4.5 |Anaconda 4.1.1 (32-bit)| (default, Jul  5 2016, 14:56:50) [MSC v.1600 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import gdal
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Anaconda3\lib\site-packages\gdal.py", line 2, in <module>
    from osgeo.gdal import deprecation_warn
  File "C:\Anaconda3\lib\site-packages\osgeo\__init__.py", line 25, in <module>
    _gdal = swig_import_helper()
  File "C:\Anaconda3\lib\site-packages\osgeo\__init__.py", line 21, in swig_import_helper
    _mod = imp.load_module('_gdal', fp, pathname, description)
  File "C:\Anaconda3\lib\imp.py", line 243, in load_module
    return load_dynamic(name, filename, file)
ImportError: DLL load failed: Die angegebene Prozedur wurde nicht gefunden.
>>> 

Do you have a solution for that?

Filipe Pires Alvarenga Fernandes

unread,
Jul 20, 2016, 6:00:50 PM7/20/16
to anac...@continuum.io
Is there more to that error? Can you try:

$ conda create gdal python=3.5 -n TEST -c conda-forge --yes
$ activate TEST
$ conda info
$ conda list

And send me result of the last two.




**********************************************************
Filipe P. A. Fernandes
Physical Oceanographer

Email: oce...@gmail.com          

http://ocefpaf.github.io/
**********************************************************

--
Anaconda Community Support Group Brought to you by Continuum Analytics
---
You received this message because you are subscribed to the Google Groups "Anaconda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to anaconda+u...@continuum.io.
To post to this group, send email to anac...@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/anaconda/.

Florian Beyer

unread,
Jul 20, 2016, 6:33:27 PM7/20/16
to Anaconda - Public
Hi, this is my output:

(TEST) C:\Users\FB>conda info
Current conda install:
             platform : win-32
        conda version : 4.1.9
    conda-env version : 2.5.2
  conda-build version : 1.21.3
       python version : 3.4.5.final.0
     requests version : 2.10.0
     root environment : C:\Anaconda3  (writable)
  default environment : C:\Anaconda3\envs\TEST
     envs directories : C:\Anaconda3\envs
        package cache : C:\Anaconda3\pkgs
         channel URLs : https://repo.continuum.io/pkgs/free/win-32/
                        https://repo.continuum.io/pkgs/free/noarch/
                        https://repo.continuum.io/pkgs/pro/win-32/
                        https://repo.continuum.io/pkgs/pro/noarch/
                        https://repo.continuum.io/pkgs/msys2/win-32/
                        https://repo.continuum.io/pkgs/msys2/noarch/
          config file : None
         offline mode : False
    is foreign system : False

(TEST) C:\Users\Franse>conda list
# packages in environment at C:\Anaconda3\envs\TEST:
#

Using Anaconda Cloud api site https://api.anaconda.org
curl                      7.48.0                   vc14_2  [vc14]  conda-forge
expat                     2.1.0                    vc14_1  [vc14]  conda-forge
freexl                    1.0.2                    vc14_1  [vc14]  conda-forge
gdal                      2.1.0           np111py35_vc14_7  [vc14]  conda-forge
geos                      3.4.2                    vc14_2  [vc14]  conda-forge
hdf4                      4.2.11                   vc14_4  [vc14]  conda-forge
hdf5                      1.8.17                   vc14_2  [vc14]  conda-forge
jpeg                      9b                       vc14_0  [vc14]  conda-forge
kealib                    1.4.6                    vc14_2  [vc14]  conda-forge
libiconv                  1.14                     vc14_2  [vc14]  conda-forge
libnetcdf                 4.4.0                    vc14_1  [vc14]  conda-forge
libpng                    1.6.23                   vc14_0  [vc14]  conda-forge
libspatialite             4.3.0a                   vc14_8  [vc14]  conda-forge
libtiff                   4.0.6                    vc14_6  [vc14]  conda-forge
libxml2                   2.9.3                    vc14_9  [vc14]  conda-forge
openjpeg                  2.1.0                    vc14_5  [vc14]  conda-forge
pip                       8.1.2                    py35_0    conda-forge
proj.4                    4.9.2               py35_vc14_0  [vc14]  conda-forge
python                    3.5.2                         1    conda-forge
setuptools                23.0.0                   py35_0    conda-forge
sqlite                    3.13.0                   vc14_0  [vc14]  conda-forge
wheel                     0.29.0                   py35_0    conda-forge
xerces-c                  3.1.4                    vc14_2  [vc14]  conda-forge
zlib                      1.2.8                    vc14_3  [vc14]  conda-forge
mkl                       11.3.3                        1
numpy                     1.11.1                   py35_0
(TEST) C:\Users\FB>
Message has been deleted

Florian Beyer

unread,
Jul 22, 2016, 2:28:05 AM7/22/16
to Anaconda - Public
In order to have GDAL 2.1.0, I finally fixed my problem by a very sad way.

I uninstalled Anaconda completely and installed all packages I need on the Python 3.4.4 core.

I wrote down my steps in the case that I have to repeat the installation:

1. download Pyton 3.4.4 (32bit) ("win32-superpack-python3.4"): https://www.python.org/downloads/
2. install python
3. in windows-shell:
--> python -m pip install --upgrade pip
--> python -m pip install numpy
4. download scipy: https://sourceforge.net/projects/scipy/files/scipy/
--> install scipy
5. in windows-shell:
-->python -m pip install matplotlib
-->python -m pip install scikit-learn
-->python -m pip install docopt
6. download gdal + binaries: http://gisinternals.com/
-->stepwise instructions: http://sandbox.idre.ucla.edu/sandbox/tutorials/installing-gdal-for-windows
7. install core first
8. install binaries
9. set system variables:
- in "path" --> C:\Program Files (x86)\GDAL
- new: GDAL_DATA --> C:\Program Files (x86)\GDAL\gdal-data
- new: GDAL_DRIVER_PATH --> C:\Program Files (x86)\GDAL\gdalplugins


Filipe Pires Alvarenga Fernandes

unread,
Jul 22, 2016, 8:09:19 AM7/22/16
to anac...@continuum.io
Glad it is resolved. I replicate the problem locally. Sorry.

**********************************************************
Filipe P. A. Fernandes
Physical Oceanographer

Email: oce...@gmail.com          

http://ocefpaf.github.io/
**********************************************************

Reply all
Reply to author
Forward
0 new messages