mamba icon indicating copy to clipboard operation
mamba copied to clipboard

[mamba stops working ๐Ÿ› ๏ธ] ImportError: DLL load failed while importing bindings: The specified procedure could not be found.

Open IndigoWizard opened this issue 2 years ago โ€ข 9 comments

Main issue gist

Mamba stops working after installing geopandas (installing geopandas successfully using mamba itself).

How/what went wrong:

Trying to install geospatial, following basic steps in documentation:

  • Creating new env with conda: successful. :heavy_check_mark:
  • Installing mamba in env using coda: installed successfully and works. :heavy_check_mark:
  • Installing geopandas in same env using mamba: mamba works and geopandas installed successfully. :heavy_check_mark:
  • Checking if mamba still works (trying to do anything): Fails. > ImportError: DLL load failed while importing bindings. :x:

Main error:

Happens when executing any mamba commend, demonstrated here through mamba list. (error message is in french but it's what the issue title says)

(geospatial) PS C:\Users\DELL> mamba list
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\envs\geospatial\Scripts\mamba-script.py", line 6, in <module>
    from mamba.mamba import main
  File "C:\ProgramData\Anaconda3\envs\geospatial\lib\site-packages\mamba\mamba.py", line 49, in <module>
    import libmambapy as api
  File "C:\ProgramData\Anaconda3\envs\geospatial\lib\site-packages\libmambapy\__init__.py", line 7, in <module>
    raise e
  File "C:\ProgramData\Anaconda3\envs\geospatial\lib\site-packages\libmambapy\__init__.py", line 4, in <module>
    from libmambapy.bindings import *  # noqa: F401,F403
ImportError: DLL load failed while importing bindings: La procรฉdure spรฉcifiรฉe est introuvable.
(geospatial) PS C:\Users\DELL>

Additional info:

  • OS: Windows10 (win64)
  • Conda version: 4.13.0
  • Conda-build: 3.21.4
  • Python (env): 3.9.12
  • Mamba 0.24.0
  • Geopandas: 0.9.0

I already faced this very issue the day before, following the same procedure. In this session, I tried to start again from scratch, cleaned up the mess (deleted previous env), started new env and followed same steps and got the same error.

PS: Looked into closed #249 but nothing usefull.

IndigoWizard avatar Jun 05 '22 16:06 IndigoWizard

Full session log:

The following is the full log of the same work session from creating the env to testing mamba:

Click to expand full log
Windows PowerShell
Copyright (C) Microsoft Corporation. Tous droits rรฉservรฉs.

Le chargement des profils personnels et systรจme a durรฉ 1615 ms.
(base) PS C:\Users\DELL> conda create -n geospatial python=3.9
WARNING: A directory already exists at the target location 'C:\ProgramData\Anaconda3\envs\geospatial'
but it is not a conda environment.
Continue creating environment (y/[n])? n


CondaSystemExit: Exiting.

(base) PS C:\Users\DELL> conda create -n geospatial python=3.9
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: C:\ProgramData\Anaconda3\envs\geospatial

  added / updated specs:
    - python=3.9


The following NEW packages will be INSTALLED:

  ca-certificates    pkgs/main/win-64::ca-certificates-2022.4.26-haa95532_0
  certifi            pkgs/main/win-64::certifi-2022.5.18.1-py39haa95532_0
  openssl            pkgs/main/win-64::openssl-1.1.1o-h2bbff1b_0
  pip                pkgs/main/win-64::pip-21.2.4-py39haa95532_0
  python             pkgs/main/win-64::python-3.9.12-h6244533_0
  setuptools         pkgs/main/win-64::setuptools-61.2.0-py39haa95532_0
  sqlite             pkgs/main/win-64::sqlite-3.38.3-h2bbff1b_0
  tzdata             pkgs/main/noarch::tzdata-2022a-hda174b7_0  vc                 pkgs/main/win-64::vc-14.2-h21ff451_1
  vs2015_runtime     pkgs/main/win-64::vs2015_runtime-14.27.29016-h5e58377_2
  wheel              pkgs/main/noarch::wheel-0.37.1-pyhd3eb1b0_0
  wincertstore       pkgs/main/win-64::wincertstore-0.2-py39haa95532_2


Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
#     $ conda activate geospatial
#
# To deactivate an active environment, use
#
#     $ conda deactivate

(base) PS C:\Users\DELL> conda activate geospatial
(geospatial) PS C:\Users\DELL> conda install -c conda-forge mamba
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: C:\ProgramData\Anaconda3\envs\geospatial

  added / updated specs:
    - mamba


The following NEW packages will be INSTALLED:

  brotlipy           conda-forge/win-64::brotlipy-0.7.0-py39hb82d6ee_1004
  bzip2              conda-forge/win-64::bzip2-1.0.8-h8ffe710_4
  cffi               conda-forge/win-64::cffi-1.15.0-py39h0878f49_0
  charset-normalizer conda-forge/noarch::charset-normalizer-2.0.12-pyhd8ed1ab_0
  colorama           conda-forge/noarch::colorama-0.4.4-pyh9f0ad1d_0
  conda              conda-forge/win-64::conda-4.12.0-py39hcbf5309_0
  conda-package-han~ conda-forge/win-64::conda-package-handling-1.8.1-py39hb3671d1_1
  cryptography       conda-forge/win-64::cryptography-37.0.2-py39h7bc7c5c_0
  idna               conda-forge/noarch::idna-3.3-pyhd8ed1ab_0
  krb5               conda-forge/win-64::krb5-1.19.3-h1176d77_0
  libarchive         conda-forge/win-64::libarchive-3.5.2-hb45042f_2
  libcurl            conda-forge/win-64::libcurl-7.83.1-h789b8ee_0
  libiconv           conda-forge/win-64::libiconv-1.16-he774522_0
  libmamba           conda-forge/win-64::libmamba-0.24.0-h81a967f_1
  libmambapy         conda-forge/win-64::libmambapy-0.24.0-py39h4126fcf_1
  libsolv            conda-forge/win-64::libsolv-0.7.22-h7755175_0
  libssh2            conda-forge/win-64::libssh2-1.10.0-h680486a_2
  libxml2            conda-forge/win-64::libxml2-2.9.14-hf5bbc77_0
  libzlib            conda-forge/win-64::libzlib-1.2.12-h8ffe710_0
  lz4-c              conda-forge/win-64::lz4-c-1.9.3-h8ffe710_1
  lzo                conda-forge/win-64::lzo-2.10-he774522_1000
  mamba              conda-forge/win-64::mamba-0.24.0-py39hb3d9227_1
  menuinst           conda-forge/win-64::menuinst-1.4.18-py39hcbf5309_1
  pybind11-abi       conda-forge/noarch::pybind11-abi-4-hd8ed1ab_3
  pycosat            conda-forge/win-64::pycosat-0.6.3-py39hb82d6ee_1010
  pycparser          conda-forge/noarch::pycparser-2.21-pyhd8ed1ab_0
  pysocks            conda-forge/win-64::pysocks-1.7.1-py39hcbf5309_5
  python_abi         conda-forge/win-64::python_abi-3.9-2_cp39
  pywin32            conda-forge/win-64::pywin32-303-py39hb82d6ee_0
  reproc             conda-forge/win-64::reproc-14.2.3-h8ffe710_0
  reproc-cpp         conda-forge/win-64::reproc-cpp-14.2.3-h0e60522_0
  requests           conda-forge/noarch::requests-2.27.1-pyhd8ed1ab_0
  ruamel_yaml        conda-forge/win-64::ruamel_yaml-0.15.80-py39hb82d6ee_1007
  six                conda-forge/noarch::six-1.16.0-pyh6c4a22f_0
  tqdm               conda-forge/noarch::tqdm-4.64.0-pyhd8ed1ab_0
  urllib3            conda-forge/noarch::urllib3-1.26.9-pyhd8ed1ab_0
  win_inet_pton      conda-forge/win-64::win_inet_pton-1.1.0-py39hcbf5309_4
  xz                 conda-forge/win-64::xz-5.2.5-h62dcd97_1
  yaml               conda-forge/win-64::yaml-0.2.5-h8ffe710_2
  yaml-cpp           conda-forge/win-64::yaml-cpp-0.7.0-h0e60522_1
  zlib               conda-forge/win-64::zlib-1.2.12-h8ffe710_0
  zstd               conda-forge/win-64::zstd-1.5.2-h6255e5f_1

The following packages will be UPDATED:

  ca-certificates    pkgs/main::ca-certificates-2022.4.26-~ --> conda-forge::ca-certificates-2022.5.18.1-h5b45459_0

The following packages will be SUPERSEDED by a higher-priority channel:

  certifi            pkgs/main::certifi-2022.5.18.1-py39ha~ --> conda-forge::certifi-2022.5.18.1-py39hcbf5309_0
  openssl              pkgs/main::openssl-1.1.1o-h2bbff1b_0 --> conda-forge::openssl-1.1.1o-h8ffe710_0


Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
(geospatial) PS C:\Users\DELL> mamba install geopandas
menuinst called from non-root env C:\ProgramData\Anaconda3\envs\geospatial

                  __    __    __    __
                 /  \  /  \  /  \  /  \
                /    \/    \/    \/    \
โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ/  /โ–ˆโ–ˆ/  /โ–ˆโ–ˆ/  /โ–ˆโ–ˆ/  /โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ
              /  / \   / \   / \   / \  \____
             /  /   \_/   \_/   \_/   \    o \__,
            / _/                       \_____/  `
            |/
        โ–ˆโ–ˆโ–ˆโ•—   โ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ•—   โ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—  โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—
        โ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—
        โ–ˆโ–ˆโ•”โ–ˆโ–ˆโ–ˆโ–ˆโ•”โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ–ˆโ–ˆโ–ˆโ–ˆโ•”โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘
        โ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•‘
        โ–ˆโ–ˆโ•‘ โ•šโ•โ• โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘ โ•šโ•โ• โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘
        โ•šโ•โ•     โ•šโ•โ•โ•šโ•โ•  โ•šโ•โ•โ•šโ•โ•     โ•šโ•โ•โ•šโ•โ•โ•โ•โ•โ• โ•šโ•โ•  โ•šโ•โ•

        mamba (0.24.0) supported by @QuantStack

        GitHub:  https://github.com/mamba-org/mamba
        Twitter: https://twitter.com/QuantStack

โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ


Looking for: ['geopandas']

pkgs/r/win-64                                                 No change
pkgs/msys2/win-64                                             No change
pkgs/msys2/noarch                                             No change
pkgs/r/noarch                                      495.9kB @ 533.0kB/s  1.0s
pkgs/main/noarch                                   810.1kB @ 527.4kB/s  1.6s
pkgs/main/win-64                                     4.0MB @   1.2MB/s  3.8s

Pinned packages:
  - python 3.9.*


Transaction

  Prefix: C:\ProgramData\Anaconda3\envs\geospatial

  Updating specs:

   - geopandas
   - ca-certificates
   - certifi
   - openssl


  Package                               Version  Build           Channel                 Size
-----------------------------------------------------------------------------------------------
  Install:
-----------------------------------------------------------------------------------------------

  + attrs                                21.4.0  pyhd3eb1b0_0    pkgs/main/noarch        52kB
  + blas                                    1.0  mkl             pkgs/main/win-64         6kB
  + bottleneck                            1.3.4  py39h080aedc_0  pkgs/main/win-64       111kB
  + brotli                                1.0.9  ha925a31_2      pkgs/main/win-64       340kB
  + cfitsio                               3.470  he774522_6      pkgs/main/win-64       524kB
  + click                                 7.1.2  pyhd3eb1b0_0    pkgs/main/noarch        65kB
  + click-plugins                         1.1.1  pyhd3eb1b0_0    pkgs/main/noarch        10kB
  + cligj                                 0.7.2  pyhd3eb1b0_0    pkgs/main/noarch        11kB
  + curl                                 7.55.1  h3b839b5_4      pkgs/main/win-64       322kB
  + cycler                               0.11.0  pyhd3eb1b0_0    pkgs/main/noarch        13kB
  + expat                                 2.4.4  h6c2663c_0      pkgs/main/win-64       212kB
  + fiona                          1.8.13.post1  py39h758c064_0  pkgs/main/win-64       632kB
  + fonttools                            4.25.0  pyhd3eb1b0_0    pkgs/main/noarch       648kB
  + freetype                             2.10.4  hd328e21_0      pkgs/main/win-64      Cached
  + freexl                                1.0.6  h2bbff1b_0      pkgs/main/win-64        52kB
  + gdal                                  3.0.2  py39hb978731_2  pkgs/main/win-64         1MB
  + geopandas                             0.9.0  py_1            pkgs/main/noarch        10kB
  + geopandas-base                        0.9.0  py_1            pkgs/main/noarch       941kB
  + geos                                  3.8.0  h33f27b4_0      pkgs/main/win-64       927kB
  + geotiff                               1.7.0  h4545760_0      pkgs/main/win-64       125kB
  + hdf4                                 4.2.13  h712560f_2      pkgs/main/win-64         1MB
  + hdf5                                 1.10.6  h7ebc959_0      pkgs/main/win-64         8MB
  + icc_rt                             2019.0.0  h0cc432a_1      pkgs/main/win-64         6MB
  + intel-openmp                       2021.4.0  haa95532_3556   pkgs/main/win-64         2MB
  + joblib                                1.1.0  pyhd3eb1b0_0    pkgs/main/noarch       216kB
  + jpeg                                     9e  h2bbff1b_0      pkgs/main/win-64       299kB
  + kealib                               1.4.14  hde4a422_1      pkgs/main/win-64       144kB
  + kiwisolver                            1.4.2  py39hd77b12b_0  pkgs/main/win-64        60kB
  + libgdal                               3.0.2  h3d7c30d_2      pkgs/main/win-64         7MB
  + libnetcdf                             4.8.1  h6685c40_1      pkgs/main/win-64       604kB
  + libpng                               1.6.37  h2a8f88b_0      pkgs/main/win-64      Cached
  + libpq                                  12.9  hb652d5d_1      pkgs/main/win-64         3MB
  + libspatialindex                       1.9.3  h6c2663c_0      pkgs/main/win-64       359kB
  + libspatialite                        4.3.0a  h14feca5_20     pkgs/main/win-64         2MB
  + libtiff                               4.2.0  he0120a3_1      pkgs/main/win-64       772kB
  + libwebp                               1.2.2  h2bbff1b_0      pkgs/main/win-64       674kB
  + libzip                                1.8.0  h49b8836_0      pkgs/main/win-64        97kB
  + m2w64-expat                           2.1.1  2               pkgs/msys2/win-64      163kB
  + m2w64-gcc-libgfortran                 5.3.0  6               pkgs/msys2/win-64      349kB
  + m2w64-gcc-libs                        5.3.0  7               pkgs/msys2/win-64      531kB
  + m2w64-gcc-libs-core                   5.3.0  7               pkgs/msys2/win-64      218kB
  + m2w64-gettext                        0.19.7  2               pkgs/msys2/win-64        4MB
  + m2w64-gmp                             6.1.0  2               pkgs/msys2/win-64      706kB
  + m2w64-libiconv                         1.14  6               pkgs/msys2/win-64        2MB
  + m2w64-libwinpthread-git  5.0.0.4634.697f757  2               pkgs/msys2/win-64       31kB
  + m2w64-xz                              5.2.2  2               pkgs/msys2/win-64      405kB
  + mapclassify                           2.4.3  pyhd3eb1b0_0    pkgs/main/noarch        37kB
  + matplotlib-base                       3.5.1  py39hd77b12b_1  pkgs/main/win-64         6MB
  + mkl                                2021.4.0  haa95532_640    pkgs/main/win-64       120MB
  + mkl-service                           2.4.0  py39h2bbff1b_0  pkgs/main/win-64        52kB
  + mkl_fft                               1.3.1  py39h277e83a_0  pkgs/main/win-64       142kB
  + mkl_random                            1.2.2  py39hf11a4ad_0  pkgs/main/win-64       230kB
  + msys2-conda-epoch                  20160418  1               pkgs/msys2/win-64        2kB
  + munch                                 2.5.0  pyhd3eb1b0_0    pkgs/main/noarch        14kB
  + munkres                               1.1.4  py_0            pkgs/main/noarch        14kB
  + networkx                              2.7.1  pyhd3eb1b0_0    pkgs/main/noarch         1MB
  + numexpr                               2.8.1  py39hb80d3ca_0  pkgs/main/win-64       120kB
  + numpy                                1.22.3  py39h7a0a035_0  pkgs/main/win-64        26kB
  + numpy-base                           1.22.3  py39hca35cd5_0  pkgs/main/win-64         5MB
  + openjpeg                              2.4.0  h4fc8c34_0      pkgs/main/win-64       224kB
  + packaging                              21.3  pyhd3eb1b0_0    pkgs/main/noarch        37kB
  + pandas                                1.4.2  py39hd77b12b_0  pkgs/main/win-64         9MB
  + pillow                                9.0.1  py39hdc2b20a_0  pkgs/main/win-64       943kB
  + proj                                  6.2.1  h3758d61_0      pkgs/main/win-64         8MB
  + pyparsing                             3.0.4  pyhd3eb1b0_0    pkgs/main/noarch        83kB
  + pyproj                          2.6.1.post1  py39h593ac45_1  pkgs/main/win-64       328kB
  + python-dateutil                       2.8.2  pyhd3eb1b0_0    pkgs/main/noarch       238kB
  + pytz                                 2021.3  pyhd3eb1b0_0    pkgs/main/noarch       175kB
  + rtree                                 0.9.7  py39h2eaa2aa_1  pkgs/main/win-64        50kB
  + scikit-learn                          1.0.2  py39hf11a4ad_1  pkgs/main/win-64         5MB
  + scipy                                 1.7.3  py39h0a974cb_0  pkgs/main/win-64        15MB
  + shapely                               1.7.1  py39h06580b3_0  pkgs/main/win-64       381kB
  + threadpoolctl                         2.2.0  pyh0d69192_0    pkgs/main/noarch        17kB
  + tiledb                                2.3.3  hc23ccdf_1      pkgs/main/win-64         2MB
  + tk                                   8.6.12  h2bbff1b_0      pkgs/main/win-64         3MB
  + xerces-c                              3.2.3  ha925a31_0      pkgs/main/win-64         3MB

  Summary:

  Install: 76 packages

  Total download: 230MB

-----------------------------------------------------------------------------------------------

Confirm changes: [Y/n] y
blas                                                 6.4kB @  11.0kB/s  0.6s
jpeg                                               298.8kB @ 136.5kB/s  2.2s
kiwisolver                                          59.7kB @  25.7kB/s  2.3s
libzip                                              96.8kB @  40.8kB/s  0.2s
libwebp                                            673.6kB @ 237.3kB/s  2.3s
intel-openmp                                         2.3MB @ 275.3kB/s  8.3s
pyproj                                             327.5kB @  32.8kB/s  1.7s
geotiff                                            125.2kB @  11.8kB/s  0.6s
geos                                               926.7kB @  69.7kB/s 13.3s
libnetcdf                                          603.9kB @  44.3kB/s  3.0s
bottleneck                                         111.1kB @   7.6kB/s  1.0s
mkl_fft                                            142.2kB @   9.1kB/s  2.4s
pytz                                               174.6kB @  10.9kB/s  1.4s
attrs                                               51.8kB @   3.2kB/s  0.4s
threadpoolctl                                       16.7kB @   1.0kB/s  0.2s
hdf5                                                 8.3MB @ 509.9kB/s 13.5s
cligj                                               11.2kB @ 678.0 B/s  0.3s
m2w64-libwinpthread-git                             30.5kB @   1.8kB/s  0.2s
m2w64-gcc-libs-core                                217.7kB @  12.8kB/s  0.5s
joblib                                             215.6kB @  12.4kB/s  1.4s
m2w64-expat                                        163.5kB @   8.6kB/s  2.5s
fiona                                              632.1kB @  25.4kB/s  6.4s
tiledb                                               2.1MB @  81.7kB/s 23.2s
geopandas                                           10.0kB @ 391.0 B/s  0.7s
brotli                                             339.6kB @  12.4kB/s  1.8s
expat                                              211.9kB @   7.4kB/s  1.2s
scikit-learn                                         5.3MB @ 156.3kB/s 17.0s
hdf4                                                 1.4MB @  39.4kB/s  7.3s
xerces-c                                             3.0MB @  73.9kB/s 14.8s
numpy                                               25.9kB @ 634.0 B/s  0.5s
libspatialite                                        2.4MB @  55.9kB/s 10.0s
pillow                                             943.3kB @  21.4kB/s  8.2s
pyparsing                                           82.5kB @   1.9kB/s  1.1s
packaging                                           37.3kB @ 839.0 B/s  0.3s
shapely                                            381.5kB @   8.6kB/s  3.7s
munkres                                             13.6kB @ 299.0 B/s  1.2s
libgdal                                              7.3MB @ 162.1kB/s 27.9s
numexpr                                            120.3kB @   2.6kB/s  0.6s
m2w64-gmp                                          705.6kB @  15.3kB/s  1.6s
freexl                                              52.3kB @   1.1kB/s  0.4s
m2w64-gcc-libs                                     530.6kB @  11.4kB/s  1.9s
rtree                                               50.5kB @   1.1kB/s  0.6s
libspatialindex                                    359.3kB @   7.4kB/s  2.2s
kealib                                             143.7kB @   2.8kB/s  4.7s
tk                                                   3.2MB @  57.6kB/s 10.0s
fonttools                                          647.6kB @  11.3kB/s  1.4s
m2w64-libiconv                                       1.5MB @  24.3kB/s  5.9s
m2w64-xz                                           404.8kB @   6.3kB/s  1.2s
mapclassify                                         36.7kB @ 564.0 B/s  0.6s
networkx                                             1.4MB @  19.3kB/s 20.3s
proj                                                 8.3MB @  75.2kB/s 38.0s
icc_rt                                               6.3MB @  56.8kB/s 45.3s
openjpeg                                           224.5kB @   2.0kB/s  0.8s
munch                                               13.6kB @ 122.0 B/s  0.2s
python-dateutil                                    238.1kB @   2.1kB/s  1.5s
scipy                                               14.6MB @ 130.1kB/s 1m:3.7s
mkl-service                                         51.9kB @ 460.0 B/s  0.4s
cycler                                              12.6kB @ 111.0 B/s  0.2s
curl                                               322.0kB @   2.9kB/s  1.0s
msys2-conda-epoch                                    2.1kB @  18.0 B/s  0.5s
gdal                                                 1.1MB @   9.4kB/s  2.1s
click                                               65.2kB @ 567.0 B/s  0.8s
libtiff                                            771.7kB @   6.7kB/s  2.2s
geopandas-base                                     941.2kB @   8.1kB/s  2.6s
libpq                                                2.9MB @  22.6kB/s 11.2s
mkl_random                                         230.3kB @   1.8kB/s  0.6s
matplotlib-base                                      5.9MB @  41.4kB/s 27.3s
numpy-base                                           5.1MB @  35.7kB/s 26.7s
click-plugins                                       10.3kB @  72.0 B/s  0.1s
pandas                                               9.1MB @  63.8kB/s 1m:37.3s
cfitsio                                            524.4kB @   3.6kB/s  1.5s
m2w64-gettext                                        4.4MB @  30.3kB/s 16.6s
mkl                                                120.4MB @ 464.2kB/s 4m:17.1s
Preparing transaction: done
Verifying transaction: done
Executing transaction: \

    Windows 64-bit packages of scikit-learn can be accelerated using scikit-learn-intelex.
    More details are available here: https://intel.github.io/scikit-learn-intelex

    For example:

        $ conda install scikit-learn-intelex
        $ python -m sklearnex my_application.py


done
(geospatial) PS C:\Users\DELL> mamba list
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\envs\geospatial\Scripts\mamba-script.py", line 6, in <module>
    from mamba.mamba import main
  File "C:\ProgramData\Anaconda3\envs\geospatial\lib\site-packages\mamba\mamba.py", line 49, in <module>
    import libmambapy as api
  File "C:\ProgramData\Anaconda3\envs\geospatial\lib\site-packages\libmambapy\__init__.py", line 7, in <module>
    raise e
  File "C:\ProgramData\Anaconda3\envs\geospatial\lib\site-packages\libmambapy\__init__.py", line 4, in <module>
    from libmambapy.bindings import *  # noqa: F401,F403
ImportError: DLL load failed while importing bindings: La procรฉdure spรฉcifiรฉe est introuvable.
(geospatial) PS C:\Users\DELL>

IndigoWizard avatar Jun 05 '22 16:06 IndigoWizard

Trying a fix

I tried updating mamba but the error persisted:

  • conda update mamba: some packages were downloaded and installed successfully :heavy_check_mark:
  • mamba still not working. same error. :x:

Fix attempt log:

Click to expand!
(geospatial) PS C:\Users\DELL> conda list
# packages in environment at C:\ProgramData\Anaconda3\envs\geospatial:
#
# Name                    Version                   Build  Channel
attrs                     21.4.0             pyhd3eb1b0_0
blas                      1.0                         mkl
bottleneck                1.3.4            py39h080aedc_0
brotli                    1.0.9                ha925a31_2
brotlipy                  0.7.0           py39hb82d6ee_1004    conda-forge
bzip2                     1.0.8                h8ffe710_4    conda-forge
ca-certificates           2022.5.18.1          h5b45459_0    conda-forge
certifi                   2022.5.18.1      py39hcbf5309_0    conda-forge
cffi                      1.15.0           py39h0878f49_0    conda-forge
cfitsio                   3.470                he774522_6
charset-normalizer        2.0.12             pyhd8ed1ab_0    conda-forge
click                     7.1.2              pyhd3eb1b0_0
click-plugins             1.1.1              pyhd3eb1b0_0
cligj                     0.7.2              pyhd3eb1b0_0
colorama                  0.4.4              pyh9f0ad1d_0    conda-forge
conda                     4.12.0           py39hcbf5309_0    conda-forge
conda-package-handling    1.8.1            py39hb3671d1_1    conda-forge
cryptography              37.0.2           py39h7bc7c5c_0    conda-forge
curl                      7.55.1               h3b839b5_4
cycler                    0.11.0             pyhd3eb1b0_0
expat                     2.4.4                h6c2663c_0
fiona                     1.8.13.post1     py39h758c064_0
fonttools                 4.25.0             pyhd3eb1b0_0
freetype                  2.10.4               hd328e21_0
freexl                    1.0.6                h2bbff1b_0
gdal                      3.0.2            py39hb978731_2
geopandas                 0.9.0                      py_1
geopandas-base            0.9.0                      py_1
geos                      3.8.0                h33f27b4_0
geotiff                   1.7.0                h4545760_0
hdf4                      4.2.13               h712560f_2
hdf5                      1.10.6               h7ebc959_0
icc_rt                    2019.0.0             h0cc432a_1
idna                      3.3                pyhd8ed1ab_0    conda-forge
intel-openmp              2021.4.0          haa95532_3556
joblib                    1.1.0              pyhd3eb1b0_0
jpeg                      9e                   h2bbff1b_0
kealib                    1.4.14               hde4a422_1
kiwisolver                1.4.2            py39hd77b12b_0
krb5                      1.19.3               h1176d77_0    conda-forge
libarchive                3.5.2                hb45042f_2    conda-forge
libcurl                   7.83.1               h789b8ee_0    conda-forge
libgdal                   3.0.2                h3d7c30d_2
libiconv                  1.16                 he774522_0    conda-forge
libmamba                  0.24.0               h81a967f_1    conda-forge
libmambapy                0.24.0           py39h4126fcf_1    conda-forge
libnetcdf                 4.8.1                h6685c40_1
libpng                    1.6.37               h2a8f88b_0
libpq                     12.9                 hb652d5d_1
libsolv                   0.7.22               h7755175_0    conda-forge
libspatialindex           1.9.3                h6c2663c_0
libspatialite             4.3.0a              h14feca5_20
libssh2                   1.10.0               h680486a_2    conda-forge
libtiff                   4.2.0                he0120a3_1
libwebp                   1.2.2                h2bbff1b_0
libxml2                   2.9.14               hf5bbc77_0    conda-forge
libzip                    1.8.0                h49b8836_0
libzlib                   1.2.12               h8ffe710_0    conda-forge
lz4-c                     1.9.3                h8ffe710_1    conda-forge
lzo                       2.10              he774522_1000    conda-forge
m2w64-expat               2.1.1                         2
m2w64-gcc-libgfortran     5.3.0                         6
m2w64-gcc-libs            5.3.0                         7
m2w64-gcc-libs-core       5.3.0                         7
m2w64-gettext             0.19.7                        2
m2w64-gmp                 6.1.0                         2
m2w64-libiconv            1.14                          6
m2w64-libwinpthread-git   5.0.0.4634.697f757               2
m2w64-xz                  5.2.2                         2
mamba                     0.24.0           py39hb3d9227_1    conda-forge
mapclassify               2.4.3              pyhd3eb1b0_0
matplotlib-base           3.5.1            py39hd77b12b_1
menuinst                  1.4.18           py39hcbf5309_1    conda-forge
mkl                       2021.4.0           haa95532_640
mkl-service               2.4.0            py39h2bbff1b_0
mkl_fft                   1.3.1            py39h277e83a_0
mkl_random                1.2.2            py39hf11a4ad_0
msys2-conda-epoch         20160418                      1
munch                     2.5.0              pyhd3eb1b0_0
munkres                   1.1.4                      py_0
networkx                  2.7.1              pyhd3eb1b0_0
numexpr                   2.8.1            py39hb80d3ca_0
numpy                     1.22.3           py39h7a0a035_0
numpy-base                1.22.3           py39hca35cd5_0
openjpeg                  2.4.0                h4fc8c34_0
openssl                   1.1.1o               h8ffe710_0    conda-forge
packaging                 21.3               pyhd3eb1b0_0
pandas                    1.4.2            py39hd77b12b_0
pillow                    9.0.1            py39hdc2b20a_0
pip                       21.2.4           py39haa95532_0
proj                      6.2.1                h3758d61_0
pybind11-abi              4                    hd8ed1ab_3    conda-forge
pycosat                   0.6.3           py39hb82d6ee_1010    conda-forge
pycparser                 2.21               pyhd8ed1ab_0    conda-forge
pyopenssl                 22.0.0             pyhd8ed1ab_0    conda-forge
pyparsing                 3.0.4              pyhd3eb1b0_0
pyproj                    2.6.1.post1      py39h593ac45_1
pysocks                   1.7.1            py39hcbf5309_5    conda-forge
python-dateutil           2.8.2              pyhd3eb1b0_0
python_abi                3.9                      2_cp39    conda-forge
pytz                      2021.3             pyhd3eb1b0_0
pywin32                   303              py39hb82d6ee_0    conda-forge
reproc                    14.2.3               h8ffe710_0    conda-forge
reproc-cpp                14.2.3               h0e60522_0    conda-forge
requests                  2.27.1             pyhd8ed1ab_0    conda-forge
rtree                     0.9.7            py39h2eaa2aa_1
ruamel_yaml               0.15.80         py39hb82d6ee_1007    conda-forge
scikit-learn              1.0.2            py39hf11a4ad_1
setuptools                61.2.0           py39haa95532_0
shapely                   1.7.1            py39h06580b3_0
six                       1.16.0             pyh6c4a22f_0    conda-forge
sqlite                    3.38.3               h2bbff1b_0
threadpoolctl             2.2.0              pyh0d69192_0
tiledb                    2.3.3                hc23ccdf_1
tk                        8.6.12               h2bbff1b_0
tqdm                      4.64.0             pyhd8ed1ab_0    conda-forge
tzdata                    2022a                hda174b7_0
urllib3                   1.26.9             pyhd8ed1ab_0    conda-forge
vc                        14.2                 h21ff451_1
vs2015_runtime            14.27.29016          h5e58377_2
wheel                     0.37.1             pyhd3eb1b0_0
win_inet_pton             1.1.0            py39hcbf5309_4    conda-forge
wincertstore              0.2              py39haa95532_2
xerces-c                  3.2.3                ha925a31_0
xz                        5.2.5                h62dcd97_1    conda-forge
yaml                      0.2.5                h8ffe710_2    conda-forge
yaml-cpp                  0.7.0                h0e60522_1    conda-forge
zlib                      1.2.12               h8ffe710_0    conda-forge
zstd                      1.5.2                h6255e5f_1    conda-forge
(geospatial) PS C:\Users\DELL> mamba
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\envs\geospatial\Scripts\mamba-script.py", line 6, in <module>
    from mamba.mamba import main
  File "C:\ProgramData\Anaconda3\envs\geospatial\lib\site-packages\mamba\mamba.py", line 49, in <module>
    import libmambapy as api
  File "C:\ProgramData\Anaconda3\envs\geospatial\lib\site-packages\libmambapy\__init__.py", line 7, in <module>
    raise e
  File "C:\ProgramData\Anaconda3\envs\geospatial\lib\site-packages\libmambapy\__init__.py", line 4, in <module>
    from libmambapy.bindings import *  # noqa: F401,F403
ImportError: DLL load failed while importing bindings: La procรฉdure spรฉcifiรฉe est introuvable.
(geospatial) PS C:\Users\DELL> conda update mamba
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: C:\ProgramData\Anaconda3\envs\geospatial

  added / updated specs:
    - mamba


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    libarchive-3.5.2           |       h214662b_0         781 KB
    reproc-14.2.4              |       hd77b12b_1          33 KB
    reproc-cpp-14.2.4          |       hd77b12b_1          27 KB
    yaml-cpp-0.7.0             |       hd77b12b_1         1.8 MB
    ------------------------------------------------------------
                                           Total:         2.6 MB

The following packages will be REMOVED:

  lzo-2.10-he774522_1000

The following packages will be UPDATED:

  cffi               conda-forge::cffi-1.15.0-py39h0878f49~ --> pkgs/main::cffi-1.15.0-py39h2bbff1b_1
  libiconv            conda-forge::libiconv-1.16-he774522_0 --> pkgs/main::libiconv-1.16-h2bbff1b_2
  reproc              conda-forge::reproc-14.2.3-h8ffe710_0 --> pkgs/main::reproc-14.2.4-hd77b12b_1
  reproc-cpp         conda-forge::reproc-cpp-14.2.3-h0e605~ --> pkgs/main::reproc-cpp-14.2.4-hd77b12b_1
  ruamel_yaml        conda-forge::ruamel_yaml-0.15.80-py39~ --> pkgs/main::ruamel_yaml-0.15.100-py39h2bbff1b_0
  six                  conda-forge::six-1.16.0-pyh6c4a22f_0 --> pkgs/main::six-1.16.0-pyhd3eb1b0_1

The following packages will be SUPERSEDED by a higher-priority channel:

  brotlipy           conda-forge::brotlipy-0.7.0-py39hb82d~ --> pkgs/main::brotlipy-0.7.0-py39h2bbff1b_1003
  bzip2                 conda-forge::bzip2-1.0.8-h8ffe710_4 --> pkgs/main::bzip2-1.0.8-he774522_0
  ca-certificates    conda-forge::ca-certificates-2022.5.1~ --> pkgs/main::ca-certificates-2022.4.26-haa95532_0
  certifi            conda-forge::certifi-2022.5.18.1-py39~ --> pkgs/main::certifi-2022.5.18.1-py39haa95532_0
  charset-normalizer conda-forge::charset-normalizer-2.0.1~ --> pkgs/main::charset-normalizer-2.0.4-pyhd3eb1b0_0
  cligj              pkgs/main/noarch::cligj-0.7.2-pyhd3eb~ --> pkgs/main/win-64::cligj-0.7.2-py39haa95532_0
  colorama           conda-forge::colorama-0.4.4-pyh9f0ad1~ --> pkgs/main::colorama-0.4.4-pyhd3eb1b0_0
  conda-package-han~ conda-forge::conda-package-handling-1~ --> pkgs/main::conda-package-handling-1.8.1-py39h8cc25b3_0
  cryptography       conda-forge::cryptography-37.0.2-py39~ --> pkgs/main::cryptography-37.0.1-py39h21b164f_0
  libarchive         conda-forge::libarchive-3.5.2-hb45042~ --> pkgs/main::libarchive-3.5.2-h214662b_0
  libssh2            conda-forge::libssh2-1.10.0-h680486a_2 --> pkgs/main::libssh2-1.10.0-hcd4344a_0
  libxml2            conda-forge::libxml2-2.9.14-hf5bbc77_0 --> pkgs/main::libxml2-2.9.14-h0ad7f3c_0
  lz4-c                 conda-forge::lz4-c-1.9.3-h8ffe710_1 --> pkgs/main::lz4-c-1.9.3-h2bbff1b_1
  menuinst           conda-forge::menuinst-1.4.18-py39hcbf~ --> pkgs/main::menuinst-1.4.18-py39h59b6b97_0
  openssl            conda-forge::openssl-1.1.1o-h8ffe710_0 --> pkgs/main::openssl-1.1.1o-h2bbff1b_0
  pycosat            conda-forge::pycosat-0.6.3-py39hb82d6~ --> pkgs/main::pycosat-0.6.3-py39h2bbff1b_0
  pycparser          conda-forge::pycparser-2.21-pyhd8ed1a~ --> pkgs/main::pycparser-2.21-pyhd3eb1b0_0
  pyopenssl          conda-forge::pyopenssl-22.0.0-pyhd8ed~ --> pkgs/main::pyopenssl-22.0.0-pyhd3eb1b0_0
  pysocks            conda-forge::pysocks-1.7.1-py39hcbf53~ --> pkgs/main::pysocks-1.7.1-py39haa95532_0
  requests           conda-forge::requests-2.27.1-pyhd8ed1~ --> pkgs/main::requests-2.27.1-pyhd3eb1b0_0
  tqdm               conda-forge/noarch::tqdm-4.64.0-pyhd8~ --> pkgs/main/win-64::tqdm-4.64.0-py39haa95532_0
  urllib3            conda-forge/noarch::urllib3-1.26.9-py~ --> pkgs/main/win-64::urllib3-1.26.9-py39haa95532_0
  win_inet_pton      conda-forge::win_inet_pton-1.1.0-py39~ --> pkgs/main::win_inet_pton-1.1.0-py39haa95532_0
  yaml                   conda-forge::yaml-0.2.5-h8ffe710_2 --> pkgs/main::yaml-0.2.5-he774522_0
  yaml-cpp           conda-forge::yaml-cpp-0.7.0-h0e60522_1 --> pkgs/main::yaml-cpp-0.7.0-hd77b12b_1
  zstd                   conda-forge::zstd-1.5.2-h6255e5f_1 --> pkgs/main::zstd-1.5.2-h19a0ad4_0


Proceed ([y]/n)? y


Downloading and Extracting Packages
reproc-cpp-14.2.4    | 27 KB     | ##################################################################################################### | 100%
yaml-cpp-0.7.0       | 1.8 MB    | ##################################################################################################### | 100%
libarchive-3.5.2     | 781 KB    | ##################################################################################################### | 100%
reproc-14.2.4        | 33 KB     | ##################################################################################################### | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
(geospatial) PS C:\Users\DELL> mamba list
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\envs\geospatial\Scripts\mamba-script.py", line 6, in <module>
    from mamba.mamba import main
  File "C:\ProgramData\Anaconda3\envs\geospatial\lib\site-packages\mamba\mamba.py", line 49, in <module>
    import libmambapy as api
  File "C:\ProgramData\Anaconda3\envs\geospatial\lib\site-packages\libmambapy\__init__.py", line 7, in <module>
    raise e
  File "C:\ProgramData\Anaconda3\envs\geospatial\lib\site-packages\libmambapy\__init__.py", line 4, in <module>
    from libmambapy.bindings import *  # noqa: F401,F403
ImportError: DLL load failed while importing bindings: La procรฉdure spรฉcifiรฉe est introuvable.
(geospatial) PS C:\Users\DELL>

IndigoWizard avatar Jun 05 '22 16:06 IndigoWizard

Fix (working) but half measure

I tried removing mamba package and reinstalling it:

  • conda remove mamba: successful :heavy_check_mark:
  • conda install -c conda-forge mamba: successful :heavy_check_mark:
  • mamba info: works successful :heavy_check_mark:

The half mesure:

An anterior version of mamba is installed (mamba 0.15.3) instead of the latest update (mamba 0.24.0) as when mamba was first installed before installing geopandas.

Re-installation log

Click to expand re-installation log

(geospatial) PS C:\Users\DELL> conda remove mamba
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: C:\ProgramData\Anaconda3\envs\geospatial

    - mamba


The following packages will be REMOVED:

  libarchive-3.5.2-h214662b_0
  libmamba-0.24.0-h81a967f_1
  libmambapy-0.24.0-py39h4126fcf_1
  libsolv-0.7.22-h7755175_0
  libzlib-1.2.12-h8ffe710_0
  mamba-0.24.0-py39hb3d9227_1
  pybind11-abi-4-hd8ed1ab_3
  reproc-14.2.4-hd77b12b_1
  reproc-cpp-14.2.4-hd77b12b_1
  yaml-cpp-0.7.0-hd77b12b_1

The following packages will be UPDATED:

  curl                                    7.55.1-h3b839b5_4 --> 7.82.0-h2bbff1b_0
  zlib                  conda-forge::zlib-1.2.12-h8ffe710_0 --> pkgs/main::zlib-1.2.12-h8cc25b3_2

The following packages will be SUPERSEDED by a higher-priority channel:

  krb5                  conda-forge::krb5-1.19.3-h1176d77_0 --> pkgs/main::krb5-1.19.2-h5b6d351_0
  libcurl            conda-forge::libcurl-7.83.1-h789b8ee_0 --> pkgs/main::libcurl-7.82.0-h86230a5_0


Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
(geospatial) PS C:\Users\DELL> conda install -c conda-forge mamba
Collecting package metadata (current_repodata.json): done
Solving environment: done
## Package Plan ##

  environment location: C:\ProgramData\Anaconda3\envs\geospatial

  added / updated specs:
    - mamba


The following NEW packages will be INSTALLED:

  libarchive         conda-forge/win-64::libarchive-3.5.2-hb45042f_1
  libsolv            pkgs/main/win-64::libsolv-0.7.20-h23ce68f_0
  lzo                conda-forge/win-64::lzo-2.10-he774522_1000
  mamba              conda-forge/win-64::mamba-0.15.3-py39h006a82b_0
  reproc             conda-forge/win-64::reproc-14.2.3-h8ffe710_0
  reproc-cpp         conda-forge/win-64::reproc-cpp-14.2.3-h0e60522_0

The following packages will be UPDATED:

  ca-certificates    pkgs/main::ca-certificates-2022.4.26-~ --> conda-forge::ca-certificates-2022.5.18.1-h5b45459_0

The following packages will be SUPERSEDED by a higher-priority channel:

  certifi            pkgs/main::certifi-2022.5.18.1-py39ha~ --> conda-forge::certifi-2022.5.18.1-py39hcbf5309_0
  openssl              pkgs/main::openssl-1.1.1o-h2bbff1b_0 --> conda-forge::openssl-1.1.1o-h8ffe710_0


Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
(geospatial) PS C:\Users\DELL> mamba
menuinst called from non-root env C:\ProgramData\Anaconda3\envs\geospatial
usage: mamba [-h] [-V] command ...
conda is a tool for managing and deploying applications, environments and packages.

Options:

positional arguments:
  command
    clean        Remove unused packages and caches.
    compare      Compare packages between conda environments.
    config       Modify configuration values in .condarc. This is modeled after the git config command. Writes to the user .condarc file
                 (C:\Users\DELL\.condarc) by default.
    create       Create a new conda environment from a list of specified packages.
    help         Displays a list of available conda commands and their help strings.
    info         Display information about current conda install.
    init         Initialize conda for shell interaction. [Experimental]
    install      Installs a list of packages into a specified conda environment.
    list         List linked packages in a conda environment.
    package      Low-level conda package utility. (EXPERIMENTAL)
    remove       Remove a list of packages from a specified conda environment.
    uninstall    Alias for conda remove.
    run          Run an executable in a conda environment.
    search       Search for packages and display associated information. The input is a MatchSpec, a query language for conda packages. See
                 examples below.
    update       Updates conda packages to the latest compatible version.
    upgrade      Alias for conda update.
    repoquery    Query repositories using mamba.

optional arguments:
  -h, --help     Show this help message and exit.
  -V, --version  Show the conda version number and exit.

conda commands available from other packages:
  env
(geospatial) PS C:\Users\DELL> mamba info
menuinst called from non-root env C:\ProgramData\Anaconda3\envs\geospatial

                  __    __    __    __
                 /  \  /  \  /  \  /  \
                /    \/    \/    \/    \
โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ/  /โ–ˆโ–ˆ/  /โ–ˆโ–ˆ/  /โ–ˆโ–ˆ/  /โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ
              /  / \   / \   / \   / \  \____
             /  /   \_/   \_/   \_/   \    o \__,
            / _/                       \_____/  `
            |/
        โ–ˆโ–ˆโ–ˆโ•—   โ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ•—   โ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—  โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—
        โ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—
        โ–ˆโ–ˆโ•”โ–ˆโ–ˆโ–ˆโ–ˆโ•”โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ–ˆโ–ˆโ–ˆโ–ˆโ•”โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘
        โ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•‘
        โ–ˆโ–ˆโ•‘ โ•šโ•โ• โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘ โ•šโ•โ• โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘
        โ•šโ•โ•     โ•šโ•โ•โ•šโ•โ•  โ•šโ•โ•โ•šโ•โ•     โ•šโ•โ•โ•šโ•โ•โ•โ•โ•โ• โ•šโ•โ•  โ•šโ•โ•

        mamba (0.15.3) supported by @QuantStack

        GitHub:  https://github.com/mamba-org/mamba
        Twitter: https://twitter.com/QuantStack

โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ


     active environment : base
    active env location : C:\ProgramData\Anaconda3\envs\geospatial
            shell level : 2
       user config file : C:\Users\DELL\.condarc
 populated config files : C:\Users\DELL\.condarc
          conda version : 4.12.0
    conda-build version : not installed
         python version : 3.9.12.final.0
       virtual packages : __win=0=0
                          __archspec=1=x86_64
       base environment : C:\ProgramData\Anaconda3\envs\geospatial  (writable)
      conda av data dir : C:\ProgramData\Anaconda3\envs\geospatial\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 : C:\ProgramData\Anaconda3\envs\geospatial\pkgs
                          C:\Users\DELL\.conda\pkgs
                          C:\Users\DELL\AppData\Local\conda\conda\pkgs
       envs directories : C:\ProgramData\Anaconda3\envs\geospatial\envs
                          C:\Users\DELL\.conda\envs
                          C:\Users\DELL\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/4.12.0 requests/2.24.0 CPython/3.9.12 Windows/10 Windows/10.0.19043
          administrator : True
             netrc file : None
           offline mode : False

(geospatial) PS C:\Users\DELL>

IndigoWizard avatar Jun 05 '22 17:06 IndigoWizard

Mamba update issue (?)

Trying to update mamba

I decide to try and update the mamba 0.15.3 to the latest version mamba 0.24.0 after it installed and worked:

  • conda update mamba: sucessful (updated and removed few packages) :white_check_mark:
  • testing mamba: still works but there was no actual update, still on previous version :o:

Update log

Click to expand update log
(geospatial) PS C:\Users\DELL> conda update mamba
Solving environment: done

## Package Plan ##

  environment location: C:\ProgramData\Anaconda3\envs\geospatial

  added / updated specs:
    - mamba


The following packages will be REMOVED:

  lzo-2.10-he774522_1000

The following packages will be UPDATED:

  reproc              conda-forge::reproc-14.2.3-h8ffe710_0 --> pkgs/main::reproc-14.2.4-hd77b12b_1
  reproc-cpp         conda-forge::reproc-cpp-14.2.3-h0e605~ --> pkgs/main::reproc-cpp-14.2.4-hd77b12b_1

The following packages will be SUPERSEDED by a higher-priority channel:

  ca-certificates    conda-forge::ca-certificates-2022.5.1~ --> pkgs/main::ca-certificates-2022.4.26-haa95532_0
  certifi            conda-forge::certifi-2022.5.18.1-py39~ --> pkgs/main::certifi-2022.5.18.1-py39haa95532_0
  libarchive         conda-forge::libarchive-3.5.2-hb45042~ --> pkgs/main::libarchive-3.5.2-h214662b_0
  openssl            conda-forge::openssl-1.1.1o-h8ffe710_0 --> pkgs/main::openssl-1.1.1o-h2bbff1b_0


Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: done
Executing transaction: done

(geospatial) PS C:\Users\DELL> mamba info
menuinst called from non-root env C:\ProgramData\Anaconda3\envs\geospatial

                  __    __    __    __
                 /  \  /  \  /  \  /  \
                /    \/    \/    \/    \
โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ/  /โ–ˆโ–ˆ/  /โ–ˆโ–ˆ/  /โ–ˆโ–ˆ/  /โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ
              /  / \   / \   / \   / \  \____
             /  /   \_/   \_/   \_/   \    o \__,
            / _/                       \_____/  `
            |/
        โ–ˆโ–ˆโ–ˆโ•—   โ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ•—   โ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—  โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—
        โ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—
        โ–ˆโ–ˆโ•”โ–ˆโ–ˆโ–ˆโ–ˆโ•”โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ–ˆโ–ˆโ–ˆโ–ˆโ•”โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘
        โ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•‘
        โ–ˆโ–ˆโ•‘ โ•šโ•โ• โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘ โ•šโ•โ• โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘
        โ•šโ•โ•     โ•šโ•โ•โ•šโ•โ•  โ•šโ•โ•โ•šโ•โ•     โ•šโ•โ•โ•šโ•โ•โ•โ•โ•โ• โ•šโ•โ•  โ•šโ•โ•

        mamba (0.15.3) supported by @QuantStack

        GitHub:  https://github.com/mamba-org/mamba
        Twitter: https://twitter.com/QuantStack

โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ


     active environment : base
    active env location : C:\ProgramData\Anaconda3\envs\geospatial
            shell level : 2
       user config file : C:\Users\DELL\.condarc
 populated config files : C:\Users\DELL\.condarc
          conda version : 4.12.0
    conda-build version : not installed
         python version : 3.9.12.final.0
       virtual packages : __win=0=0
                          __archspec=1=x86_64
       base environment : C:\ProgramData\Anaconda3\envs\geospatial  (writable)
      conda av data dir : C:\ProgramData\Anaconda3\envs\geospatial\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 : C:\ProgramData\Anaconda3\envs\geospatial\pkgs
                          C:\Users\DELL\.conda\pkgs
                          C:\Users\DELL\AppData\Local\conda\conda\pkgs
       envs directories : C:\ProgramData\Anaconda3\envs\geospatial\envs
                          C:\Users\DELL\.conda\envs
                          C:\Users\DELL\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/4.12.0 requests/2.24.0 CPython/3.9.12 Windows/10 Windows/10.0.19043
          administrator : True
             netrc file : None
           offline mode : False

(geospatial) PS C:\Users\DELL>

IndigoWizard avatar Jun 05 '22 17:06 IndigoWizard

I faced the same issue when I tried to build a conda package using "boa" The command was: conda mambabuild ./conda.recipe/ --output-folder /tmp/__localbuild__/conda/ --no-test -q The error:

Traceback (most recent call last):
  File "/tmp/conda_envs/py37-conda-build/bin/conda-mambabuild", line 6, in <module>
    from boa.cli.mambabuild import main
  File "/tmp/conda_envs/py37-conda-build/lib/python3.7/site-packages/boa/cli/mambabuild.py", line 21, in <module>
    from boa.core.solver import MambaSolver
  File "/tmp/conda_envs/py37-conda-build/lib/python3.7/site-packages/boa/core/solver.py", line 21, in <module>
    import libmambapy
  File "/tmp/conda_envs/py37-conda-build/lib/python3.7/site-packages/libmambapy/__init__.py", line 7, in <module>
    raise e
  File "/tmp/conda_envs/py37-conda-build/lib/python3.7/site-packages/libmambapy/__init__.py", line 4, in <module>
    from libmambapy.bindings import *  # noqa: F401,F403
ImportError: libarchive.so.13: cannot open shared object file: No such file or directory

I compare a healthy environment with the unhealthy environment and there are 3 diffs: healthy vs unhealthy libarchive 3.5.2 hb890918_2 vs libarchive 3.5.2 h5de8990_0 lzo 2.10 vs None tk 8.6.11 h1ccaba5_1 vs tk 8.6.12 h1ccaba5_0

I suspect that somehow the libarchive was corrupted by someone... As a workaround, the following command solved the issue: mamba install libarchive=3.5.2=hb890918_2 -y

motybz avatar Jun 06 '22 08:06 motybz

I also experienced the same ImportError: libarchive.so.13: cannot open shared object file: No such file or directory problem.

libarchive from defaults channel seems broken but the one from conda-forge is working.

So this install line resulted in a broken mamba for me: conda install mamba -n base -c defaults -c conda-forge.

But this install line worked (switched channels priority order): conda install mamba -n base -c conda-forge -c defaults.

The side-effect is the entire base env is now updated to conda-forge version. Hope there is no negative effect.

tlvu avatar Jun 17 '22 16:06 tlvu

I am currently seeing this issue with both the conda-forge and defaults channel. Running mamba install libarchive=3.5.2=hb890918_2 -y also results in the same error for me. Anyone got any suggestions?

hallsop avatar Jul 29 '22 14:07 hallsop

Had the same problem, which I think came from an inconsistent version of libmambapy. Remove it, if you do not explicitly need it. Worked fine for me.

volkerrath avatar Oct 09 '22 08:10 volkerrath

To be more exact: I had an older version (0.24) in the current environment (relict from some test some time ago), while the base env was already at 0.27.

volkerrath avatar Oct 09 '22 08:10 volkerrath

ImportError: DLL load failed while importing mamba_api: The specified module could not be found.
tried uninstalling and installing

user-2608 avatar Dec 08 '22 06:12 user-2608

I met the same error:

> mamba
Traceback (most recent call last):
  File "D:\miniforge3\Scripts\mamba-script.py", line 6, in <module>
    from mamba.mamba import main
  File "D:\miniforge3\lib\site-packages\mamba\mamba.py", line 49, in <module>
    import libmambapy as api
  File "D:\miniforge3\lib\site-packages\libmambapy\__init__.py", line 7, in <module>
    raise e
  File "D:\miniforge3\lib\site-packages\libmambapy\__init__.py", line 4, in <module>
    from libmambapy.bindings import *  # noqa: F401,F403
ImportError: DLL load failed while importing bindings: ๆ‰พไธๅˆฐๆŒ‡ๅฎš็š„ๆจกๅ—ใ€‚

> conda list mamba
# packages in environment at D:\miniforge3:
#
# Name                    Version                   Build  Channel
libmamba                  1.1.0                ha1e45d8_2    conda-forge
libmambapy                1.1.0           py310h954024b_2    conda-forge
mamba                     1.1.0           py310h9376f3e_2    conda-forge

I use Dependencies to look at D:\miniforge3\Lib\site-packages\libmambapy\bindings.cp310-win_amd64.pyd and there is a missing DLL ext-ms-win-oobe-query-l1-1-0.dll

ๅ›พ็‰‡

metab0t avatar Dec 19 '22 03:12 metab0t

I[m having the libarchive error as well

scottwsides avatar Dec 20 '22 15:12 scottwsides

While not a solution to this problem, maybe a cure: Try using micromamba.

jonashaag avatar Dec 20 '22 17:12 jonashaag

I'm also having this error

rbavery avatar Feb 03 '23 04:02 rbavery

Hi everyone, please stop adding new comments that donโ€™t provide any new insights other than youโ€™re also affected. Comments will notify everyone in this thread. Please use emoji reactions instead.

jonashaag avatar Feb 03 '23 06:02 jonashaag

I just installed mambaforge (comes with mamba 1.1.0) on a Windows 10 machine. Everything was going fine installing the packages I need until I used mamba to install the vtk library. Then I got this exact error. With mamba broken and no conda to back it up, I had to uninstall.

I don't know what about vtk or its dependencies could have broken mamba, but hopefully this will provide a clue of some sort?

On my second try with mambaforge, the first thing I did right after installing the Windows executable was to update mamba to 1.3.1. The second thing I did was try to install vtk (mamba install vtk). That breaks it.

mountaindust avatar Feb 25 '23 17:02 mountaindust

Please open a new issue with exact steps how to reproduce, thanks!

jonashaag avatar Feb 25 '23 18:02 jonashaag

I recognized that I can repare a broken env by any existing env

conda activte ENV_IN_GOOD_STATE

c:/Users/r.bauer/Miniconda3/envs/mssenv/Scripts/conda.exe install -p C:\Users\r.bauer\Miniconda3\envs\ENV_TO_REPAIR python conda==22.9.0

ReimarBauer avatar Mar 04 '23 20:03 ReimarBauer

Note that Conda should not be installed to environments other than base though. See https://mamba.readthedocs.io/en/latest/user_guide/troubleshooting.html#mamba-should-be-installed-to-the-base-environment

jonashaag avatar Mar 05 '23 06:03 jonashaag

I had the same issue with a self-hosted CI using setup-miniconda with mamba. The github runner is running in a container defined by this dockerfile: https://github.com/osl-incubator/github-actions-self-hosted-runner/blob/main/Dockerfile

for the record, it is the setup-miniconda configuration I am using:

      - uses: conda-incubator/setup-miniconda@v2
        with:
          miniconda-version: "latest"
          mamba-version: "1.*"
          environment-file: conda/release.yaml
          channels: nodefaults,conda-forge
          channel-priority: true
          activate-environment: release
          miniforge-variant: Mambaforge

and this is the log from the CI runner: https://pastebin.com/9kzyBsC8

maybe the problem is in the setup-miniconda side .. not sure .. but I am sharing it here in the case the logs could help in the discussion.

xmnlab avatar Jul 18 '23 17:07 xmnlab

Consider switching to https://github.com/mamba-org/setup-micromamba

jonashaag avatar Jul 18 '23 17:07 jonashaag

thanks @jonashaag ! I will give a shot :) appreciate your recommendation!

xmnlab avatar Jul 18 '23 17:07 xmnlab

Installing mamba 1.4.6, 1.4.7 or 1.4.9 directly triggered the same libarchive.so.13 error for me. However, somehow for me it seems to be working after installing mamba 1.4.5, and then updating to 1.4.9.

conda install 'mamba<=1.4.5' -n base -c conda-forge
conda update mamba -n base -c conda-forge

# At first: conda-forge/linux-64::mamba-1.4.5-py311h3072747_0
# Then: 1.4.5-py311h3072747_0 --> 1.4.9-py311h3072747_0

indrek-sunter avatar Jul 24 '23 10:07 indrek-sunter

When you have a recent conda by anaconda, then you have the libmamba solver builtin. https://www.anaconda.com/blog/a-faster-conda-for-a-growing-community

If you don't use anaconda's default channel but have conda-forge your first or only channel have a look on mambaforge.

ReimarBauer avatar Jul 24 '23 13:07 ReimarBauer