Install with miniconda and python 3.12

109 views
Skip to first unread message

Eric P. Salathe

unread,
Jul 16, 2024, 2:48:13 PM7/16/24
to wrfpython-talk
Hi--         I'm installing wrf-python on linux with miniconda and python v3.12 getting the error message below. Is wrf-python compatible with 3.12 or is there some other issue? Thanks.

Eric Salathé Univ WA

> conda install -c conda-forge wrf-python
Error while loading conda entry point: conda-libmamba-solver (libarchive.so.19: cannot open shared object file: No such file or directory)
Collecting package metadata (current_repodata.json): done
Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve.
Solving environment: unsuccessful attempt using repodata from current_repodata.json, retrying with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve.
Solving environment: \
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed                                                                                                                                           
UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

  - wrf-python -> python[version='2.7.*|3.5.*|3.6.*|>=2.7,<2.8.0a0|>=3.10,<3.11.0a0|>=3.11,<3.12.0a0|>=3.8,<3.9.0a0|>=3.9,<3.10.0a0|>=3.7,<3.8.0a0|>=3.6,<3.7.0a0|>=3.5,<3.6.0a0']

Your python: python=3.12

If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.

The following specifications were found to be incompatible with your system:

  - feature:/linux-64::__glibc==2.28=0
  - feature:|@/linux-64::__glibc==2.28=0
  - wrf-python -> libgfortran-ng -> __glibc[version='>=2.17']

Your installed version is: 2.28

Eric P. Salathe

unread,
Jul 16, 2024, 6:58:04 PM7/16/24
to wrfpython-talk, Eric P. Salathe
OK, so it appears that wrf-python is incompatible with python 3.12 due to dependence on numpy.distutils, which has been removed from 3.12.

This works, but requires managing a second conda environment:
  conda create --name wrfpy -c conda-forge python=3.11
  conda activate wrfpy

  conda install -c conda-forge wrf-python

-Eric 

Reply all
Reply to author
Forward
0 new messages