Error on opening mfix 23.2 in Windows(ImportError: DLL load failed while importing _mt19937)

Please select the most relevant MFiX category: Bug report.

Hi, Developers

I met this error when i try to opening mfix 23.2,but when i try to change the version to mfix 21.1.4,mfix 20.1.2,i can open mifx success.

I try to update the version of numpy,,iBut I still can’t open it.

ImportError: DLL load failed while importing _mt19937

OS version:win11

I’ve never seen this error before. Can you please go to the main menu, select “Submit bug report” and upload the ZIP file?

When I tried to open it(MFix23.2), the image (I attached it below) flashed and then these error prompts appeared.
pic1

Can you please run (with the mfix-23.2 environment activated) these three commands, and copy/paste the output here:

(mfix-23.2)  mfixversioninfo
(mfix-23.2)  conda info
(mfix-23.2)  conda list

Thanks!

This thread has gotten confusing, as there are now two separate errors under discussion.

@PoorWesley posted about an error on Windows, ‘DLL Load failed’. Then @MFIX_LYP added a comment about an unrelated problem on CentOS 7. Please don’t do this! - it creates confusion and extra work for us who are doing support.

@MFiX_LYP Please start a new topic, with a relevant subject line.

@PoorWesley if you are still reading this can you please do:

(mfix-23.2)  mfixversioninfo
(mfix-23.2)  conda info
(mfix-23.2)  conda list

and paste the results here? Thanks.

Hi ,I am sorry for not giving you a prompt reply due to the busy work in recently.

The result after I input these codes is as follows:

(mfix-23.2) PS C:\Users\lywl1> mfixversioninfo

MFiX:                23.2
Python:              3.10.12 | packaged by conda-forge | (main, Jun 23 2023, 22:34:57) [MSC v.1936 64 bit (AMD64)]
gfortran:            GNU Fortran (Rev5, Built by MSYS2 project) 5.3.0
openmpi:             Unavailable
Qt wrapper:          PyQt5
Qt:                  5.15.6
qtpy:                2.3.1
numpy:               Unavailable
nodeworks:           Unavailable
flask:               2.3.2
psutil:              5.9.5
VTK:                 9.2.6
OpenGL backend:      2
System info:         Windows-10-10.0.22621-SP0
Install location:    D:\Anaconda3\envs\mfix-23.2\share\mfix
Default solver:      D:\Anaconda3\envs\mfix-23.2\Scripts\mfixsolver.exe
Solver source:       D:\Anaconda3\envs\mfix-23.2\share\mfix\src

(mfix-23.2) PS C:\Users\lywl1> conda info

     active environment : mfix-23.2
    active env location : D:\Anaconda3\envs\mfix-23.2
            shell level : 2
       user config file : C:\Users\lywl1\.condarc
 populated config files : C:\Users\lywl1\.condarc
          conda version : 4.12.0
    conda-build version : 3.21.8
         python version : 3.9.12.final.0
       virtual packages : __win=0=0
                          __archspec=1=x86_64
       base environment : D:\Anaconda3  (read only)
      conda av data dir : D:\Anaconda3\etc\conda
  conda av metadata url : None
           channel URLs : 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 : D:\Anaconda3\pkgs
                          C:\Users\lywl1\.conda\pkgs
                          C:\Users\lywl1\AppData\Local\conda\conda\pkgs
       envs directories : D:\Anaconda3\envs
                          D:\Anaconda\envs
                          C:\Users\lywl1\.conda\envs
                          C:\Users\lywl1\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/4.12.0 requests/2.27.1 CPython/3.9.12 Windows/10 Windows/10.0.22621
          administrator : False
             netrc file : None
           offline mode : False

