conda-forge / vtk-feedstock

A conda-smithy repository for vtk.
BSD 3-Clause "New" or "Revised" License
13 stars 64 forks source link

ImportError: DLL load failed while importing vtkIONetCDF: The specified procedure could not be found. #207

Closed adam-urbanczyk closed 10 months ago

adam-urbanczyk commented 2 years ago

Issue:

Some of the vtk builds are broken on windows. import vtk gives the following error

ImportError: DLL load failed while importing vtkIONetCDF: The specified procedure could not be found.


Environment (conda list):

``` # Name Version Build Channel bzip2 1.0.8 h8ffe710_4 conda-forge ca-certificates 2021.10.8 h5b45459_0 conda-forge colorama 0.4.4 pyh9f0ad1d_0 conda-forge curl 7.79.1 h789b8ee_1 conda-forge double-conversion 3.1.5 h0e60522_2 conda-forge eigen 3.4.0 h2d74725_0 conda-forge expat 2.4.1 h39d44d4_0 conda-forge ffmpeg 4.3.1 ha925a31_0 conda-forge freetype 2.10.4 h546665d_1 conda-forge gl2ps 1.4.2 h0597ee9_0 conda-forge glew 2.1.0 h39d44d4_2 conda-forge hdf4 4.2.15 h0e5069d_3 conda-forge hdf5 1.10.6 nompi_he0bbb20_101 conda-forge icu 68.1 h0e60522_0 conda-forge jbig 2.1 h8d14728_2003 conda-forge jpeg 9d h8ffe710_0 conda-forge jsoncpp 1.9.4 h2d74725_3 conda-forge krb5 1.19.2 hbae68bd_2 conda-forge lerc 2.2.1 h0e60522_0 conda-forge libclang 11.1.0 default_h5c34c98_1 conda-forge libcurl 7.79.1 h789b8ee_1 conda-forge libdeflate 1.7 h8ffe710_5 conda-forge libiconv 1.16 he774522_0 conda-forge libnetcdf 4.8.1 nompi_hf689e7d_100 conda-forge libogg 1.3.4 h8ffe710_1 conda-forge libpng 1.6.37 h1d00b33_2 conda-forge libssh2 1.10.0 h680486a_2 conda-forge libtheora 1.1.1 h8d14728_1005 conda-forge libtiff 4.3.0 h0c97f57_1 conda-forge libxml2 2.9.12 hf5bbc77_0 conda-forge libzip 1.8.0 hfed4ece_1 conda-forge libzlib 1.2.11 h8ffe710_1013 conda-forge loguru 0.5.3 py39hcbf5309_2 conda-forge lz4-c 1.9.3 h8ffe710_1 conda-forge openssl 1.1.1l h8ffe710_0 conda-forge pip 21.3 pyhd8ed1ab_0 conda-forge proj 8.1.1 h1cfcee9_2 conda-forge pugixml 1.11.4 h0e60522_0 conda-forge python 3.9.7 h7840368_3_cpython conda-forge python_abi 3.9 2_cp39 conda-forge qt 5.12.9 h5909a2a_4 conda-forge setuptools 58.2.0 py39hcbf5309_0 conda-forge sqlite 3.36.0 h8ffe710_2 conda-forge tbb 2020.2 h2d74725_4 conda-forge tbb-devel 2020.2 h2d74725_4 conda-forge tk 8.6.11 h8ffe710_1 conda-forge tzdata 2021c he74cb21_0 conda-forge ucrt 10.0.20348.0 h57928b3_0 conda-forge utfcpp 3.2.1 h57928b3_0 conda-forge vc 14.2 hb210afc_5 conda-forge vs2015_runtime 14.29.30037 h902a5da_5 conda-forge vtk 9.0.3 no_osmesa_py39h7e96c5d_104 conda-forge wheel 0.37.0 pyhd8ed1ab_1 conda-forge win32_setctime 1.0.3 py_0 conda-forge xz 5.2.5 h62dcd97_1 conda-forge zlib 1.2.11 h8ffe710_1013 conda-forge zstd 1.5.0 h6255e5f_0 conda-forge ```


Details about conda and system ( conda info ):

``` active environment : D:\mambaforge\envs\cq2 active env location : D:\mambaforge\envs\cq2 shell level : 2 user config file : C:\Users\lo-re\.condarc populated config files : C:\Users\lo-re\.condarc conda version : 4.8.3 conda-build version : 3.19.2 python version : 3.6.10.final.0 virtual packages : __cuda=9.2 base environment : C:\Localdata\Anaconda3_64 (writable) channel URLs : https://conda.anaconda.org/conda-forge/win-64 https://conda.anaconda.org/conda-forge/noarch package cache : C:\Localdata\Anaconda3_64\pkgs C:\Users\lo-re\.conda\pkgs C:\Users\lo-re\AppData\Local\conda\conda\pkgs envs directories : C:\Localdata\Anaconda3_64\envs C:\Users\lo-re\.conda\envs C:\Users\lo-re\AppData\Local\conda\conda\envs platform : win-64 user-agent : conda/4.8.3 requests/2.23.0 CPython/3.6.10 Windows/10 Windows/10.0.19041 administrator : False netrc file : None offline mode : False ```

I have to downgrade libnetcdf to 4.7.4 solves the issue (4.8.1 seems to be the rootcause). To be exact there is a missing imorted symbol from hdf5 (H5Pset_fapl_ros3): afbeelding

I'm posting this issue first here, because there seems to be something wrong with your CI if missing symbols do not cause a red build.

Tobias-Fischer commented 10 months ago

Closing here, issue not present in recent builds