RuntimeError: bad variant access (Failed to explain problems), on trying gdal in a python 3.15 env.
Author: cateeeCreated Sep 30, 2026Updated Sep 30, 2026
Labelstype::bugsource::community
Checklist
- I added a descriptive title
- I searched open reports and couldn't find a duplicate
What happened?
For test purpose, I created a new environment with python 3.15 (still a release candidate, but we are few days from release). I'm using conda-forge (but I'm not complaining that I cannot install gdal: usually it takes some time after a release, this is just about the error).
So, I got such error (and it is very slow, also after each RuntimeError.
conda install gdal
Wed, 30 Sept 2026 09:19:29
Channels:
- conda-forge
- defaults
Platform: win-64
Collecting package metadata (repodata.json): done
Solving environment: - WARNING conda.conda_libmamba_solver.solver:_prepare_problems_message(854): Failed to explain problems
Traceback (most recent call last):
File "C:\Users\catenazzi\Miniconda3\Lib\site-packages\conda_libmamba_solver\solver.py", line 851, in _prepare_problems_message
explained_errors = unsolvable.explain_problems(db, problems_format_auto)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: bad variant access
\ WARNING conda.conda_libmamba_solver.solver:_prepare_problems_message(854): Failed to explain problems
Traceback (most recent call last):
File "C:\Users\catenazzi\Miniconda3\Lib\site-packages\conda_libmamba_solver\solver.py", line 851, in _prepare_problems_message
explained_errors = unsolvable.explain_problems(db, problems_format_auto)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: bad variant access
| WARNING conda.conda_libmamba_solver.solver:_prepare_problems_message(854): Failed to explain problems
Traceback (most recent call last):
File "C:\Users\catenazzi\Miniconda3\Lib\site-packages\conda_libmamba_solver\solver.py", line 851, in _prepare_problems_message
explained_errors = unsolvable.explain_problems(db, problems_format_auto)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: bad variant access
/ WARNING conda.conda_libmamba_solver.solver:_prepare_problems_message(854): Failed to explain problems
Traceback (most recent call last):
File "C:\Users\catenazzi\Miniconda3\Lib\site-packages\conda_libmamba_solver\solver.py", line 851, in _prepare_problems_message
explained_errors = unsolvable.explain_problems(db, problems_format_auto)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: bad variant access
- WARNING conda.conda_libmamba_solver.solver:_prepare_problems_message(854): Failed to explain problems
Traceback (most recent call last):
File "C:\Users\catenazzi\Miniconda3\Lib\site-packages\conda_libmamba_solver\solver.py", line 851, in _prepare_problems_message
explained_errors = unsolvable.explain_problems(db, problems_format_auto)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: bad variant access
\ WARNING conda.conda_libmamba_solver.solver:_prepare_problems_message(854): Failed to explain problems
Traceback (most recent call last):
File "C:\Users\catenazzi\Miniconda3\Lib\site-packages\conda_libmamba_solver\solver.py", line 851, in _prepare_problems_message
explained_errors = unsolvable.explain_problems(db, problems_format_auto)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: bad variant access
| WARNING conda.conda_libmamba_solver.solver:_prepare_problems_message(854): Failed to explain problems
Traceback (most recent call last):
File "C:\Users\catenazzi\Miniconda3\Lib\site-packages\conda_libmamba_solver\solver.py", line 851, in _prepare_problems_message
explained_errors = unsolvable.explain_problems(db, problems_format_auto)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: bad variant access
/ WARNING conda.conda_libmamba_solver.solver:_prepare_problems_message(854): Failed to explain problems
Traceback (most recent call last):
File "C:\Users\catenazzi\Miniconda3\Lib\site-packages\conda_libmamba_solver\solver.py", line 851, in _prepare_problems_message
explained_errors = unsolvable.explain_problems(db, problems_format_auto)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: bad variant access
- WARNING conda.conda_libmamba_solver.solver:_prepare_problems_message(854): Failed to explain problems
Traceback (most recent call last):
File "C:\Users\catenazzi\Miniconda3\Lib\site-packages\conda_libmamba_solver\solver.py", line 851, in _prepare_problems_message
explained_errors = unsolvable.explain_problems(db, problems_format_auto)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: bad variant access
failed
LibMambaUnsatisfiableError: Encountered problems while solving:
- nothing provides numpy 1.10* needed by matplotlib-1.5.3-np110py34_1
Could not solve for environment specs
The following packages are incompatible
├─ gdal =* * is installable with the potential options
│ ├─ gdal [3.12.4|3.13.0|3.13.1|3.13.2|3.13.3] would require
│ │ └─ python_abi =3.10 *_cp310 with the potential options
│ │ ├─ python_abi 3.10 would require
│ │ │ └─ python =3.10 *, which can be installed;
│ │ ├─ python_abi 3.10 would require
│ │ │ └─ python =3.10 *_cpython, which can be installed;
│ │ └─ python_abi 3.10 would require
│ │ └─ python =3.10 *, which can be installed;
│ ├─ gdal [2.2.2|2.3.2|...|3.3.2] would require
│ │ └─ python >=3.6,<3.7.0a0 *, which can be installed;
│ ├─ gdal [2.3.2|2.3.3|...|3.6.0] would require
│ │ └─ python >=3.7,<3.8.0a0 *, which can be installed;
│ ├─ gdal [2.3.3|2.4.3|...|3.9.2] would require
│ │ └─ python >=3.8,<3.9.0a0 *, which can be installed;
│ ├─ gdal [3.0.2|3.1.3|...|3.9.3] would require
│ │ └─ python >=3.9,<3.10.0a0 *, which can be installed;
│ ├─ gdal [3.0.2|3.10.0|...|3.9.3] would require
│ │ └─ python >=3.10,<3.11.0a0 *, which can be installed;
│ ├─ gdal [3.10.0|3.10.1|...|3.9.3] would require
│ │ └─ python >=3.11,<3.12.0a0 *, which can be installed;
│ ├─ gdal [3.10.0|3.10.1|...|3.9.3] would require
│ │ └─ python >=3.12,<3.13.0a0 *, which can be installed;
│ ├─ gdal [3.10.0|3.10.1|...|3.9.3] would require
│ │ └─ python [>=3.13,<3.14.0a0 *|>=3.13.0rc1,<3.14.0a0 *|>=3.13.0rc2,<3.14.0a0 *|>=3.13.0rc3,<3.14.0a0 *], which can be installed;
│ ├─ gdal [3.10.3|3.11.3|3.11.4] would require
│ │ └─ python >=3.14.0rc2,<3.15.0a0 *, which can be installed;
│ ├─ gdal [3.10.3|3.11.4] would require
│ │ └─ python >=3.14.0rc3,<3.15.0a0 *, which can be installed;
│ ├─ gdal [3.10.3|3.11.4|...|3.13.3] would require
│ │ └─ python >=3.14,<3.15.0a0 *, which can be installed;
│ ├─ gdal [3.12.4|3.13.0|3.13.1|3.13.2|3.13.3] would require
│ │ └─ python_abi =3.11 *_cp311 with the potential options
│ │ ├─ python_abi 3.11 would require
│ │ │ └─ python =3.11 *, which can be installed;
│ │ ├─ python_abi 3.11 would require
│ │ │ └─ python =3.11 *_cpython, which can be installed;
│ │ └─ python_abi 3.11 would require
│ │ └─ python =3.11 *, which can be installed;
│ ├─ gdal [3.12.4|3.13.0|3.13.1|3.13.2|3.13.3] would require
│ │ └─ python_abi =3.12 *_cp312 with the potential options
│ │ ├─ python_abi 3.12 would require
│ │ │ └─ python =3.12 *_cpython, which can be installed;
│ │ └─ python_abi 3.12 would require
│ │ └─ python =3.12 *, which can be installed;
│ ├─ gdal [3.12.4|3.13.0|3.13.1|3.13.2|3.13.3] would require
│ │ └─ python_abi =3.13 *_cp313 with the potential options
│ │ ├─ python_abi 3.13 would require
│ │ │ └─ python =3.13 *_cpython, which can be installed;
│ │ └─ python_abi 3.13 would require
│ │ └─ python =3.13 *_cp313, which can be installed;
│ ├─ gdal [3.12.4|3.13.0|3.13.1|3.13.2|3.13.3] would require
│ │ └─ python_abi =3.14 *_cp314, which requires
│ │ └─ python =3.14 *_cp314, which can be installed;
│ ├─ gdal [3.12.4|3.13.0|3.13.1|3.13.2|3.13.3] would require
│ │ └─ python_abi =3.14 *_cp314t, which requires
│ │ └─ python =3.14 *_cp314t, which can be installed;
│ ├─ gdal 2.2.2 would require
│ │ └─ python >=2.7,<2.8.0a0 *, which can be installed;
│ └─ gdal 2.2.2 would require
│ └─ python >=3.5,<3.6.0a0 *, which can be installed;
├─ matplotlib =* * is installable with the potential options
│ ├─ matplotlib 3.11.2 would require
│ │ ├─ matplotlib-base >=3.11.2,<3.11.3.0a0 * with the potential options
│ │ │ ├─ matplotlib-base 3.11.2 would require
│ │ │ │ ├─ python >=3.15.0rc2,<3.16.0a0 *, which conflicts with any installable versions previously reported;
│ │ │ │ └─ python_abi =3.15 *_cp315 with the potential options
│ │ │ │ ├─ python_abi 3.15 would require
│ │ │ │ │ └─ python =3.15 *_cp315, which can be installed;
│ │ │ │ └─ python_abi 3.15 conflicts with any installable versions previously reported;
│ │ │ ├─ matplotlib-base 3.11.2 would require
│ │ │ │ └─ python >=3.11,<3.12.0a0 *, which can be installed;
│ │ │ ├─ matplotlib-base 3.11.2 would require
│ │ │ │ └─ python >=3.12,<3.13.0a0 *, which can be installed;
│ │ │ ├─ matplotlib-base 3.11.2 would require
│ │ │ │ └─ python >=3.13,<3.14.0a0 *, which can be installed;
│ │ │ └─ matplotlib-base 3.11.2 would require
│ │ │ └─ python >=3.14,<3.15.0a0 *, which can be installed;
│ │ ├─ python >=3.15.0rc2,<3.16.0a0 *, which conflicts with any installable versions previously reported;
│ │ └─ python_abi =3.15 *_cp315 with the potential options
│ │ ├─ python_abi 3.15, which can be installed (as previously explained);
│ │ └─ python_abi 3.15 conflicts with any installable versions previously reported;
│ ├─ matplotlib 1.5.3 would require
│ │ └─ numpy =1.10 *, which does not exist (perhaps a missing channel);
│ ├─ matplotlib 1.5.3 would require
│ │ └─ pyqt =4.11 *, which requires
│ │ └─ qt =4.8 *, which does not exist (perhaps a missing channel);
│ ├─ matplotlib [2.0.2|2.1.0|...|2.2.4] would require
│ │ └─ python >=2.7,<2.8.0a0 *, which can be installed;
│ ├─ matplotlib [2.0.2|2.1.0|...|3.3.4] would require
│ │ └─ python >=3.6,<3.7.0a0 *, which can be installed;
│ ├─ matplotlib [2.1.2|2.2.2|...|3.5.3] would require
│ │ └─ python >=3.7,<3.8.0a0 *, which can be installed;
│ ├─ matplotlib [2.2.4|3.1.1|...|3.7.3] would require
│ │ └─ python >=3.8,<3.9.0a0 *, which can be installed;
│ ├─ matplotlib 2.2.5 would require
│ │ └─ matplotlib-base >=2.2.5,<2.2.6.0a0 * with the potential options
│ │ ├─ matplotlib-base 2.2.5 would require
│ │ │ └─ python >=2.7,<2.8.0a0 *, which can be installed;
│ │ ├─ matplotlib-base [2.2.5|3.2.0|...|3.3.2] would require
│ │ │ └─ python >=3.6,<3.7.0a0 *, which can be installed;
│ │ ├─ matplotlib-base [2.2.5|3.2.0|...|3.3.2] would require
│ │ │ └─ python >=3.7,<3.8.0a0 *, which can be installed;
│ │ ├─ matplotlib-base [2.2.5|3.2.0|...|3.3.2] would require
│ │ │ └─ python >=3.8,<3.9.0a0 *, which can be installed;
│ │ └─ matplotlib-base [2.2.5|3.3.2] would require
│ │ └─ python >=3.9,<3.10.0a0 *, which can be installed;
│ ├─ matplotlib [3.2.0|3.2.1|3.2.2|3.3.0|3.3.1] would require
│ │ └─ matplotlib-base [>=3.2.0,<3.2.1.0a0 *|>=3.2.1,<3.2.2.0a0 *|>=3.2.2,<3.2.3.0a0 *|>=3.3.0,<3.3.1.0a0 *|>=3.3.1,<3.3.2.0a0 *], which can be installed (as previously explained);
│ ├─ matplotlib 3.3.2 would require
│ │ └─ matplotlib-base >=3.3.2,<3.3.3.0a0 *, which can be installed (as previously explained);
│ ├─ matplotlib [3.3.2|3.3.3|...|3.9.4] would require
│ │ └─ python >=3.9,<3.10.0a0 *, which can be installed;
│ ├─ matplotlib [3.10.0|3.10.1|...|3.9.4] would require
│ │ └─ python >=3.10,<3.11.0a0 *, which can be installed;
│ ├─ matplotlib [3.10.0|3.10.1|...|3.9.4] would require
│ │ └─ python >=3.11,<3.12.0a0 *, which can be installed;
│ ├─ matplotlib [3.10.0|3.10.1|...|3.9.4] would require
│ │ └─ python >=3.12,<3.13.0a0 *, which can be installed;
│ ├─ matplotlib [3.10.0|3.10.1|...|3.9.4] would require
│ │ └─ python [>=3.13,<3.14.0a0 *|>=3.13.0rc2,<3.14.0a0 *], which can be installed;
│ ├─ matplotlib 3.10.6 would require
│ │ └─ python >=3.14.0rc2,<3.15.0a0 *, which can be installed;
│ ├─ matplotlib [3.10.6|3.10.7|...|3.11.2] would require
│ │ └─ python >=3.14,<3.15.0a0 *, which can be installed;
│ └─ matplotlib [2.0.2|2.1.0|...|3.0.0] would require
│ └─ python >=3.5,<3.6.0a0 *, which can be installed;
└─ pin on python =3.15 * is not installable because it requires
└─ python =3.15 *, which conflicts with any installable versions previously reported.
Pins seem to be involved in the conflict. Currently pinned specs:
- python=3.15BTW: I have already installed matplotlib (andif I try to install it again, it just say it is already installed, so the line matplotlib =* * is installable with the potential options is confusing
And also probably by default conda should not write all options (e.g. very obsolete versions): sometimes it makes difficult to find real error and so the manual solution.
Conda Info
active environment : py315
active env location : C:\Users\catenazzi\Miniconda3\envs\py315
shell level : 1
user config file : C:\Users\catenazzi\.condarc
populated config files : C:\Users\catenazzi\.condarc
conda version : 26.7.3
conda-build version : not installed
python version : 3.12.4.final.0
solver : libmamba (default)
virtual packages : __archspec=1=skylake
__conda=26.7.3=0
__win=10.0.26200=0
base environment : C:\Users\catenazzi\Miniconda3 (writable)
conda av data dir : C:\Users\catenazzi\Miniconda3\etc\conda
conda av metadata url : None
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\catenazzi\Miniconda3\pkgs
C:\Users\catenazzi\.conda\pkgs
C:\Users\catenazzi\AppData\Local\conda\conda\pkgs
notices cache : C:\Users\catenazzi\AppData\Local\conda\conda\Cache\notices
envs directories : C:\Users\catenazzi\Miniconda3\envs
C:\Users\catenazzi\.conda\envs
C:\Users\catenazzi\AppData\Local\conda\conda\envs
temporary directory : D:\apps\msys64\tmp
platform : win-64
user-agent : conda/26.7.3 requests/2.34.2 CPython/3.12.4 Windows/11 Windows/10.0.26200 solver/libmamba conda-libmamba-solver/26.7.0 libmambapy/2.9.0
administrator : False
netrc file : None
offline mode : FalseConda Config
==> C:\Users\catenazzi\.condarc <==
auto_activate: False
env_prompt: ({name})
channels:
- conda-forge
- defaultsConda list
# packages in environment at C:\Users\catenazzi\Miniconda3\envs\py315:
#
# Name Version Build Channel
_python_rc 1 ha5edcf3_0 conda-forge/label/python_rc
brotli 1.2.0 hc8c2fe1_4 conda-forge
brotli-bin 1.2.0 hd477307_4 conda-forge
bzip2 1.0.8 h0ad9c76_10 conda-forge
ca-certificates 2026.7.22 h4c7d964_0 conda-forge
cairo 1.18.6 h477c42c_0 conda-forge
contourpy 1.4.0 py315h7bfb399_1 conda-forge
cycler 0.12.1 pyhcf101f3_2 conda-forge
double-conversion 3.4.0 hac47afa_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 h77eed37_3 conda-forge
fontconfig 2.18.3 hd47e2ca_1 conda-forge
fonts-conda-ecosystem 1 0 conda-forge
fonts-conda-forge 1 hc364b38_1 conda-forge
fonttools 4.66.1 pyh62df98a_0 conda-forge
freetype 2.14.3 h57928b3_2 conda-forge
fribidi 1.0.17 hfd05255_0 conda-forge
geos 3.14.1 h62f7316_0 conda-forge
graphite2 1.3.15 h5112557_1 conda-forge
icu 78.3 h5112557_2 conda-forge
kiwisolver 1.5.1 py315h7bfb399_3 conda-forge
krb5 1.22.2 h719d79b_2 conda-forge
lcms2 2.19.1 hf2c6c5f_3 conda-forge
lerc 4.2.0 hd936e49_0 conda-forge
libblas 3.11.0 11_h8455456_mkl conda-forge
libbrotlicommon 1.2.0 hf02afa3_4 conda-forge
libbrotlidec 1.2.0 h84f9c24_4 conda-forge
libbrotlienc 1.2.0 he2a975b_4 conda-forge
libcblas 3.11.0 11_h2a3cdd5_mkl conda-forge
libclang13 23.1.2 default_hacd6ee9_0 conda-forge
libdeflate 1.25 h1a1d4e4_1 conda-forge
libexpat 2.8.5 hac47afa_0 conda-forge
libffi 3.7.0 h3d046cb_1 conda-forge
libfreetype 2.14.3 h57928b3_2 conda-forge
libfreetype6 2.14.3 hdbac1cb_2 conda-forge
libglib 2.90.0 ha564072_0 conda-forge
libharfbuzz 14.5.0 h03b5201_0 conda-forge
libhwloc 2.15.0 default_hae90fe0_1001 conda-forge
libiconv 1.18 hc1393d2_3 conda-forge
libintl 0.22.5 h5728263_4 conda-forge
libjpeg-turbo 3.2.0 hfd05255_1 conda-forge
liblapack 3.11.0 11_hf9ab0e9_mkl conda-forge
liblzma 5.8.3 hfd05255_1 conda-forge
libmpdec 4.0.0 hfd05255_2 conda-forge
libpng 1.6.58 hdc8cecf_1 conda-forge
libraqm 0.11.0 h50d6d30_0 conda-forge
libsqlite 3.53.4 hf5d6505_1 conda-forge
libtiff 4.7.2 h8f73337_1 conda-forge
libvulkan-loader 1.4.357.0 h477610d_2 conda-forge
libwebp-baseSource: conda/conda