(mfix-23.2) PS C:\Users\lywl1> conda list
# packages in environment at D:\Anaconda3\envs\mfix-23.2:
#
# Name                    Version                   Build  Channel
aiohttp                   3.8.5           py310h8d17308_0    conda-forge
aiosignal                 1.3.1              pyhd8ed1ab_0    conda-forge
aom                       3.5.0                h63175ca_0    conda-forge
async-timeout             4.0.2              pyhd8ed1ab_0    conda-forge
attrs                     23.1.0             pyh71513ae_1    conda-forge
blinker                   1.6.2              pyhd8ed1ab_0    conda-forge
blosc                     1.21.4               hdccc3a2_0    conda-forge
brotli                    1.0.9                hcfcfb64_9    conda-forge
brotli-bin                1.0.9                hcfcfb64_9    conda-forge
brotli-python             1.0.9           py310h00ffb61_9    conda-forge
bzip2                     1.0.8                h8ffe710_4    conda-forge
ca-certificates           2023.5.7             h56e8100_0    conda-forge
certifi                   2023.5.7           pyhd8ed1ab_0    conda-forge
charset-normalizer        3.2.0              pyhd8ed1ab_0    conda-forge
click                     8.1.6           win_pyh7428d3b_0    conda-forge
cmake                     3.26.4               h1537add_0    conda-forge
colorama                  0.4.6              pyhd8ed1ab_0    conda-forge
contourpy                 1.1.0           py310h232114e_0    conda-forge
cycler                    0.11.0             pyhd8ed1ab_0    conda-forge
dav1d                     1.2.1                hcfcfb64_0    conda-forge
double-conversion         3.3.0                h63175ca_0    conda-forge
eigen                     3.4.1                h91493d7_0    conda-forge
expat                     2.5.0                h63175ca_1    conda-forge
ffmpeg                    6.0.0           gpl_h2b371f0_103    conda-forge
ffmpeg-python             0.2.0                      py_0    conda-forge
flask                     2.3.2              pyhd8ed1ab_0    conda-forge
font-ttf-dejavu-sans-mono 2.37                 hab24e00_0    conda-forge
font-ttf-inconsolata      3.000                h77eed37_0    conda-forge
font-ttf-source-code-pro  2.038                h77eed37_0    conda-forge
font-ttf-ubuntu           0.83                 hab24e00_0    conda-forge
fontconfig                2.14.2               hbde0cde_0    conda-forge
fonts-conda-ecosystem     1                             0    conda-forge
fonts-conda-forge         1                             0    conda-forge
fonttools                 4.41.1          py310h8d17308_0    conda-forge
freetype                  2.12.1               h546665d_1    conda-forge
frozenlist                1.4.0           py310h8d17308_0    conda-forge
future                    0.18.3             pyhd8ed1ab_0    conda-forge
gettext                   0.21.1               h5728263_0    conda-forge
git                       2.41.0               h57928b3_0    conda-forge
gitdb                     4.0.10             pyhd8ed1ab_0    conda-forge
gitpython                 3.1.32             pyhd8ed1ab_0    conda-forge
gl2ps                     1.4.2                h0597ee9_0    conda-forge
glew                      2.1.0                h39d44d4_2    conda-forge
glib                      2.76.4               h12be248_0    conda-forge
glib-tools                2.76.4               h12be248_0    conda-forge
gst-plugins-base          1.22.5               h001b923_0    conda-forge
gstreamer                 1.22.5               hb4038d2_0    conda-forge
hdf4                      4.2.15               h1334946_6    conda-forge
hdf5                      1.14.1          nompi_h73e8ff5_100    conda-forge
icu                       72.1                 h63175ca_0    conda-forge
idna                      3.4                pyhd8ed1ab_0    conda-forge
importlib-metadata        6.8.0              pyha770c72_0    conda-forge
intel-openmp              2023.1.0         h57928b3_46319    conda-forge
itsdangerous              2.1.2              pyhd8ed1ab_0    conda-forge
jinja2                    3.1.2              pyhd8ed1ab_1    conda-forge
jsoncpp                   1.9.5                h2d74725_1    conda-forge
kiwisolver                1.4.4           py310h232114e_1    conda-forge
krb5                      1.20.1               heb0366b_0    conda-forge
lcms2                     2.15                 h3e3b177_1    conda-forge
lerc                      4.0.0                h63175ca_0    conda-forge
libaec                    1.0.6                h63175ca_1    conda-forge
libblas                   3.9.0              17_win64_mkl    conda-forge
libbrotlicommon           1.0.9                hcfcfb64_9    conda-forge
libbrotlidec              1.0.9                hcfcfb64_9    conda-forge
libbrotlienc              1.0.9                hcfcfb64_9    conda-forge
libcblas                  3.9.0              17_win64_mkl    conda-forge
libclang                  16.0.6          default_heb8d277_0    conda-forge
libclang13                16.0.6          default_hc80b9e7_0    conda-forge
libcurl                   8.1.2                h68f0423_0    conda-forge
libdeflate                1.18                 hcfcfb64_0    conda-forge
libexpat                  2.5.0                h63175ca_1    conda-forge
libffi                    3.4.2                h8ffe710_5    conda-forge
libglib                   2.76.4               he8f3873_0    conda-forge
libhwloc                  2.9.1           nocuda_h15da153_6    conda-forge
libiconv                  1.17                 h8ffe710_0    conda-forge
libjpeg-turbo             2.1.5.1              hcfcfb64_0    conda-forge
liblapack                 3.9.0              17_win64_mkl    conda-forge
libnetcdf                 4.9.2           nompi_h5902ca5_107    conda-forge
libogg                    1.3.4                h8ffe710_1    conda-forge
libopus                   1.3.1                h8ffe710_1    conda-forge
libpng                    1.6.39               h19919ed_0    conda-forge
libpython                 2.2             py310h5588dad_2    conda-forge
libsqlite                 3.42.0               hcfcfb64_0    conda-forge
libssh2                   1.11.0               h7dfc565_0    conda-forge
libtheora                 1.1.1             h8d14728_1005    conda-forge
libtiff                   4.5.1                h6c8260b_0    conda-forge
libvorbis                 1.3.7                h0e60522_0    conda-forge
libwebp-base              1.3.1                hcfcfb64_0    conda-forge
libxcb                    1.15                 hcd874cb_0    conda-forge
libxml2                   2.11.4               hc3477c8_0    conda-forge
libzip                    1.9.2                h519de47_1    conda-forge
libzlib                   1.2.13               hcfcfb64_5    conda-forge
loguru                    0.7.0           py310h5588dad_0    conda-forge
lz4-c                     1.9.4                hcfcfb64_0    conda-forge
m2w64-binutils            2.25.1                        5    conda-forge
m2w64-bzip2               1.0.6                         6    conda-forge
m2w64-crt-git             5.0.0.4636.2595836               2    conda-forge
m2w64-gcc                 5.3.0                         6    conda-forge
m2w64-gcc-ada             5.3.0                         6    conda-forge
m2w64-gcc-fortran         5.3.0                         6    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-gcc-objc            5.3.0                         6    conda-forge
m2w64-gmp                 6.1.0                         2    conda-forge
m2w64-headers-git         5.0.0.4636.c0ad18a               2    conda-forge
m2w64-isl                 0.16.1                        2    conda-forge
m2w64-libiconv            1.14                          6    conda-forge
m2w64-libmangle-git       5.0.0.4509.2e5a9a2               2    conda-forge
m2w64-libwinpthread-git   5.0.0.4634.697f757               2    conda-forge
m2w64-make                4.1.2351.a80a8b8               2    conda-forge
m2w64-mpc                 1.0.3                         3    conda-forge
m2w64-mpfr                3.1.4                         4    conda-forge
m2w64-pkg-config          0.29.1                        2    conda-forge
m2w64-toolchain           5.3.0                         7    conda-forge
m2w64-tools-git           5.0.0.4592.90b8472               2    conda-forge
m2w64-windows-default-manifest 6.4                           3    conda-forge
m2w64-winpthreads-git     5.0.0.4634.697f757               2    conda-forge
m2w64-zlib                1.2.8                        10    conda-forge
markupsafe                2.1.3           py310h8d17308_0    conda-forge
matplotlib                3.7.2           py310h5588dad_0    conda-forge
matplotlib-base           3.7.2           py310h51140c5_0    conda-forge
mfix                      23.2                          0    https://mfix.netl.doe.gov/s3/907de298/92a11979cbcec6d64f03c0f0ef0217bd//conda/dist
mfix-doc                  23.2                          0    https://mfix.netl.doe.gov/s3/907de298/92a11979cbcec6d64f03c0f0ef0217bd//conda/dist
mfix-gui                  23.2                       py_0    https://mfix.netl.doe.gov/s3/907de298/92a11979cbcec6d64f03c0f0ef0217bd//conda/dist
mfix-solver               23.2                    py310_0    https://mfix.netl.doe.gov/s3/907de298/92a11979cbcec6d64f03c0f0ef0217bd//conda/dist
mfix-src                  23.2                          0    https://mfix.netl.doe.gov/s3/907de298/92a11979cbcec6d64f03c0f0ef0217bd//conda/dist
mkl                       2022.1.0           h6a75c08_874    conda-forge
mscorefonts               0.0.1                         3    conda-forge
msys2-conda-epoch         20160418                      1    conda-forge
multidict                 6.0.4           py310h8d17308_0    conda-forge
munkres                   1.1.4              pyh9f0ad1d_0    conda-forge
nlohmann_json             3.11.2               h39d44d4_0    conda-forge
numpy                     1.25.1          py310hd02465a_0    conda-forge
openh264                  2.3.1                h63175ca_2    conda-forge
openjpeg                  2.5.0                ha2aaf27_2    conda-forge
openssl                   3.1.1                hcfcfb64_1    conda-forge
packaging                 23.1               pyhd8ed1ab_0    conda-forge
pcre2                     10.40                h17e33f8_0    conda-forge
pillow                    10.0.0          py310hb653ca7_0    conda-forge
pip                       23.2               pyhd8ed1ab_0    conda-forge
ply                       3.11                       py_1    conda-forge
proj                      9.2.1                h660b3b0_0    conda-forge
psutil                    5.9.5           py310h8d17308_0    conda-forge
pthread-stubs             0.4               hcd874cb_1001    conda-forge
pthreads-win32            2.9.1                hfa6e2cd_3    conda-forge
pugixml                   1.13                 h63175ca_1    conda-forge
pyparsing                 3.0.9              pyhd8ed1ab_0    conda-forge
pyqt                      5.15.7          py310h1fd54f2_3    conda-forge
pyqt5-sip                 12.11.0         py310h00ffb61_3    conda-forge
pyqtgraph                 0.13.3             pyhd8ed1ab_0    conda-forge
pysocks                   1.7.1              pyh0701188_6    conda-forge
python                    3.10.12         h4de0772_0_cpython    conda-forge
python-dateutil           2.8.2              pyhd8ed1ab_0    conda-forge
python_abi                3.10                    3_cp310    conda-forge
pyyaml                    6.0             py310h8d17308_5    conda-forge
qt-main                   5.15.8              h2c8576c_12    conda-forge
qtpy                      2.3.1              pyhd8ed1ab_0    conda-forge
requests                  2.31.0             pyhd8ed1ab_0    conda-forge
setuptools                68.0.0             pyhd8ed1ab_0    conda-forge
simplejson                3.19.1          py310h8d17308_0    conda-forge
sip                       6.7.9           py310h00ffb61_0    conda-forge
six                       1.16.0             pyh6c4a22f_0    conda-forge
smmap                     3.0.5              pyh44b312d_0    conda-forge
snappy                    1.1.10               hfb803bf_0    conda-forge
sqlite                    3.42.0               hcfcfb64_0    conda-forge
svt-av1                   1.6.0                h63175ca_0    conda-forge
tbb                       2021.9.0             h91493d7_0    conda-forge
tbb-devel                 2021.9.0             h91493d7_0    conda-forge
tk                        8.6.12               h8ffe710_0    conda-forge
toml                      0.10.2             pyhd8ed1ab_0    conda-forge
tomli                     2.0.1              pyhd8ed1ab_0    conda-forge
tornado                   6.3.2           py310h8d17308_0    conda-forge
typing-extensions         4.7.1                hd8ed1ab_0    conda-forge
typing_extensions         4.7.1              pyha770c72_0    conda-forge
tzdata                    2023c                h71feb2d_0    conda-forge
ucrt                      10.0.22621.0         h57928b3_0    conda-forge
unicodedata2              15.0.0          py310h8d17308_0    conda-forge
urllib3                   2.0.4              pyhd8ed1ab_0    conda-forge
utfcpp                    3.2.3                h57928b3_0    conda-forge
vc                        14.3                h64f974e_17    conda-forge
vc14_runtime              14.36.32532         hfdfe4a8_17    conda-forge
vs2015_runtime            14.36.32532         h05e6639_17    conda-forge
vtk                       9.2.6           qt_py310h1234567_208    conda-forge
vtk-base                  9.2.6           qt_py310h1234567_208    conda-forge
werkzeug                  2.3.6              pyhd8ed1ab_0    conda-forge
wheel                     0.40.0             pyhd8ed1ab_1    conda-forge
win32_setctime            1.1.0              pyhd8ed1ab_0    conda-forge
win_inet_pton             1.1.0              pyhd8ed1ab_6    conda-forge
wslink                    1.11.1             pyhd8ed1ab_0    conda-forge
x264                      1!164.3095           h8ffe710_2    conda-forge
x265                      3.5                  h2d74725_3    conda-forge
xorg-libxau               1.0.11               hcd874cb_0    conda-forge
xorg-libxdmcp             1.1.3                hcd874cb_0    conda-forge
xz                        5.2.6                h8d14728_0    conda-forge
yaml                      0.2.5                h8ffe710_2    conda-forge
yarl                      1.9.2           py310h8d17308_0    conda-forge
zipp                      3.16.2             pyhd8ed1ab_0    conda-forge
zlib                      1.2.13               hcfcfb64_5    conda-forge
zstd                      1.5.2                h12be248_7    conda-forge

What I must tell you is that after I discovered the error, I switched the latest version of Anaconda to a lower version of Anaconda.
Thaks for your help.

Can you try the alternative miniforge/mamba installation?