conda-forge / rasterio-feedstock

A conda-smithy repository for rasterio.
BSD 3-Clause "New" or "Revised" License
43 stars 23 forks source link

ImportError: DLL load failed: The specified procedure could not be found. #214

Closed rifatSDAS closed 3 years ago

rifatSDAS commented 3 years ago

Issue: ImportError: DLL load failed: The specified procedure could not be found.


Environment (conda list):

``` $ conda list ``` Name Version Build Channel affine 2.3.0 py_0 conda-forge anyio 3.3.0 py36ha15d459_0 conda-forge argon2-cffi 20.1.0 py36h68aa20f_2 conda-forge async_generator 1.10 py_0 conda-forge attrs 21.2.0 pyhd8ed1ab_0 conda-forge babel 2.9.1 pyh44b312d_0 conda-forge backcall 0.2.0 pyh9f0ad1d_0 conda-forge backports 1.0 py_2 conda-forge backports.functools_lru_cache 1.6.4 pyhd8ed1ab_0 conda-forge bleach 3.3.1 pyhd8ed1ab_0 conda-forge boost-cpp 1.74.0 h5b4e17d_4 conda-forge brotlipy 0.7.0 py36h68aa20f_1001 conda-forge bzip2 1.0.8 h8ffe710_4 conda-forge ca-certificates 2021.5.30 h5b45459_0 conda-forge cairo 1.16.0 hb19e0ff_1008 conda-forge certifi 2021.5.30 py36ha15d459_0 conda-forge cffi 1.14.6 py36he58ceb7_0 conda-forge cfitsio 3.470 h0af3d06_7 conda-forge chardet 4.0.0 py36ha15d459_1 conda-forge charset-normalizer 2.0.0 pyhd8ed1ab_0 conda-forge click 7.1.2 pyh9f0ad1d_0 conda-forge click-plugins 1.1.1 py_0 conda-forge cligj 0.7.2 pyhd8ed1ab_0 conda-forge colorama 0.4.4 pyh9f0ad1d_0 conda-forge contextvars 2.4 py_0 conda-forge cryptography 3.4.7 py36hd0de82c_0 conda-forge curl 7.78.0 h789b8ee_0 conda-forge cycler 0.10.0 py_2 conda-forge dataclasses 0.8 pyh787bdff_0 conda-forge decorator 4.4.2 py_0 conda-forge defusedxml 0.7.1 pyhd8ed1ab_0 conda-forge entrypoints 0.3 pyhd8ed1ab_1003 conda-forge et_xmlfile 1.0.1 py_1001 conda-forge expat 2.4.1 h39d44d4_0 conda-forge fiona 1.8.18 py36h54a71f0_0 conda-forge fontconfig 2.13.1 h1989441_1005 conda-forge freetype 2.10.4 h546665d_1 conda-forge freexl 1.0.6 ha8e266a_0 conda-forge gdal 3.1.4 py36h52238aa_15 conda-forge geopandas 0.9.0 pyhd8ed1ab_1 conda-forge geopandas-base 0.9.0 pyhd8ed1ab_1 conda-forge geos 3.9.1 h39d44d4_2 conda-forge geotiff 1.6.0 h8e90983_5 conda-forge gettext 0.19.8.1 h1a89ca6_1005 conda-forge hdf4 4.2.15 h0e5069d_3 conda-forge hdf5 1.10.6 nompi_h5268f04_1114 conda-forge icu 68.1 h0e60522_0 conda-forge idna 3.1 pyhd3deb0d_0 conda-forge immutables 0.15 py36h68aa20f_0 conda-forge importlib-metadata 4.6.3 py36ha15d459_0 conda-forge intel-openmp 2021.3.0 h57928b3_3372 conda-forge ipykernel 5.5.5 py36hfacbf0b_0 conda-forge ipython 7.16.1 py36h7b2dad6_2 conda-forge ipython_genutils 0.2.0 py_1 conda-forge jbig 2.1 h8d14728_2003 conda-forge jdcal 1.4.1 py_0 conda-forge jedi 0.17.2 py36ha15d459_1 conda-forge jinja2 3.0.1 pyhd8ed1ab_0 conda-forge joblib 1.0.1 pyhd8ed1ab_0 conda-forge jpeg 9d h8ffe710_0 conda-forge json5 0.9.5 pyh9f0ad1d_0 conda-forge jsonschema 3.2.0 pyhd8ed1ab_3 conda-forge jupyter_client 6.1.12 pyhd8ed1ab_0 conda-forge jupyter_core 4.7.1 py36ha15d459_0 conda-forge jupyter_server 1.10.2 pyhd8ed1ab_0 conda-forge jupyterlab 3.1.1 pyhd8ed1ab_0 conda-forge jupyterlab_pygments 0.1.2 pyh9f0ad1d_0 conda-forge jupyterlab_server 2.6.1 pyhd8ed1ab_0 conda-forge kealib 1.4.14 h96bfa42_2 conda-forge kiwisolver 1.3.1 py36he95197e_1 conda-forge krb5 1.19.2 hbae68bd_0 conda-forge lcms2 2.12 h2a16943_0 conda-forge lerc 2.2.1 h0e60522_0 conda-forge libblas 3.9.0 10_mkl conda-forge libcblas 3.9.0 10_mkl conda-forge libcurl 7.78.0 h789b8ee_0 conda-forge libdeflate 1.7 h8ffe710_5 conda-forge libffi 3.3 h0e60522_2 conda-forge libgdal 3.1.4 h966def8_15 conda-forge libglib 2.68.3 h1e62bf3_0 conda-forge libiconv 1.16 he774522_0 conda-forge libkml 1.3.0 h9859afa_1014 conda-forge liblapack 3.9.0 10_mkl conda-forge libnetcdf 4.8.0 nompi_hf689e7d_103 conda-forge libpng 1.6.37 h1d00b33_2 conda-forge libpq 13.3 hfcc5ef8_0 conda-forge librttopo 1.1.0 hb340de5_6 conda-forge libsodium 1.0.18 h8d14728_1 conda-forge libspatialindex 1.9.3 h39d44d4_4 conda-forge libspatialite 5.0.1 h6b539a6_4 conda-forge libssh2 1.9.0 h680486a_6 conda-forge libtiff 4.3.0 h0c97f57_1 conda-forge libwebp-base 1.2.0 h8ffe710_2 conda-forge libxml2 2.9.12 hf5bbc77_0 conda-forge libzip 1.8.0 hfed4ece_0 conda-forge lz4-c 1.9.3 h8ffe710_1 conda-forge m2w64-gcc-libgfortran 5.3.0 6 conda-forge m2w64-gcc-libs 5.3.0 7 conda-forge m2w64-gcc-libs-core 5.3.0 7 conda-forge m2w64-gmp 6.1.0 2 conda-forge m2w64-libwinpthread-git 5.0.0.4634.697f757 2 conda-forge mapclassify 2.4.3 pyhd8ed1ab_0 conda-forge markupsafe 2.0.1 py36h68aa20f_0 conda-forge matplotlib-base 3.3.4 py36h1abdf75_0 conda-forge mistune 0.8.4 py36h68aa20f_1004 conda-forge mkl 2021.3.0 hb70f87d_564 conda-forge msys2-conda-epoch 20160418 1 conda-forge munch 2.5.0 py_0 conda-forge nbclassic 0.3.1 pyhd8ed1ab_1 conda-forge nbclient 0.5.3 pyhd8ed1ab_0 conda-forge nbconvert 6.0.7 py36ha15d459_3 conda-forge nbformat 5.1.3 pyhd8ed1ab_0 conda-forge nest-asyncio 1.5.1 pyhd8ed1ab_0 conda-forge networkx 2.6.2 pyhd8ed1ab_0 conda-forge notebook 6.3.0 py36ha15d459_0 conda-forge numpy 1.19.5 py36h4b40d73_2 conda-forge olefile 0.46 pyh9f0ad1d_1 conda-forge openjpeg 2.4.0 hb211442_1 conda-forge openpyxl 3.0.7 pyhd8ed1ab_0 conda-forge openssl 1.1.1k h8ffe710_0 conda-forge packaging 21.0 pyhd8ed1ab_0 conda-forge pandas 1.1.5 py36he38d939_0 conda-forge pandoc 2.14.1 h8ffe710_0 conda-forge pandocfilters 1.4.2 py_1 conda-forge parso 0.7.1 pyh9f0ad1d_0 conda-forge patsy 0.5.1 py_0 conda-forge pcre 8.45 h0e60522_0 conda-forge pickleshare 0.7.5 py_1003 conda-forge pillow 8.3.1 py36h10c25d6_0 conda-forge pip 21.2.2 pyhd8ed1ab_0 conda-forge pixman 0.40.0 h8ffe710_0 conda-forge poppler 21.03.0 h9ff6ed8_0 conda-forge poppler-data 0.4.10 0 conda-forge postgresql 13.3 h1c22c4f_0 conda-forge proj 8.0.0 h1cfcee9_0 conda-forge prometheus_client 0.11.0 pyhd8ed1ab_0 conda-forge prompt-toolkit 3.0.19 pyha770c72_0 conda-forge pycparser 2.20 pyh9f0ad1d_2 conda-forge pygments 2.9.0 pyhd8ed1ab_0 conda-forge pyopenssl 20.0.1 pyhd8ed1ab_0 conda-forge pyparsing 2.4.7 pyh9f0ad1d_0 conda-forge pyproj 3.0.1 py36h86093ec_1 conda-forge pyrsistent 0.17.3 py36h68aa20f_2 conda-forge pysocks 1.7.1 py36ha15d459_3 conda-forge python 3.6.13 h39d44d4_0_cpython conda-forge python-dateutil 2.8.2 pyhd8ed1ab_0 conda-forge python_abi 3.6 2_cp36m conda-forge pytz 2021.1 pyhd8ed1ab_0 conda-forge pywin32 300 py36h68aa20f_0 conda-forge pywinpty 1.1.3 py36hcae0e51_0 conda-forge pyzmq 22.1.0 py36h1d5d788_0 conda-forge rasterio 1.1.7 py36hc1acebe_0 conda-forge requests 2.26.0 pyhd8ed1ab_0 conda-forge requests-unixsocket 0.2.0 py_0 conda-forge rtree 0.9.4 py36h089df06_2 conda-forge scikit-learn 0.24.2 py36h35b34c0_1 conda-forge scipy 1.5.3 py36h7ff6e69_0 conda-forge seaborn 0.11.1 hd8ed1ab_1 conda-forge seaborn-base 0.11.1 pyhd8ed1ab_1 conda-forge send2trash 1.7.1 pyhd8ed1ab_0 conda-forge setuptools 49.6.0 py36ha15d459_3 conda-forge shapely 1.7.1 py36hee554fe_5 conda-forge six 1.16.0 pyh6c4a22f_0 conda-forge sniffio 1.2.0 py36ha15d459_1 conda-forge snuggs 1.4.7 py_0 conda-forge sqlite 3.36.0 h8ffe710_0 conda-forge statsmodels 0.12.2 py36h6434af4_0 conda-forge tbb 2021.3.0 h2d74725_0 conda-forge terminado 0.10.1 py36ha15d459_0 conda-forge testpath 0.5.0 pyhd8ed1ab_0 conda-forge threadpoolctl 2.2.0 pyh8a188c0_0 conda-forge tiledb 2.2.9 h78dabda_1 conda-forge tk 8.6.10 h8ffe710_1 conda-forge tornado 6.1 py36h68aa20f_1 conda-forge traitlets 4.3.3 py36h9f0ad1d_1 conda-forge typing_extensions 3.10.0.0 pyha770c72_0 conda-forge ucrt 10.0.20348.0 h57928b3_0 conda-forge urllib3 1.26.6 pyhd8ed1ab_0 conda-forge vc 14.2 hb210afc_5 conda-forge vs2015_runtime 14.29.30037 h902a5da_5 conda-forge wcwidth 0.2.5 pyh9f0ad1d_2 conda-forge webencodings 0.5.1 py_1 conda-forge websocket-client 0.57.0 py36ha15d459_4 conda-forge wheel 0.36.2 pyhd3deb0d_0 conda-forge win_inet_pton 1.1.0 py36ha15d459_2 conda-forge wincertstore 0.2 py36ha15d459_1006 conda-forge winpty 0.4.3 4 conda-forge xerces-c 3.2.3 h0e60522_2 conda-forge xlrd 1.2.0 pypi_0 pypi xz 5.2.5 h62dcd97_1 conda-forge zeromq 4.3.4 h0e60522_0 conda-forge zipp 3.5.0 pyhd8ed1ab_0 conda-forge zlib 1.2.11 h62dcd97_1010 conda-forge zstd 1.5.0 h6255e5f_0 conda-forge
Details about conda and system ( conda info ):
``` $ conda info ``` active environment : gisrs active env location : C:\Users\user\anaconda3\envs\gisrs shell level : 2 user config file : C:\Users\user\.condarc populated config files : C:\Users\user\.condarc conda version : 4.10.1 conda-build version : 3.21.4 python version : 3.8.8.final.0 virtual packages : __win=0=0 __archspec=1=x86_64 base environment : C:\Users\user\anaconda3 (writable) conda av data dir : C:\Users\user\anaconda3\etc\conda conda av metadata url : https://repo.anaconda.com/pkgs/main channel URLs : https://conda.anaconda.org/conda-forge/win-64 https://conda.anaconda.org/conda-forge/noarch https://repo.anaconda.com/pkgs/main/win-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/r/win-64 https://repo.anaconda.com/pkgs/r/noarch https://repo.anaconda.com/pkgs/msys2/win-64 https://repo.anaconda.com/pkgs/msys2/noarch package cache : C:\Users\user\anaconda3\pkgs C:\Users\user\.conda\pkgs C:\Users\user\AppData\Local\conda\conda\pkgs envs directories : C:\Users\user\anaconda3\envs C:\Users\user\.conda\envs C:\Users\user\AppData\Local\conda\conda\envs platform : win-64 user-agent : conda/4.10.1 requests/2.25.1 CPython/3.8.8 Windows/10 Windows/10.0.19041 administrator : False netrc file : None offline mode : False
Details problem and error log:
Problem is to import rasterio in jupyter notebook, please see the error log below, --------------------------------------------------------------------------- ImportError Traceback (most recent call last) in ----> 1 import rasterio 2 import rasterio.mask 3 import rasterio.plot 4 import pyproj 5 import numpy as np ~\anaconda3\envs\gisrs\lib\site-packages\rasterio\__init__.py in 20 pass 21 ---> 22 from rasterio._base import gdal_version 23 from rasterio.drivers import is_blacklisted 24 from rasterio.dtypes import ( ImportError: DLL load failed: The specified procedure could not be found. #### For your kind information I have been using rasterio for the last 3+ years, and it is the very first error I encountered. Although, rasterio (installed from conda-forge) in my two other machines (Win 10 64 bit, rasterio vr 1.1.7 and Ubuntu 64 bit, rasterio vr 1.1.0) working well.
xylar commented 3 years ago

@rifatSDAS, as discussed in https://github.com/conda-forge/rasterio-feedstock/issues/213#issuecomment-890011492, the python scientific stack is becoming next to impossible to support in python 3.6, particularly under Windows. If you can use python>=3.7, that would be the most feasible way to solve this issue. If you must use python 3.6, you will have to experiment with constraining packages (likely starting with proj and gdal) to earlier versions.

rifatSDAS commented 3 years ago

@xylar thanks for mentioning the python issue! yes, now the problem is solved by updating python from 3.6 to 3.9. 👍

xylar commented 3 years ago

@rifatSDAS, that's great! Sorry for the inconvenience. In a few months, conda-forge will stop supporting python 3.6 entirely and this issue will stop happening to poor folks like you. In the meantime, hang in there and keep your environments updated if possible.

I'm going to close the issue but feel free to re-open if something related comes up.