Looks like a package broke the solver

I installed cartopy (a Python package used for creating projections of data onto Earth), and now all of my programs break at the last step when running problem.solve() with the error

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[14], line 2
      1 # run solver
----> 2 uh = problem.solve()

File ~/anaconda3/envs/fea/lib/python3.13/site-packages/dolfinx/fem/petsc.py:841, in LinearProblem.solve(self)
    839 # Assemble lhs
    840 self._A.zeroEntries()
--> 841 assemble_matrix_mat(self._A, self._a, bcs=self.bcs)
    842 self._A.assemble()
    844 # Assemble rhs

File ~/anaconda3/envs/fea/lib/python3.13/site-packages/dolfinx/fem/petsc.py:466, in assemble_matrix_mat(A, a, bcs, diagonal, constants, coeffs)
    464 coeffs = _pack_coefficients(a._cpp_object) if coeffs is None else coeffs
    465 _bcs = [bc._cpp_object for bc in bcs]
--> 466 _cpp.fem.petsc.assemble_matrix(A, a._cpp_object, constants, coeffs, _bcs)
    467 if a.function_spaces[0] is a.function_spaces[1]:
    468     A.assemblyBegin(PETSc.Mat.AssemblyType.FLUSH)

TypeError: assemble_matrix(): incompatible function arguments. The following argument types are supported:
    1. assemble_matrix(A: mat, a: dolfinx.cpp.fem.Form_float64, constants: ndarray[dtype=float64, shape=(*), order='C', writable=False], coeffs: collections.abc.Mapping[tuple[dolfinx.cpp.fem.IntegralType, int], ndarray[dtype=float64, shape=(*, *), order='C', writable=False]], bcs: collections.abc.Sequence[dolfinx.cpp.fem.DirichletBC_float64], unrolled: bool = False) -> None
    2. assemble_matrix(A: mat, a: dolfinx.cpp.fem.Form_float64, constants: ndarray[dtype=float64, shape=(*), order='C', writable=False], coeffs: collections.abc.Mapping[tuple[dolfinx.cpp.fem.IntegralType, int], ndarray[dtype=float64, shape=(*, *), order='C', writable=False]], rows0: ndarray[dtype=int8, shape=(*), order='C', writable=False], rows1: ndarray[dtype=int8, shape=(*), order='C', writable=False], unrolled: bool = False) -> None

Invoked with types: Mat, dolfinx.cpp.fem.Form_float64, ndarray, dict, list

Even running one of the tutorial programs breaks at this line.

Luckily I installed everything into a virtual environment, so reinstallation isn’t much of an issue if I’m unable to uninstall the package. But before that, just looking at the error, does anyone maybe know a workaround? Again, I get this exact same error running any one of the tutorial programs as well.

Here are all the packages installed in my virtual environment just in case anyone asks:

# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                  3_kmp_llvm    conda-forge
_x86_64-microarch-level   3                        2_zen2    conda-forge
aiohappyeyeballs          2.6.1              pyhd8ed1ab_0    conda-forge
aiohttp                   3.12.13         py313h8060acc_0    conda-forge
aiosignal                 1.3.2              pyhd8ed1ab_0    conda-forge
alsa-lib                  1.2.14               hb9d3cd8_0    conda-forge
anyio                     4.9.0              pyh29332c3_0    conda-forge
argon2-cffi               25.1.0             pyhd8ed1ab_0    conda-forge
argon2-cffi-bindings      21.2.0          py313h536fd9c_5    conda-forge
arrow                     1.3.0              pyhd8ed1ab_1    conda-forge
asttokens                 3.0.0              pyhd8ed1ab_1    conda-forge
async-lru                 2.0.5              pyh29332c3_0    conda-forge
attr                      2.5.1                h166bdaf_1    conda-forge
attrs                     25.3.0             pyh71513ae_0    conda-forge
babel                     2.17.0             pyhd8ed1ab_0    conda-forge
beautifulsoup4            4.13.4             pyha770c72_0    conda-forge
binutils_impl_linux-64    2.43                 h4bf12b8_5    conda-forge
binutils_linux-64         2.43                 h4852527_5    conda-forge
blas                      2.132                  openblas    conda-forge
blas-devel                3.9.0           32_h1ea3ea9_openblas    conda-forge
bleach                    6.2.0              pyh29332c3_4    conda-forge
bleach-with-css           6.2.0                h82add2a_4    conda-forge
blis                      0.9.0                h4ab18f5_2    conda-forge
blosc                     1.21.6               he440d0b_1    conda-forge
brotli                    1.1.0                hb9d3cd8_3    conda-forge
brotli-bin                1.1.0                hb9d3cd8_3    conda-forge
brotli-python             1.1.0           py313h46c70d0_3    conda-forge
bzip2                     1.0.8                h4bc722e_7    conda-forge
c-ares                    1.34.5               hb9d3cd8_0    conda-forge
c-blosc2                  2.17.1               h3122c55_0    conda-forge
ca-certificates           2025.7.14            hbd8a1cb_0    conda-forge
cached-property           1.5.2                hd8ed1ab_1    conda-forge
cached_property           1.5.2              pyha770c72_1    conda-forge
cairo                     1.18.4               h3394656_0    conda-forge
cartopy                   0.24.0          py313ha87cce1_0    conda-forge
certifi                   2025.7.14          pyhd8ed1ab_0    conda-forge
cffi                      1.17.1          py313hfab6e84_0    conda-forge
cfgrib                    0.9.15.0           pyhd8ed1ab_0    conda-forge
charset-normalizer        3.4.2              pyhd8ed1ab_0    conda-forge
click                     8.2.1              pyh707e725_0    conda-forge
comm                      0.2.2              pyhd8ed1ab_1    conda-forge
contourpy                 1.3.2           py313h33d0bda_0    conda-forge
cycler                    0.12.1             pyhd8ed1ab_1    conda-forge
cyrus-sasl                2.1.28               hd9c7081_0    conda-forge
dbus                      1.16.2               h3c4dab8_0    conda-forge
debugpy                   1.8.14          py313h46c70d0_0    conda-forge
decorator                 5.2.1              pyhd8ed1ab_0    conda-forge
defusedxml                0.7.1              pyhd8ed1ab_0    conda-forge
double-conversion         3.3.1                h5888daf_0    conda-forge
eccodes                   2.41.0               h5f92351_1    conda-forge
exceptiongroup            1.3.0              pyhd8ed1ab_0    conda-forge
executing                 2.2.0              pyhd8ed1ab_0    conda-forge
fenics-basix              0.9.0           py313hc3cfa2d_3    conda-forge
fenics-basix-nanobind-abi 0.2.8.14        py310hd825971_3    conda-forge
fenics-dolfinx            0.9.0           py313h8b2eb4a_116    conda-forge
fenics-ffcx               0.9.0              pyh2e48890_0    conda-forge
fenics-libbasix           0.9.0           py313h9a8a8b1_3    conda-forge
fenics-libdolfinx         0.9.0           py313hbdcb39c_116    conda-forge
fenics-ufcx               0.9.0                hb7f7608_0    conda-forge
fenics-ufl                2024.2.0           pyhd8ed1ab_1    conda-forge
fftw                      3.3.10          mpi_openmpi_h99e62ba_10    conda-forge
findlibs                  0.0.5              pyhd8ed1ab_0    conda-forge
fltk                      1.3.10               hff38c0f_0    conda-forge
fmt                       11.2.0               h07f6e7f_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.15.0               h7e30c49_1    conda-forge
fonts-conda-ecosystem     1                             0    conda-forge
fonts-conda-forge         1                             0    conda-forge
fonttools                 4.58.4          py313h8060acc_0    conda-forge
fqdn                      1.5.1              pyhd8ed1ab_1    conda-forge
freeglut                  3.2.2                ha6d2627_3    conda-forge
freeimage                 3.18.0              h3a85593_22    conda-forge
freetype                  2.13.3               ha770c72_1    conda-forge
frozenlist                1.6.0           py313h61b7b33_0    conda-forge
gcc_impl_linux-64         14.3.0               hd9e9e21_3    conda-forge
gcc_linux-64              14.3.0              h1382650_11    conda-forge
geos                      3.13.1               h97f6797_0    conda-forge
gl2ps                     1.4.2                hae5d5c5_1    conda-forge
gmp                       6.3.0                hac33072_2    conda-forge
gmsh                      4.13.1               hccb25f3_1    conda-forge
graphite2                 1.3.14               h5888daf_0    conda-forge
h11                       0.16.0             pyhd8ed1ab_0    conda-forge
h2                        4.2.0              pyhd8ed1ab_0    conda-forge
harfbuzz                  11.2.1               h3beb420_0    conda-forge
hdf4                      4.2.15               h2a13503_7    conda-forge
hdf5                      1.14.6          mpi_openmpi_h39ae36c_1    conda-forge
hpack                     4.1.0              pyhd8ed1ab_0    conda-forge
httpcore                  1.0.9              pyh29332c3_0    conda-forge
httpx                     0.28.1             pyhd8ed1ab_0    conda-forge
hyperframe                6.1.0              pyhd8ed1ab_0    conda-forge
hypre                     2.32.0          mpi_openmpi_h398ea61_1    conda-forge
icu                       75.1                 he02047a_0    conda-forge
idna                      3.10               pyhd8ed1ab_1    conda-forge
imath                     3.1.12               h7955e40_0    conda-forge
importlib-metadata        8.7.0              pyhe01879c_1    conda-forge
importlib_resources       6.5.2              pyhd8ed1ab_0    conda-forge
ipykernel                 6.29.5             pyh3099207_0    conda-forge
ipython                   9.3.0              pyhfa0c392_0    conda-forge
ipython_pygments_lexers   1.1.1              pyhd8ed1ab_0    conda-forge
ipywidgets                8.1.7              pyhd8ed1ab_0    conda-forge
isoduration               20.11.0            pyhd8ed1ab_1    conda-forge
jasper                    4.2.5                h1920b20_0    conda-forge
jedi                      0.19.2             pyhd8ed1ab_1    conda-forge
jinja2                    3.1.6              pyhd8ed1ab_0    conda-forge
json5                     0.12.0             pyhd8ed1ab_0    conda-forge
jsoncpp                   1.9.6                hf42df4d_1    conda-forge
jsonpointer               3.0.0           py313h78bf25f_1    conda-forge
jsonschema                4.24.0             pyhd8ed1ab_0    conda-forge
jsonschema-specifications 2025.4.1           pyh29332c3_0    conda-forge
jsonschema-with-format-nongpl 4.24.0               hd8ed1ab_0    conda-forge
jupyter                   1.1.1              pyhd8ed1ab_1    conda-forge
jupyter-lsp               2.2.5              pyhe01879c_2    conda-forge
jupyter_client            8.6.3              pyhd8ed1ab_1    conda-forge
jupyter_console           6.6.3              pyhd8ed1ab_1    conda-forge
jupyter_core              5.8.1              pyh31011fe_0    conda-forge
jupyter_events            0.12.0             pyh29332c3_0    conda-forge
jupyter_server            2.16.0             pyhe01879c_0    conda-forge
jupyter_server_terminals  0.5.3              pyhd8ed1ab_1    conda-forge
jupyterlab                4.4.3              pyhd8ed1ab_0    conda-forge
jupyterlab_pygments       0.3.0              pyhd8ed1ab_2    conda-forge
jupyterlab_server         2.27.3             pyhd8ed1ab_1    conda-forge
jupyterlab_widgets        3.0.15             pyhd8ed1ab_0    conda-forge
jxrlib                    1.1                  hd590300_3    conda-forge
kahip                     3.19                 hd8b01d5_0    conda-forge
kernel-headers_linux-64   3.10.0              he073ed8_18    conda-forge
keyutils                  1.6.1                h166bdaf_0    conda-forge
kiwisolver                1.4.7           py313h33d0bda_0    conda-forge
krb5                      1.21.3               h659f571_0    conda-forge
lcms2                     2.17                 h717163a_0    conda-forge
ld_impl_linux-64          2.43                 h712a8e2_5    conda-forge
lerc                      4.0.0                h0aef613_1    conda-forge
libadios2                 2.10.2          mpi_openmpi_ha4e058c_6    conda-forge
libaec                    1.1.4                h3f801dc_0    conda-forge
libamd                    3.3.3           haaf9dc3_7100102    conda-forge
libblas                   3.9.0           32_h59b9bed_openblas    conda-forge
libboost                  1.86.0               h6c02f8c_3    conda-forge
libboost-devel            1.86.0               h1a2810e_3    conda-forge
libboost-headers          1.86.0               ha770c72_3    conda-forge
libbrotlicommon           1.1.0                hb9d3cd8_3    conda-forge
libbrotlidec              1.1.0                hb9d3cd8_3    conda-forge
libbrotlienc              1.1.0                hb9d3cd8_3    conda-forge
libbtf                    2.3.2           h32481e8_7100102    conda-forge
libcamd                   3.3.3           h32481e8_7100102    conda-forge
libcap                    2.75                 h39aace5_0    conda-forge
libcblas                  3.9.0           32_he106b2a_openblas    conda-forge
libccolamd                3.3.4           h32481e8_7100102    conda-forge
libcholmod                5.3.1           h59ddab4_7100102    conda-forge
libclang-cpp20.1          20.1.7          default_h1df26ce_0    conda-forge
libclang13                20.1.7          default_he06ed0a_0    conda-forge
libcolamd                 3.3.4           h32481e8_7100102    conda-forge
libcups                   2.3.3                hb8b1518_5    conda-forge
libcurl                   8.14.1               h332b0f4_0    conda-forge
libdeflate                1.24                 h86f0d12_0    conda-forge
libdrm                    2.4.125              hb9d3cd8_0    conda-forge
libedit                   3.1.20250104    pl5321h7949ede_0    conda-forge
libegl                    1.7.0                ha4b6fd6_2    conda-forge
libev                     4.33                 hd590300_2    conda-forge
libevent                  2.1.12               hf998b51_1    conda-forge
libexpat                  2.7.0                h5888daf_0    conda-forge
libfabric                 2.1.0                ha770c72_1    conda-forge
libfabric1                2.1.0                hf45584d_1    conda-forge
libffi                    3.4.6                h2dba641_1    conda-forge
libfreetype               2.13.3               ha770c72_1    conda-forge
libfreetype6              2.13.3               h48d6fc4_1    conda-forge
libgcc                    15.1.0               h767d61c_2    conda-forge
libgcc-devel_linux-64     14.3.0             h85bb3a7_103    conda-forge
libgcc-ng                 15.1.0               h69a702a_2    conda-forge
libgcrypt-lib             1.11.1               hb9d3cd8_0    conda-forge
libgfortran               15.1.0               h69a702a_2    conda-forge
libgfortran-ng            15.1.0               h69a702a_2    conda-forge
libgfortran5              15.1.0               hcea5267_2    conda-forge
libgl                     1.7.0                ha4b6fd6_2    conda-forge
libglib                   2.84.2               h3618099_0    conda-forge
libglu                    9.0.3                h5888daf_1    conda-forge
libglvnd                  1.7.0                ha4b6fd6_2    conda-forge
libglx                    1.7.0                ha4b6fd6_2    conda-forge
libgomp                   15.1.0               h767d61c_2    conda-forge
libgpg-error              1.55                 h3f2d84a_0    conda-forge
libhwloc                  2.11.2          default_h0d58e46_1001    conda-forge
libiconv                  1.18                 h4ce23a2_1    conda-forge
libjpeg-turbo             3.1.0                hb9d3cd8_0    conda-forge
libklu                    2.3.5           hf24d653_7100102    conda-forge
liblapack                 3.9.0           32_h7ac8fdf_openblas    conda-forge
liblapacke                3.9.0           32_he2f377e_openblas    conda-forge
libllvm20                 20.1.7               he9d0ab4_0    conda-forge
liblzma                   5.8.1                hb9d3cd8_2    conda-forge
libmpdec                  4.0.0                hb9d3cd8_0    conda-forge
libnetcdf                 4.9.2           nompi_h0134ee8_117    conda-forge
libnghttp2                1.64.0               h161d5f1_0    conda-forge
libnl                     3.11.0               hb9d3cd8_0    conda-forge
libntlm                   1.8                  hb9d3cd8_0    conda-forge
libogg                    1.3.5                hd0c01bc_1    conda-forge
libopenblas               0.3.30          openmp_hd680484_0    conda-forge
libopengl                 1.7.0                ha4b6fd6_2    conda-forge
libpciaccess              0.18                 hb9d3cd8_0    conda-forge
libpmix                   5.0.8                h658e747_0    conda-forge
libpng                    1.6.47               h943b412_0    conda-forge
libpq                     17.5                 h27ae623_0    conda-forge
libptscotch               7.0.6                h7e1c861_1    conda-forge
libraw                    0.21.4               h9969a89_0    conda-forge
libsanitizer              14.3.0               hd08acf3_3    conda-forge
libscotch                 7.0.6                hd4c538f_1    conda-forge
libsodium                 1.0.20               h4ab18f5_0    conda-forge
libspqr                   4.3.4           h852d39f_7100102    conda-forge
libsqlite                 3.50.1               hee588c1_0    conda-forge
libssh2                   1.11.1               hcf80075_0    conda-forge
libstdcxx                 15.1.0               h8f9b012_2    conda-forge
libstdcxx-ng              15.1.0               h4852527_2    conda-forge
libsuitesparseconfig      7.10.1          h92d6892_7100102    conda-forge
libsystemd0               257.6                h4e0b6ca_0    conda-forge
libtheora                 1.1.1             h4ab18f5_1006    conda-forge
libtiff                   4.7.0                hf01ce69_5    conda-forge
libudev1                  257.6                hbe16f8c_0    conda-forge
libumfpack                6.3.5           heb53515_7100102    conda-forge
libuuid                   2.38.1               h0b41bf4_0    conda-forge
libvorbis                 1.3.7                h9c3ff4c_0    conda-forge
libwebp-base              1.5.0                h851e524_0    conda-forge
libxcb                    1.17.0               h8a09558_0    conda-forge
libxcrypt                 4.4.36               hd590300_1    conda-forge
libxkbcommon              1.10.0               h65c71a3_0    conda-forge
libxml2                   2.13.8               h4bc477f_0    conda-forge
libxslt                   1.1.39               h76b75d6_0    conda-forge
libzip                    1.11.2               h6991a6a_0    conda-forge
libzlib                   1.3.1                hb9d3cd8_2    conda-forge
llvm-openmp               20.1.7               h024ca30_0    conda-forge
loguru                    0.7.3              pyh707e725_0    conda-forge
lz4-c                     1.10.0               h5888daf_1    conda-forge
markupsafe                3.0.2           py313h8060acc_1    conda-forge
matplotlib                3.10.3          py313h78bf25f_0    conda-forge
matplotlib-base           3.10.3          py313h129903b_0    conda-forge
matplotlib-inline         0.1.7              pyhd8ed1ab_1    conda-forge
metis                     5.1.0             hd0bcaf9_1007    conda-forge
mistune                   3.1.3              pyh29332c3_0    conda-forge
mpi                       1.0                     openmpi    conda-forge
mpi4py                    4.1.0           py313hf81da11_100    conda-forge
msgpack-python            1.1.1           py313h33d0bda_0    conda-forge
multidict                 6.5.0           py313h8060acc_0    conda-forge
mumps-include             5.7.3               hd53efc5_10    conda-forge
mumps-mpi                 5.7.3               h85c5be4_10    conda-forge
munkres                   1.1.4              pyhd8ed1ab_1    conda-forge
nbclient                  0.10.2             pyhd8ed1ab_0    conda-forge
nbconvert-core            7.16.6             pyh29332c3_0    conda-forge
nbformat                  5.10.4             pyhd8ed1ab_1    conda-forge
ncurses                   6.5                  h2d0b736_3    conda-forge
nest-asyncio              1.6.0              pyhd8ed1ab_1    conda-forge
nlohmann_json             3.12.0               h3f2d84a_0    conda-forge
notebook                  7.4.3              pyhd8ed1ab_0    conda-forge
notebook-shim             0.2.4              pyhd8ed1ab_1    conda-forge
numpy                     2.3.0           py313h17eae1a_0    conda-forge
occt                      7.8.1           novtk_he2768ca_103    conda-forge
openblas                  0.3.30          openmp_hd77311e_0    conda-forge
openexr                   3.3.4                h2cd1444_0    conda-forge
openjpeg                  2.5.3                h5fbd93e_0    conda-forge
openldap                  2.6.10               he970967_0    conda-forge
openmpi                   5.0.8              h41ff47f_100    conda-forge
openssl                   3.5.1                h7b32b05_0    conda-forge
overrides                 7.7.0              pyhd8ed1ab_1    conda-forge
packaging                 25.0               pyh29332c3_1    conda-forge
pandas                    2.3.0           py313ha87cce1_0    conda-forge
pandocfilters             1.5.0              pyhd8ed1ab_0    conda-forge
parmetis                  4.0.3             h02de7a9_1007    conda-forge
parso                     0.8.4              pyhd8ed1ab_1    conda-forge
pcre2                     10.45                hc749103_0    conda-forge
petsc                     3.23.4          real_h0df0b33_0    conda-forge
petsc4py                  3.23.3          np2py313h27975fa_0    conda-forge
pexpect                   4.9.0              pyhd8ed1ab_1    conda-forge
pickleshare               0.7.5           pyhd8ed1ab_1004    conda-forge
pillow                    11.2.1          py313h8db990d_0    conda-forge
pip                       25.1.1             pyh145f28c_0    conda-forge
pixman                    0.46.2               h29eaf8c_0    conda-forge
pkg-config                0.29.2            h4bc722e_1009    conda-forge
pkgutil-resolve-name      1.3.10             pyhd8ed1ab_2    conda-forge
platformdirs              4.3.8              pyhe01879c_0    conda-forge
pooch                     1.8.2              pyhd8ed1ab_1    conda-forge
proj                      9.6.2                h0054346_0    conda-forge
prometheus_client         0.22.1             pyhd8ed1ab_0    conda-forge
prompt-toolkit            3.0.51             pyha770c72_0    conda-forge
prompt_toolkit            3.0.51               hd8ed1ab_0    conda-forge
propcache                 0.3.1           py313h8060acc_0    conda-forge
psutil                    7.0.0           py313h536fd9c_0    conda-forge
pthread-stubs             0.4               hb9d3cd8_1002    conda-forge
ptyprocess                0.7.0              pyhd8ed1ab_1    conda-forge
pugixml                   1.15                 h3f63f65_0    conda-forge
pure_eval                 0.2.3              pyhd8ed1ab_1    conda-forge
pycparser                 2.22               pyh29332c3_1    conda-forge
pygments                  2.19.1             pyhd8ed1ab_0    conda-forge
pyparsing                 3.2.3              pyhd8ed1ab_1    conda-forge
pyproj                    3.7.1           py313hcd509b5_1    conda-forge
pyshp                     2.3.1              pyhd8ed1ab_1    conda-forge
pyside6                   6.9.1           py313h7dabd7a_0    conda-forge
pysocks                   1.7.1              pyha55dd90_7    conda-forge
python                    3.13.5          hf636f53_101_cp313    conda-forge
python-dateutil           2.9.0.post0        pyhff2d567_1    conda-forge
python-eccodes            2.37.0          py313ha014f3b_0    conda-forge
python-fastjsonschema     2.21.1             pyhd8ed1ab_0    conda-forge
python-gmsh               4.13.1               h57928b3_1    conda-forge
python-json-logger        2.0.7              pyhd8ed1ab_0    conda-forge
python-tzdata             2025.2             pyhd8ed1ab_0    conda-forge
python_abi                3.13                    7_cp313    conda-forge
pytz                      2025.2             pyhd8ed1ab_0    conda-forge
pyvista                   0.45.3             pyhd8ed1ab_0    conda-forge
pyyaml                    6.0.2           py313h8060acc_2    conda-forge
pyzmq                     27.0.0          py313h8e95178_0    conda-forge
qhull                     2020.2               h434a139_5    conda-forge
qt6-main                  6.9.1                h0384650_0    conda-forge
rapidjson                 1.1.0.post20240409      h3f2d84a_2    conda-forge
rdma-core                 57.0                 h5888daf_0    conda-forge
readline                  8.2                  h8c095d6_2    conda-forge
referencing               0.36.2             pyh29332c3_0    conda-forge
requests                  2.32.4             pyhd8ed1ab_0    conda-forge
rfc3339-validator         0.1.4              pyhd8ed1ab_1    conda-forge
rfc3986-validator         0.1.1              pyh9f0ad1d_0    conda-forge
rpds-py                   0.25.1          py313h4b2b08d_0    conda-forge
scalapack                 2.2.0                h16fb9de_4    conda-forge
scipy                     1.15.3          py313h1ea73e7_0    anaconda
scooby                    0.10.1             pyhd8ed1ab_0    conda-forge
send2trash                1.8.3              pyh0d859eb_1    conda-forge
setuptools                80.9.0             pyhff2d567_0    conda-forge
shapely                   2.1.1           py313h576e190_0    conda-forge
six                       1.17.0             pyhd8ed1ab_0    conda-forge
slepc                     3.23.2          real_he05c714_0    conda-forge
slepc4py                  3.23.1          np2py313hea9341d_0    conda-forge
snappy                    1.2.1                h8bd8927_1    conda-forge
sniffio                   1.3.1              pyhd8ed1ab_1    conda-forge
soupsieve                 2.7                pyhd8ed1ab_0    conda-forge
spdlog                    1.15.3               h6dc744f_1    conda-forge
sqlite                    3.50.1               h9eae976_0    conda-forge
stack_data                0.6.3              pyhd8ed1ab_1    conda-forge
superlu                   7.0.1                h8f6e6c4_0    conda-forge
superlu_dist              9.1.0                h3349319_0    conda-forge
sysroot_linux-64          2.17                h0157908_18    conda-forge
tbb                       2022.1.0             h4ce085d_0    conda-forge
terminado                 0.18.1             pyh0d859eb_0    conda-forge
tinycss2                  1.4.0              pyhd8ed1ab_0    conda-forge
tk                        8.6.13          noxft_hd72426e_102    conda-forge
tomli                     2.2.1              pyhd8ed1ab_1    conda-forge
tornado                   6.5.1           py313h536fd9c_0    conda-forge
traitlets                 5.14.3             pyhd8ed1ab_1    conda-forge
types-python-dateutil     2.9.0.20250516     pyhd8ed1ab_0    conda-forge
typing-extensions         4.14.0               h32cad80_0    conda-forge
typing_extensions         4.14.0             pyhe01879c_0    conda-forge
typing_utils              0.1.0              pyhd8ed1ab_1    conda-forge
tzdata                    2025b                h78e105d_0    conda-forge
ucc                       1.4.4                h2b97398_0    conda-forge
ucx                       1.18.1               h1369271_0    conda-forge
uri-template              1.3.0              pyhd8ed1ab_1    conda-forge
urllib3                   2.4.0              pyhd8ed1ab_0    conda-forge
utfcpp                    4.0.6                h005c6e1_0    conda-forge
vtk-base                  9.4.2           py313h6b6eb50_1    conda-forge
wayland                   1.23.1               h3e06ad9_1    conda-forge
wcwidth                   0.2.13             pyhd8ed1ab_1    conda-forge
webcolors                 24.11.1            pyhd8ed1ab_0    conda-forge
webencodings              0.5.1              pyhd8ed1ab_3    conda-forge
websocket-client          1.8.0              pyhd8ed1ab_1    conda-forge
widgetsnbextension        4.0.14             pyhd8ed1ab_0    conda-forge
wslink                    2.3.4              pyhd8ed1ab_0    conda-forge
xarray                    2025.6.1           pyhd8ed1ab_1    conda-forge
xcb-util                  0.4.1                hb711507_2    conda-forge
xcb-util-cursor           0.1.5                hb9d3cd8_0    conda-forge
xcb-util-image            0.4.0                hb711507_2    conda-forge
xcb-util-keysyms          0.4.1                hb711507_0    conda-forge
xcb-util-renderutil       0.3.10               hb711507_0    conda-forge
xcb-util-wm               0.4.2                hb711507_0    conda-forge
xkeyboard-config          2.45                 hb9d3cd8_0    conda-forge
xorg-libice               1.1.2                hb9d3cd8_0    conda-forge
xorg-libsm                1.2.6                he73a12e_0    conda-forge
xorg-libx11               1.8.12               h4f16b4b_0    conda-forge
xorg-libxau               1.0.12               hb9d3cd8_0    conda-forge
xorg-libxcomposite        0.4.6                hb9d3cd8_2    conda-forge
xorg-libxcursor           1.2.3                hb9d3cd8_0    conda-forge
xorg-libxdamage           1.1.6                hb9d3cd8_0    conda-forge
xorg-libxdmcp             1.1.5                hb9d3cd8_0    conda-forge
xorg-libxext              1.3.6                hb9d3cd8_0    conda-forge
xorg-libxfixes            6.0.1                hb9d3cd8_0    conda-forge
xorg-libxi                1.8.2                hb9d3cd8_0    conda-forge
xorg-libxmu               1.2.1                hb9d3cd8_1    conda-forge
xorg-libxrandr            1.5.4                hb9d3cd8_0    conda-forge
xorg-libxrender           0.9.12               hb9d3cd8_0    conda-forge
xorg-libxt                1.3.1                hb9d3cd8_0    conda-forge
xorg-libxtst              1.2.5                hb9d3cd8_3    conda-forge
xorg-libxxf86vm           1.1.6                hb9d3cd8_0    conda-forge
yaml                      0.2.5                h7f98852_2    conda-forge
yarl                      1.20.1          py313h8060acc_0    conda-forge
zeromq                    4.3.5                h3b0a872_7    conda-forge
zfp                       1.0.1                h5888daf_2    conda-forge
zipp                      3.23.0             pyhd8ed1ab_0    conda-forge
zlib                      1.3.1                hb9d3cd8_2    conda-forge
zlib-ng                   2.2.4                h7955e40_0    conda-forge
zstandard                 0.23.0          py313h536fd9c_2    conda-forge
zstd                      1.5.7                hb8e6e7a_2    conda-forge

I couldn’t reproduce it by install fenics-dolfinx and then cartography.

Could you add the the data in the file environment.yml stemming from

conda env export > environment.yml?

I’d attach the file, but it doesn’t seem to allow .yml files to be attached to messages. So here is a copy-paste of what’s shown in the environment file

name: fea
channels:

  • anaconda
  • conda-forge
  • defaults
    dependencies:
  • _libgcc_mutex=0.1=conda_forge
  • _openmp_mutex=4.5=3_kmp_llvm
  • _x86_64-microarch-level=3=2_zen2
  • aiohappyeyeballs=2.6.1=pyhd8ed1ab_0
  • aiohttp=3.12.13=py313h8060acc_0
  • aiosignal=1.3.2=pyhd8ed1ab_0
  • alsa-lib=1.2.14=hb9d3cd8_0
  • anyio=4.9.0=pyh29332c3_0
  • argon2-cffi=25.1.0=pyhd8ed1ab_0
  • argon2-cffi-bindings=21.2.0=py313h536fd9c_5
  • arrow=1.3.0=pyhd8ed1ab_1
  • asttokens=3.0.0=pyhd8ed1ab_1
  • async-lru=2.0.5=pyh29332c3_0
  • attr=2.5.1=h166bdaf_1
  • attrs=25.3.0=pyh71513ae_0
  • babel=2.17.0=pyhd8ed1ab_0
  • beautifulsoup4=4.13.4=pyha770c72_0
  • binutils_impl_linux-64=2.43=h4bf12b8_5
  • binutils_linux-64=2.43=h4852527_5
  • blas=2.132=openblas
  • blas-devel=3.9.0=32_h1ea3ea9_openblas
  • bleach=6.2.0=pyh29332c3_4
  • bleach-with-css=6.2.0=h82add2a_4
  • blis=0.9.0=h4ab18f5_2
  • blosc=1.21.6=he440d0b_1
  • brotli=1.1.0=hb9d3cd8_3
  • brotli-bin=1.1.0=hb9d3cd8_3
  • brotli-python=1.1.0=py313h46c70d0_3
  • bzip2=1.0.8=h4bc722e_7
  • c-ares=1.34.5=hb9d3cd8_0
  • c-blosc2=2.17.1=h3122c55_0
  • ca-certificates=2025.7.14=hbd8a1cb_0
  • cached-property=1.5.2=hd8ed1ab_1
  • cached_property=1.5.2=pyha770c72_1
  • cairo=1.18.4=h3394656_0
  • certifi=2025.7.14=pyhd8ed1ab_0
  • cffi=1.17.1=py313hfab6e84_0
  • cfgrib=0.9.15.0=pyhd8ed1ab_0
  • charset-normalizer=3.4.2=pyhd8ed1ab_0
  • click=8.2.1=pyh707e725_0
  • comm=0.2.2=pyhd8ed1ab_1
  • contourpy=1.3.2=py313h33d0bda_0
  • cycler=0.12.1=pyhd8ed1ab_1
  • cyrus-sasl=2.1.28=hd9c7081_0
  • dbus=1.16.2=h3c4dab8_0
  • debugpy=1.8.14=py313h46c70d0_0
  • decorator=5.2.1=pyhd8ed1ab_0
  • defusedxml=0.7.1=pyhd8ed1ab_0
  • double-conversion=3.3.1=h5888daf_0
  • eccodes=2.41.0=h5f92351_1
  • exceptiongroup=1.3.0=pyhd8ed1ab_0
  • executing=2.2.0=pyhd8ed1ab_0
  • fenics-basix=0.9.0=py313hc3cfa2d_3
  • fenics-basix-nanobind-abi=0.2.8.14=py310hd825971_3
  • fenics-dolfinx=0.9.0=py313h8b2eb4a_116
  • fenics-ffcx=0.9.0=pyh2e48890_0
  • fenics-libbasix=0.9.0=py313h9a8a8b1_3
  • fenics-libdolfinx=0.9.0=py313hbdcb39c_116
  • fenics-ufcx=0.9.0=hb7f7608_0
  • fenics-ufl=2024.2.0=pyhd8ed1ab_1
  • fftw=3.3.10=mpi_openmpi_h99e62ba_10
  • findlibs=0.0.5=pyhd8ed1ab_0
  • fltk=1.3.10=hff38c0f_0
  • fmt=11.2.0=h07f6e7f_0
  • font-ttf-dejavu-sans-mono=2.37=hab24e00_0
  • font-ttf-inconsolata=3.000=h77eed37_0
  • font-ttf-source-code-pro=2.038=h77eed37_0
  • font-ttf-ubuntu=0.83=h77eed37_3
  • fontconfig=2.15.0=h7e30c49_1
  • fonts-conda-ecosystem=1=0
  • fonts-conda-forge=1=0
  • fonttools=4.58.4=py313h8060acc_0
  • fqdn=1.5.1=pyhd8ed1ab_1
  • freeglut=3.2.2=ha6d2627_3
  • freeimage=3.18.0=h3a85593_22
  • freetype=2.13.3=ha770c72_1
  • frozenlist=1.6.0=py313h61b7b33_0
  • gcc_impl_linux-64=14.3.0=hd9e9e21_3
  • gcc_linux-64=14.3.0=h1382650_11
  • gl2ps=1.4.2=hae5d5c5_1
  • gmp=6.3.0=hac33072_2
  • gmsh=4.13.1=hccb25f3_1
  • graphite2=1.3.14=h5888daf_0
  • h11=0.16.0=pyhd8ed1ab_0
  • h2=4.2.0=pyhd8ed1ab_0
  • harfbuzz=11.2.1=h3beb420_0
  • hdf4=4.2.15=h2a13503_7
  • hdf5=1.14.6=mpi_openmpi_h39ae36c_1
  • hpack=4.1.0=pyhd8ed1ab_0
  • httpcore=1.0.9=pyh29332c3_0
  • httpx=0.28.1=pyhd8ed1ab_0
  • hyperframe=6.1.0=pyhd8ed1ab_0
  • hypre=2.32.0=mpi_openmpi_h398ea61_1
  • icu=75.1=he02047a_0
  • idna=3.10=pyhd8ed1ab_1
  • imath=3.1.12=h7955e40_0
  • importlib-metadata=8.7.0=pyhe01879c_1
  • importlib_resources=6.5.2=pyhd8ed1ab_0
  • ipykernel=6.29.5=pyh3099207_0
  • ipython=9.3.0=pyhfa0c392_0
  • ipython_pygments_lexers=1.1.1=pyhd8ed1ab_0
  • ipywidgets=8.1.7=pyhd8ed1ab_0
  • isoduration=20.11.0=pyhd8ed1ab_1
  • jasper=4.2.5=h1920b20_0
  • jedi=0.19.2=pyhd8ed1ab_1
  • jinja2=3.1.6=pyhd8ed1ab_0
  • json5=0.12.0=pyhd8ed1ab_0
  • jsoncpp=1.9.6=hf42df4d_1
  • jsonpointer=3.0.0=py313h78bf25f_1
  • jsonschema=4.24.0=pyhd8ed1ab_0
  • jsonschema-specifications=2025.4.1=pyh29332c3_0
  • jsonschema-with-format-nongpl=4.24.0=hd8ed1ab_0
  • jupyter=1.1.1=pyhd8ed1ab_1
  • jupyter-lsp=2.2.5=pyhe01879c_2
  • jupyter_client=8.6.3=pyhd8ed1ab_1
  • jupyter_console=6.6.3=pyhd8ed1ab_1
  • jupyter_core=5.8.1=pyh31011fe_0
  • jupyter_events=0.12.0=pyh29332c3_0
  • jupyter_server=2.16.0=pyhe01879c_0
  • jupyter_server_terminals=0.5.3=pyhd8ed1ab_1
  • jupyterlab=4.4.3=pyhd8ed1ab_0
  • jupyterlab_pygments=0.3.0=pyhd8ed1ab_2
  • jupyterlab_server=2.27.3=pyhd8ed1ab_1
  • jupyterlab_widgets=3.0.15=pyhd8ed1ab_0
  • jxrlib=1.1=hd590300_3
  • kahip=3.19=hd8b01d5_0
  • kernel-headers_linux-64=3.10.0=he073ed8_18
  • keyutils=1.6.1=h166bdaf_0
  • kiwisolver=1.4.7=py313h33d0bda_0
  • krb5=1.21.3=h659f571_0
  • lcms2=2.17=h717163a_0
  • ld_impl_linux-64=2.43=h712a8e2_5
  • lerc=4.0.0=h0aef613_1
  • libadios2=2.10.2=mpi_openmpi_ha4e058c_6
  • libaec=1.1.4=h3f801dc_0
  • libamd=3.3.3=haaf9dc3_7100102
  • libblas=3.9.0=32_h59b9bed_openblas
  • libboost=1.86.0=h6c02f8c_3
  • libboost-devel=1.86.0=h1a2810e_3
  • libboost-headers=1.86.0=ha770c72_3
  • libbrotlicommon=1.1.0=hb9d3cd8_3
  • libbrotlidec=1.1.0=hb9d3cd8_3
  • libbrotlienc=1.1.0=hb9d3cd8_3
  • libbtf=2.3.2=h32481e8_7100102
  • libcamd=3.3.3=h32481e8_7100102
  • libcap=2.75=h39aace5_0
  • libcblas=3.9.0=32_he106b2a_openblas
  • libccolamd=3.3.4=h32481e8_7100102
  • libcholmod=5.3.1=h59ddab4_7100102
  • libclang-cpp20.1=20.1.7=default_h1df26ce_0
  • libclang13=20.1.7=default_he06ed0a_0
  • libcolamd=3.3.4=h32481e8_7100102
  • libcups=2.3.3=hb8b1518_5
  • libcurl=8.14.1=h332b0f4_0
  • libdeflate=1.24=h86f0d12_0
  • libdrm=2.4.125=hb9d3cd8_0
  • libedit=3.1.20250104=pl5321h7949ede_0
  • libegl=1.7.0=ha4b6fd6_2
  • libev=4.33=hd590300_2
  • libevent=2.1.12=hf998b51_1
  • libexpat=2.7.0=h5888daf_0
  • libfabric=2.1.0=ha770c72_1
  • libfabric1=2.1.0=hf45584d_1
  • libffi=3.4.6=h2dba641_1
  • libfreetype=2.13.3=ha770c72_1
  • libfreetype6=2.13.3=h48d6fc4_1
  • libgcc=15.1.0=h767d61c_2
  • libgcc-devel_linux-64=14.3.0=h85bb3a7_103
  • libgcc-ng=15.1.0=h69a702a_2
  • libgcrypt-lib=1.11.1=hb9d3cd8_0
  • libgfortran=15.1.0=h69a702a_2
  • libgfortran-ng=15.1.0=h69a702a_2
  • libgfortran5=15.1.0=hcea5267_2
  • libgl=1.7.0=ha4b6fd6_2
  • libglib=2.84.2=h3618099_0
  • libglu=9.0.3=h5888daf_1
  • libglvnd=1.7.0=ha4b6fd6_2
  • libglx=1.7.0=ha4b6fd6_2
  • libgomp=15.1.0=h767d61c_2
  • libgpg-error=1.55=h3f2d84a_0
  • libhwloc=2.11.2=default_h0d58e46_1001
  • libiconv=1.18=h4ce23a2_1
  • libjpeg-turbo=3.1.0=hb9d3cd8_0
  • libklu=2.3.5=hf24d653_7100102
  • liblapack=3.9.0=32_h7ac8fdf_openblas
  • liblapacke=3.9.0=32_he2f377e_openblas
  • libllvm20=20.1.7=he9d0ab4_0
  • liblzma=5.8.1=hb9d3cd8_2
  • libmpdec=4.0.0=hb9d3cd8_0
  • libnetcdf=4.9.2=nompi_h0134ee8_117
  • libnghttp2=1.64.0=h161d5f1_0
  • libnl=3.11.0=hb9d3cd8_0
  • libntlm=1.8=hb9d3cd8_0
  • libogg=1.3.5=hd0c01bc_1
  • libopenblas=0.3.30=openmp_hd680484_0
  • libopengl=1.7.0=ha4b6fd6_2
  • libpciaccess=0.18=hb9d3cd8_0
  • libpmix=5.0.8=h658e747_0
  • libpng=1.6.47=h943b412_0
  • libpq=17.5=h27ae623_0
  • libptscotch=7.0.6=h7e1c861_1
  • libraw=0.21.4=h9969a89_0
  • libsanitizer=14.3.0=hd08acf3_3
  • libscotch=7.0.6=hd4c538f_1
  • libsodium=1.0.20=h4ab18f5_0
  • libspqr=4.3.4=h852d39f_7100102
  • libsqlite=3.50.1=hee588c1_0
  • libssh2=1.11.1=hcf80075_0
  • libstdcxx=15.1.0=h8f9b012_2
  • libstdcxx-ng=15.1.0=h4852527_2
  • libsuitesparseconfig=7.10.1=h92d6892_7100102
  • libsystemd0=257.6=h4e0b6ca_0
  • libtheora=1.1.1=h4ab18f5_1006
  • libtiff=4.7.0=hf01ce69_5
  • libudev1=257.6=hbe16f8c_0
  • libumfpack=6.3.5=heb53515_7100102
  • libuuid=2.38.1=h0b41bf4_0
  • libvorbis=1.3.7=h9c3ff4c_0
  • libwebp-base=1.5.0=h851e524_0
  • libxcb=1.17.0=h8a09558_0
  • libxcrypt=4.4.36=hd590300_1
  • libxkbcommon=1.10.0=h65c71a3_0
  • libxml2=2.13.8=h4bc477f_0
  • libxslt=1.1.39=h76b75d6_0
  • libzip=1.11.2=h6991a6a_0
  • libzlib=1.3.1=hb9d3cd8_2
  • llvm-openmp=20.1.7=h024ca30_0
  • loguru=0.7.3=pyh707e725_0
  • lz4-c=1.10.0=h5888daf_1
  • markupsafe=3.0.2=py313h8060acc_1
  • matplotlib=3.10.3=py313h78bf25f_0
  • matplotlib-base=3.10.3=py313h129903b_0
  • matplotlib-inline=0.1.7=pyhd8ed1ab_1
  • metis=5.1.0=hd0bcaf9_1007
  • mistune=3.1.3=pyh29332c3_0
  • mpi=1.0=openmpi
  • mpi4py=4.1.0=py313hf81da11_100
  • msgpack-python=1.1.1=py313h33d0bda_0
  • multidict=6.5.0=py313h8060acc_0
  • mumps-include=5.7.3=hd53efc5_10
  • mumps-mpi=5.7.3=h85c5be4_10
  • munkres=1.1.4=pyhd8ed1ab_1
  • nbclient=0.10.2=pyhd8ed1ab_0
  • nbconvert-core=7.16.6=pyh29332c3_0
  • nbformat=5.10.4=pyhd8ed1ab_1
  • ncurses=6.5=h2d0b736_3
  • nest-asyncio=1.6.0=pyhd8ed1ab_1
  • nlohmann_json=3.12.0=h3f2d84a_0
  • notebook=7.4.3=pyhd8ed1ab_0
  • notebook-shim=0.2.4=pyhd8ed1ab_1
  • numpy=2.3.0=py313h17eae1a_0
  • occt=7.8.1=novtk_he2768ca_103
  • openblas=0.3.30=openmp_hd77311e_0
  • openexr=3.3.4=h2cd1444_0
  • openjpeg=2.5.3=h5fbd93e_0
  • openldap=2.6.10=he970967_0
  • openmpi=5.0.8=h41ff47f_100
  • openssl=3.5.1=h7b32b05_0
  • overrides=7.7.0=pyhd8ed1ab_1
  • packaging=25.0=pyh29332c3_1
  • pandas=2.3.0=py313ha87cce1_0
  • pandocfilters=1.5.0=pyhd8ed1ab_0
  • parmetis=4.0.3=h02de7a9_1007
  • parso=0.8.4=pyhd8ed1ab_1
  • pcre2=10.45=hc749103_0
  • petsc=3.23.4=real_h0df0b33_0
  • petsc4py=3.23.3=np2py313h27975fa_0
  • pexpect=4.9.0=pyhd8ed1ab_1
  • pickleshare=0.7.5=pyhd8ed1ab_1004
  • pillow=11.2.1=py313h8db990d_0
  • pip=25.1.1=pyh145f28c_0
  • pixman=0.46.2=h29eaf8c_0
  • pkg-config=0.29.2=h4bc722e_1009
  • pkgutil-resolve-name=1.3.10=pyhd8ed1ab_2
  • platformdirs=4.3.8=pyhe01879c_0
  • pooch=1.8.2=pyhd8ed1ab_1
  • proj=9.6.2=h0054346_0
  • prometheus_client=0.22.1=pyhd8ed1ab_0
  • prompt-toolkit=3.0.51=pyha770c72_0
  • prompt_toolkit=3.0.51=hd8ed1ab_0
  • propcache=0.3.1=py313h8060acc_0
  • psutil=7.0.0=py313h536fd9c_0
  • pthread-stubs=0.4=hb9d3cd8_1002
  • ptyprocess=0.7.0=pyhd8ed1ab_1
  • pugixml=1.15=h3f63f65_0
  • pure_eval=0.2.3=pyhd8ed1ab_1
  • pycparser=2.22=pyh29332c3_1
  • pygments=2.19.1=pyhd8ed1ab_0
  • pyparsing=3.2.3=pyhd8ed1ab_1
  • pyside6=6.9.1=py313h7dabd7a_0
  • pysocks=1.7.1=pyha55dd90_7
  • python=3.13.5=hf636f53_101_cp313
  • python-dateutil=2.9.0.post0=pyhff2d567_1
  • python-eccodes=2.37.0=py313ha014f3b_0
  • python-fastjsonschema=2.21.1=pyhd8ed1ab_0
  • python-gmsh=4.13.1=h57928b3_1
  • python-json-logger=2.0.7=pyhd8ed1ab_0
  • python-tzdata=2025.2=pyhd8ed1ab_0
  • python_abi=3.13=7_cp313
  • pytz=2025.2=pyhd8ed1ab_0
  • pyvista=0.45.3=pyhd8ed1ab_0
  • pyyaml=6.0.2=py313h8060acc_2
  • pyzmq=27.0.0=py313h8e95178_0
  • qhull=2020.2=h434a139_5
  • qt6-main=6.9.1=h0384650_0
  • rapidjson=1.1.0.post20240409=h3f2d84a_2
  • rdma-core=57.0=h5888daf_0
  • readline=8.2=h8c095d6_2
  • referencing=0.36.2=pyh29332c3_0
  • requests=2.32.4=pyhd8ed1ab_0
  • rfc3339-validator=0.1.4=pyhd8ed1ab_1
  • rfc3986-validator=0.1.1=pyh9f0ad1d_0
  • rpds-py=0.25.1=py313h4b2b08d_0
  • scalapack=2.2.0=h16fb9de_4
  • scipy=1.15.3=py313h1ea73e7_0
  • scooby=0.10.1=pyhd8ed1ab_0
  • send2trash=1.8.3=pyh0d859eb_1
  • setuptools=80.9.0=pyhff2d567_0
  • six=1.17.0=pyhd8ed1ab_0
  • slepc=3.23.2=real_he05c714_0
  • slepc4py=3.23.1=np2py313hea9341d_0
  • snappy=1.2.1=h8bd8927_1
  • sniffio=1.3.1=pyhd8ed1ab_1
  • soupsieve=2.7=pyhd8ed1ab_0
  • spdlog=1.15.3=h6dc744f_1
  • sqlite=3.50.1=h9eae976_0
  • stack_data=0.6.3=pyhd8ed1ab_1
  • superlu=7.0.1=h8f6e6c4_0
  • superlu_dist=9.1.0=h3349319_0
  • sysroot_linux-64=2.17=h0157908_18
  • tbb=2022.1.0=h4ce085d_0
  • terminado=0.18.1=pyh0d859eb_0
  • tinycss2=1.4.0=pyhd8ed1ab_0
  • tk=8.6.13=noxft_hd72426e_102
  • tomli=2.2.1=pyhd8ed1ab_1
  • tornado=6.5.1=py313h536fd9c_0
  • traitlets=5.14.3=pyhd8ed1ab_1
  • types-python-dateutil=2.9.0.20250516=pyhd8ed1ab_0
  • typing-extensions=4.14.0=h32cad80_0
  • typing_extensions=4.14.0=pyhe01879c_0
  • typing_utils=0.1.0=pyhd8ed1ab_1
  • tzdata=2025b=h78e105d_0
  • ucc=1.4.4=h2b97398_0
  • ucx=1.18.1=h1369271_0
  • uri-template=1.3.0=pyhd8ed1ab_1
  • urllib3=2.4.0=pyhd8ed1ab_0
  • utfcpp=4.0.6=h005c6e1_0
  • vtk-base=9.4.2=py313h6b6eb50_1
  • wayland=1.23.1=h3e06ad9_1
  • wcwidth=0.2.13=pyhd8ed1ab_1
  • webcolors=24.11.1=pyhd8ed1ab_0
  • webencodings=0.5.1=pyhd8ed1ab_3
  • websocket-client=1.8.0=pyhd8ed1ab_1
  • widgetsnbextension=4.0.14=pyhd8ed1ab_0
  • wslink=2.3.4=pyhd8ed1ab_0
  • xarray=2025.6.1=pyhd8ed1ab_1
  • xcb-util=0.4.1=hb711507_2
  • xcb-util-cursor=0.1.5=hb9d3cd8_0
  • xcb-util-image=0.4.0=hb711507_2
  • xcb-util-keysyms=0.4.1=hb711507_0
  • xcb-util-renderutil=0.3.10=hb711507_0
  • xcb-util-wm=0.4.2=hb711507_0
  • xkeyboard-config=2.45=hb9d3cd8_0
  • xorg-libice=1.1.2=hb9d3cd8_0
  • xorg-libsm=1.2.6=he73a12e_0
  • xorg-libx11=1.8.12=h4f16b4b_0
  • xorg-libxau=1.0.12=hb9d3cd8_0
  • xorg-libxcomposite=0.4.6=hb9d3cd8_2
  • xorg-libxcursor=1.2.3=hb9d3cd8_0
  • xorg-libxdamage=1.1.6=hb9d3cd8_0
  • xorg-libxdmcp=1.1.5=hb9d3cd8_0
  • xorg-libxext=1.3.6=hb9d3cd8_0
  • xorg-libxfixes=6.0.1=hb9d3cd8_0
  • xorg-libxi=1.8.2=hb9d3cd8_0
  • xorg-libxmu=1.2.1=hb9d3cd8_1
  • xorg-libxrandr=1.5.4=hb9d3cd8_0
  • xorg-libxrender=0.9.12=hb9d3cd8_0
  • xorg-libxt=1.3.1=hb9d3cd8_0
  • xorg-libxtst=1.2.5=hb9d3cd8_3
  • xorg-libxxf86vm=1.1.6=hb9d3cd8_0
  • yaml=0.2.5=h7f98852_2
  • yarl=1.20.1=py313h8060acc_0
  • zeromq=4.3.5=h3b0a872_7
  • zfp=1.0.1=h5888daf_2
  • zipp=3.23.0=pyhd8ed1ab_0
  • zlib=1.3.1=hb9d3cd8_2
  • zlib-ng=2.2.4=h7955e40_0
  • zstandard=0.23.0=py313h536fd9c_2
  • zstd=1.5.7=hb8e6e7a_2
    prefix: /home/william/anaconda3/envs/fea

So, what I tried was to use a slight modification of this environment (had to comment out - _x86_64-microarch-level=3=2_zen2 as I can’t use that on my system), and run the following environment

name: fea
channels:
  - anaconda
  - conda-forge
  - defaults
dependencies:
  - _libgcc_mutex=0.1=conda_forge
  - _openmp_mutex=4.5=3_kmp_llvm
  # - _x86_64-microarch-level=3=2_zen2
  - aiohappyeyeballs=2.6.1=pyhd8ed1ab_0
  - aiohttp=3.12.13=py313h8060acc_0
  - aiosignal=1.3.2=pyhd8ed1ab_0
  - alsa-lib=1.2.14=hb9d3cd8_0
  - anyio=4.9.0=pyh29332c3_0
  - argon2-cffi=25.1.0=pyhd8ed1ab_0
  - argon2-cffi-bindings=21.2.0=py313h536fd9c_5
  - arrow=1.3.0=pyhd8ed1ab_1
  - asttokens=3.0.0=pyhd8ed1ab_1
  - async-lru=2.0.5=pyh29332c3_0
  - attr=2.5.1=h166bdaf_1
  - attrs=25.3.0=pyh71513ae_0
  - babel=2.17.0=pyhd8ed1ab_0
  - beautifulsoup4=4.13.4=pyha770c72_0
  - binutils_impl_linux-64=2.43=h4bf12b8_5
  - binutils_linux-64=2.43=h4852527_5
  - blas=2.132=openblas
  - blas-devel=3.9.0=32_h1ea3ea9_openblas
  - bleach=6.2.0=pyh29332c3_4
  - bleach-with-css=6.2.0=h82add2a_4
  - blis=0.9.0=h4ab18f5_2
  - blosc=1.21.6=he440d0b_1
  - brotli=1.1.0=hb9d3cd8_3
  - brotli-bin=1.1.0=hb9d3cd8_3
  - brotli-python=1.1.0=py313h46c70d0_3
  - bzip2=1.0.8=h4bc722e_7
  - c-ares=1.34.5=hb9d3cd8_0
  - c-blosc2=2.17.1=h3122c55_0
  - ca-certificates=2025.7.14=hbd8a1cb_0
  - cached-property=1.5.2=hd8ed1ab_1
  - cached_property=1.5.2=pyha770c72_1
  - cairo=1.18.4=h3394656_0
  - certifi=2025.7.14=pyhd8ed1ab_0
  - cffi=1.17.1=py313hfab6e84_0
  - cfgrib=0.9.15.0=pyhd8ed1ab_0
  - charset-normalizer=3.4.2=pyhd8ed1ab_0
  - click=8.2.1=pyh707e725_0
  - comm=0.2.2=pyhd8ed1ab_1
  - contourpy=1.3.2=py313h33d0bda_0
  - cycler=0.12.1=pyhd8ed1ab_1
  - cyrus-sasl=2.1.28=hd9c7081_0
  - dbus=1.16.2=h3c4dab8_0
  - debugpy=1.8.14=py313h46c70d0_0
  - decorator=5.2.1=pyhd8ed1ab_0
  - defusedxml=0.7.1=pyhd8ed1ab_0
  - double-conversion=3.3.1=h5888daf_0
  - eccodes=2.41.0=h5f92351_1
  - exceptiongroup=1.3.0=pyhd8ed1ab_0
  - executing=2.2.0=pyhd8ed1ab_0
  - fenics-basix=0.9.0=py313hc3cfa2d_3
  - fenics-basix-nanobind-abi=0.2.8.14=py310hd825971_3
  - fenics-dolfinx=0.9.0=py313h8b2eb4a_116
  - fenics-ffcx=0.9.0=pyh2e48890_0
  - fenics-libbasix=0.9.0=py313h9a8a8b1_3
  - fenics-libdolfinx=0.9.0=py313hbdcb39c_116
  - fenics-ufcx=0.9.0=hb7f7608_0
  - fenics-ufl=2024.2.0=pyhd8ed1ab_1
  - fftw=3.3.10=mpi_openmpi_h99e62ba_10
  - findlibs=0.0.5=pyhd8ed1ab_0
  - fltk=1.3.10=hff38c0f_0
  - fmt=11.2.0=h07f6e7f_0
  - font-ttf-dejavu-sans-mono=2.37=hab24e00_0
  - font-ttf-inconsolata=3.000=h77eed37_0
  - font-ttf-source-code-pro=2.038=h77eed37_0
  - font-ttf-ubuntu=0.83=h77eed37_3
  - fontconfig=2.15.0=h7e30c49_1
  - fonts-conda-ecosystem=1=0
  - fonts-conda-forge=1=0
  - fonttools=4.58.4=py313h8060acc_0
  - fqdn=1.5.1=pyhd8ed1ab_1
  - freeglut=3.2.2=ha6d2627_3
  - freeimage=3.18.0=h3a85593_22
  - freetype=2.13.3=ha770c72_1
  - frozenlist=1.6.0=py313h61b7b33_0
  - gcc_impl_linux-64=14.3.0=hd9e9e21_3
  - gcc_linux-64=14.3.0=h1382650_11
  - gl2ps=1.4.2=hae5d5c5_1
  - gmp=6.3.0=hac33072_2
  - gmsh=4.13.1=hccb25f3_1
  - graphite2=1.3.14=h5888daf_0
  - h11=0.16.0=pyhd8ed1ab_0
  - h2=4.2.0=pyhd8ed1ab_0
  - harfbuzz=11.2.1=h3beb420_0
  - hdf4=4.2.15=h2a13503_7
  - hdf5=1.14.6=mpi_openmpi_h39ae36c_1
  - hpack=4.1.0=pyhd8ed1ab_0
  - httpcore=1.0.9=pyh29332c3_0
  - httpx=0.28.1=pyhd8ed1ab_0
  - hyperframe=6.1.0=pyhd8ed1ab_0
  - hypre=2.32.0=mpi_openmpi_h398ea61_1
  - icu=75.1=he02047a_0
  - idna=3.10=pyhd8ed1ab_1
  - imath=3.1.12=h7955e40_0
  - importlib-metadata=8.7.0=pyhe01879c_1
  - importlib_resources=6.5.2=pyhd8ed1ab_0
  - ipykernel=6.29.5=pyh3099207_0
  - ipython=9.3.0=pyhfa0c392_0
  - ipython_pygments_lexers=1.1.1=pyhd8ed1ab_0
  - ipywidgets=8.1.7=pyhd8ed1ab_0
  - isoduration=20.11.0=pyhd8ed1ab_1
  - jasper=4.2.5=h1920b20_0
  - jedi=0.19.2=pyhd8ed1ab_1
  - jinja2=3.1.6=pyhd8ed1ab_0
  - json5=0.12.0=pyhd8ed1ab_0
  - jsoncpp=1.9.6=hf42df4d_1
  - jsonpointer=3.0.0=py313h78bf25f_1
  - jsonschema=4.24.0=pyhd8ed1ab_0
  - jsonschema-specifications=2025.4.1=pyh29332c3_0
  - jsonschema-with-format-nongpl=4.24.0=hd8ed1ab_0
  - jupyter=1.1.1=pyhd8ed1ab_1
  - jupyter-lsp=2.2.5=pyhe01879c_2
  - jupyter_client=8.6.3=pyhd8ed1ab_1
  - jupyter_console=6.6.3=pyhd8ed1ab_1
  - jupyter_core=5.8.1=pyh31011fe_0
  - jupyter_events=0.12.0=pyh29332c3_0
  - jupyter_server=2.16.0=pyhe01879c_0
  - jupyter_server_terminals=0.5.3=pyhd8ed1ab_1
  - jupyterlab=4.4.3=pyhd8ed1ab_0
  - jupyterlab_pygments=0.3.0=pyhd8ed1ab_2
  - jupyterlab_server=2.27.3=pyhd8ed1ab_1
  - jupyterlab_widgets=3.0.15=pyhd8ed1ab_0
  - jxrlib=1.1=hd590300_3
  - kahip=3.19=hd8b01d5_0
  - kernel-headers_linux-64=3.10.0=he073ed8_18
  - keyutils=1.6.1=h166bdaf_0
  - kiwisolver=1.4.7=py313h33d0bda_0
  - krb5=1.21.3=h659f571_0
  - lcms2=2.17=h717163a_0
  - ld_impl_linux-64=2.43=h712a8e2_5
  - lerc=4.0.0=h0aef613_1
  - libadios2=2.10.2=mpi_openmpi_ha4e058c_6
  - libaec=1.1.4=h3f801dc_0
  - libamd=3.3.3=haaf9dc3_7100102
  - libblas=3.9.0=32_h59b9bed_openblas
  - libboost=1.86.0=h6c02f8c_3
  - libboost-devel=1.86.0=h1a2810e_3
  - libboost-headers=1.86.0=ha770c72_3
  - libbrotlicommon=1.1.0=hb9d3cd8_3
  - libbrotlidec=1.1.0=hb9d3cd8_3
  - libbrotlienc=1.1.0=hb9d3cd8_3
  - libbtf=2.3.2=h32481e8_7100102
  - libcamd=3.3.3=h32481e8_7100102
  - libcap=2.75=h39aace5_0
  - libcblas=3.9.0=32_he106b2a_openblas
  - libccolamd=3.3.4=h32481e8_7100102
  - libcholmod=5.3.1=h59ddab4_7100102
  - libclang-cpp20.1=20.1.7=default_h1df26ce_0
  - libclang13=20.1.7=default_he06ed0a_0
  - libcolamd=3.3.4=h32481e8_7100102
  - libcups=2.3.3=hb8b1518_5
  - libcurl=8.14.1=h332b0f4_0
  - libdeflate=1.24=h86f0d12_0
  - libdrm=2.4.125=hb9d3cd8_0
  - libedit=3.1.20250104=pl5321h7949ede_0
  - libegl=1.7.0=ha4b6fd6_2
  - libev=4.33=hd590300_2
  - libevent=2.1.12=hf998b51_1
  - libexpat=2.7.0=h5888daf_0
  - libfabric=2.1.0=ha770c72_1
  - libfabric1=2.1.0=hf45584d_1
  - libffi=3.4.6=h2dba641_1
  - libfreetype=2.13.3=ha770c72_1
  - libfreetype6=2.13.3=h48d6fc4_1
  - libgcc=15.1.0=h767d61c_2
  - libgcc-devel_linux-64=14.3.0=h85bb3a7_103
  - libgcc-ng=15.1.0=h69a702a_2
  - libgcrypt-lib=1.11.1=hb9d3cd8_0
  - libgfortran=15.1.0=h69a702a_2
  - libgfortran-ng=15.1.0=h69a702a_2
  - libgfortran5=15.1.0=hcea5267_2
  - libgl=1.7.0=ha4b6fd6_2
  - libglib=2.84.2=h3618099_0
  - libglu=9.0.3=h5888daf_1
  - libglvnd=1.7.0=ha4b6fd6_2
  - libglx=1.7.0=ha4b6fd6_2
  - libgomp=15.1.0=h767d61c_2
  - libgpg-error=1.55=h3f2d84a_0
  - libhwloc=2.11.2=default_h0d58e46_1001
  - libiconv=1.18=h4ce23a2_1
  - libjpeg-turbo=3.1.0=hb9d3cd8_0
  - libklu=2.3.5=hf24d653_7100102
  - liblapack=3.9.0=32_h7ac8fdf_openblas
  - liblapacke=3.9.0=32_he2f377e_openblas
  - libllvm20=20.1.7=he9d0ab4_0
  - liblzma=5.8.1=hb9d3cd8_2
  - libmpdec=4.0.0=hb9d3cd8_0
  - libnetcdf=4.9.2=nompi_h0134ee8_117
  - libnghttp2=1.64.0=h161d5f1_0
  - libnl=3.11.0=hb9d3cd8_0
  - libntlm=1.8=hb9d3cd8_0
  - libogg=1.3.5=hd0c01bc_1
  - libopenblas=0.3.30=openmp_hd680484_0
  - libopengl=1.7.0=ha4b6fd6_2
  - libpciaccess=0.18=hb9d3cd8_0
  - libpmix=5.0.8=h658e747_0
  - libpng=1.6.47=h943b412_0
  - libpq=17.5=h27ae623_0
  - libptscotch=7.0.6=h7e1c861_1
  - libraw=0.21.4=h9969a89_0
  - libsanitizer=14.3.0=hd08acf3_3
  - libscotch=7.0.6=hd4c538f_1
  - libsodium=1.0.20=h4ab18f5_0
  - libspqr=4.3.4=h852d39f_7100102
  - libsqlite=3.50.1=hee588c1_0
  - libssh2=1.11.1=hcf80075_0
  - libstdcxx=15.1.0=h8f9b012_2
  - libstdcxx-ng=15.1.0=h4852527_2
  - libsuitesparseconfig=7.10.1=h92d6892_7100102
  - libsystemd0=257.6=h4e0b6ca_0
  - libtheora=1.1.1=h4ab18f5_1006
  - libtiff=4.7.0=hf01ce69_5
  - libudev1=257.6=hbe16f8c_0
  - libumfpack=6.3.5=heb53515_7100102
  - libuuid=2.38.1=h0b41bf4_0
  - libvorbis=1.3.7=h9c3ff4c_0
  - libwebp-base=1.5.0=h851e524_0
  - libxcb=1.17.0=h8a09558_0
  - libxcrypt=4.4.36=hd590300_1
  - libxkbcommon=1.10.0=h65c71a3_0
  - libxml2=2.13.8=h4bc477f_0
  - libxslt=1.1.39=h76b75d6_0
  - libzip=1.11.2=h6991a6a_0
  - libzlib=1.3.1=hb9d3cd8_2
  - llvm-openmp=20.1.7=h024ca30_0
  - loguru=0.7.3=pyh707e725_0
  - lz4-c=1.10.0=h5888daf_1
  - markupsafe=3.0.2=py313h8060acc_1
  - matplotlib=3.10.3=py313h78bf25f_0
  - matplotlib-base=3.10.3=py313h129903b_0
  - matplotlib-inline=0.1.7=pyhd8ed1ab_1
  - metis=5.1.0=hd0bcaf9_1007
  - mistune=3.1.3=pyh29332c3_0
  - mpi=1.0=openmpi
  - mpi4py=4.1.0=py313hf81da11_100
  - msgpack-python=1.1.1=py313h33d0bda_0
  - multidict=6.5.0=py313h8060acc_0
  - mumps-include=5.7.3=hd53efc5_10
  - mumps-mpi=5.7.3=h85c5be4_10
  - munkres=1.1.4=pyhd8ed1ab_1
  - nbclient=0.10.2=pyhd8ed1ab_0
  - nbconvert-core=7.16.6=pyh29332c3_0
  - nbformat=5.10.4=pyhd8ed1ab_1
  - ncurses=6.5=h2d0b736_3
  - nest-asyncio=1.6.0=pyhd8ed1ab_1
  - nlohmann_json=3.12.0=h3f2d84a_0
  - notebook=7.4.3=pyhd8ed1ab_0
  - notebook-shim=0.2.4=pyhd8ed1ab_1
  - numpy=2.3.0=py313h17eae1a_0
  - occt=7.8.1=novtk_he2768ca_103
  - openblas=0.3.30=openmp_hd77311e_0
  - openexr=3.3.4=h2cd1444_0
  - openjpeg=2.5.3=h5fbd93e_0
  - openldap=2.6.10=he970967_0
  - openmpi=5.0.8=h41ff47f_100
  - openssl=3.5.1=h7b32b05_0
  - overrides=7.7.0=pyhd8ed1ab_1
  - packaging=25.0=pyh29332c3_1
  - pandas=2.3.0=py313ha87cce1_0
  - pandocfilters=1.5.0=pyhd8ed1ab_0
  - parmetis=4.0.3=h02de7a9_1007
  - parso=0.8.4=pyhd8ed1ab_1
  - pcre2=10.45=hc749103_0
  - petsc=3.23.4=real_h0df0b33_0
  - petsc4py=3.23.3=np2py313h27975fa_0
  - pexpect=4.9.0=pyhd8ed1ab_1
  - pickleshare=0.7.5=pyhd8ed1ab_1004
  - pillow=11.2.1=py313h8db990d_0
  - pip=25.1.1=pyh145f28c_0
  - pixman=0.46.2=h29eaf8c_0
  - pkg-config=0.29.2=h4bc722e_1009
  - pkgutil-resolve-name=1.3.10=pyhd8ed1ab_2
  - platformdirs=4.3.8=pyhe01879c_0
  - pooch=1.8.2=pyhd8ed1ab_1
  - proj=9.6.2=h0054346_0
  - prometheus_client=0.22.1=pyhd8ed1ab_0
  - prompt-toolkit=3.0.51=pyha770c72_0
  - prompt_toolkit=3.0.51=hd8ed1ab_0
  - propcache=0.3.1=py313h8060acc_0
  - psutil=7.0.0=py313h536fd9c_0
  - pthread-stubs=0.4=hb9d3cd8_1002
  - ptyprocess=0.7.0=pyhd8ed1ab_1
  - pugixml=1.15=h3f63f65_0
  - pure_eval=0.2.3=pyhd8ed1ab_1
  - pycparser=2.22=pyh29332c3_1
  - pygments=2.19.1=pyhd8ed1ab_0
  - pyparsing=3.2.3=pyhd8ed1ab_1
  - pyside6=6.9.1=py313h7dabd7a_0
  - pysocks=1.7.1=pyha55dd90_7
  - python=3.13.5=hf636f53_101_cp313
  - python-dateutil=2.9.0.post0=pyhff2d567_1
  - python-eccodes=2.37.0=py313ha014f3b_0
  - python-fastjsonschema=2.21.1=pyhd8ed1ab_0
  - python-gmsh=4.13.1=h57928b3_1
  - python-json-logger=2.0.7=pyhd8ed1ab_0
  - python-tzdata=2025.2=pyhd8ed1ab_0
  - python_abi=3.13=7_cp313
  - pytz=2025.2=pyhd8ed1ab_0
  - pyvista=0.45.3=pyhd8ed1ab_0
  - pyyaml=6.0.2=py313h8060acc_2
  - pyzmq=27.0.0=py313h8e95178_0
  - qhull=2020.2=h434a139_5
  - qt6-main=6.9.1=h0384650_0
  - rapidjson=1.1.0.post20240409=h3f2d84a_2
  - rdma-core=57.0=h5888daf_0
  - readline=8.2=h8c095d6_2
  - referencing=0.36.2=pyh29332c3_0
  - requests=2.32.4=pyhd8ed1ab_0
  - rfc3339-validator=0.1.4=pyhd8ed1ab_1
  - rfc3986-validator=0.1.1=pyh9f0ad1d_0
  - rpds-py=0.25.1=py313h4b2b08d_0
  - scalapack=2.2.0=h16fb9de_4
  - scipy=1.15.3=py313h1ea73e7_0
  - scooby=0.10.1=pyhd8ed1ab_0
  - send2trash=1.8.3=pyh0d859eb_1
  - setuptools=80.9.0=pyhff2d567_0
  - six=1.17.0=pyhd8ed1ab_0
  - slepc=3.23.2=real_he05c714_0
  - slepc4py=3.23.1=np2py313hea9341d_0
  - snappy=1.2.1=h8bd8927_1
  - sniffio=1.3.1=pyhd8ed1ab_1
  - soupsieve=2.7=pyhd8ed1ab_0
  - spdlog=1.15.3=h6dc744f_1
  - sqlite=3.50.1=h9eae976_0
  - stack_data=0.6.3=pyhd8ed1ab_1
  - superlu=7.0.1=h8f6e6c4_0
  - superlu_dist=9.1.0=h3349319_0
  - sysroot_linux-64=2.17=h0157908_18
  - tbb=2022.1.0=h4ce085d_0
  - terminado=0.18.1=pyh0d859eb_0
  - tinycss2=1.4.0=pyhd8ed1ab_0
  - tk=8.6.13=noxft_hd72426e_102
  - tomli=2.2.1=pyhd8ed1ab_1
  - tornado=6.5.1=py313h536fd9c_0
  - traitlets=5.14.3=pyhd8ed1ab_1
  - types-python-dateutil=2.9.0.20250516=pyhd8ed1ab_0
  - typing-extensions=4.14.0=h32cad80_0
  - typing_extensions=4.14.0=pyhe01879c_0
  - typing_utils=0.1.0=pyhd8ed1ab_1
  - tzdata=2025b=h78e105d_0
  - ucc=1.4.4=h2b97398_0
  - ucx=1.18.1=h1369271_0
  - uri-template=1.3.0=pyhd8ed1ab_1
  - urllib3=2.4.0=pyhd8ed1ab_0
  - utfcpp=4.0.6=h005c6e1_0
  - vtk-base=9.4.2=py313h6b6eb50_1
  - wayland=1.23.1=h3e06ad9_1
  - wcwidth=0.2.13=pyhd8ed1ab_1
  - webcolors=24.11.1=pyhd8ed1ab_0
  - webencodings=0.5.1=pyhd8ed1ab_3
  - websocket-client=1.8.0=pyhd8ed1ab_1
  - widgetsnbextension=4.0.14=pyhd8ed1ab_0
  - wslink=2.3.4=pyhd8ed1ab_0
  - xarray=2025.6.1=pyhd8ed1ab_1
  - xcb-util=0.4.1=hb711507_2
  - xcb-util-cursor=0.1.5=hb9d3cd8_0
  - xcb-util-image=0.4.0=hb711507_2
  - xcb-util-keysyms=0.4.1=hb711507_0
  - xcb-util-renderutil=0.3.10=hb711507_0
  - xcb-util-wm=0.4.2=hb711507_0
  - xkeyboard-config=2.45=hb9d3cd8_0
  - xorg-libice=1.1.2=hb9d3cd8_0
  - xorg-libsm=1.2.6=he73a12e_0
  - xorg-libx11=1.8.12=h4f16b4b_0
  - xorg-libxau=1.0.12=hb9d3cd8_0
  - xorg-libxcomposite=0.4.6=hb9d3cd8_2
  - xorg-libxcursor=1.2.3=hb9d3cd8_0
  - xorg-libxdamage=1.1.6=hb9d3cd8_0
  - xorg-libxdmcp=1.1.5=hb9d3cd8_0
  - xorg-libxext=1.3.6=hb9d3cd8_0
  - xorg-libxfixes=6.0.1=hb9d3cd8_0
  - xorg-libxi=1.8.2=hb9d3cd8_0
  - xorg-libxmu=1.2.1=hb9d3cd8_1
  - xorg-libxrandr=1.5.4=hb9d3cd8_0
  - xorg-libxrender=0.9.12=hb9d3cd8_0
  - xorg-libxt=1.3.1=hb9d3cd8_0
  - xorg-libxtst=1.2.5=hb9d3cd8_3
  - xorg-libxxf86vm=1.1.6=hb9d3cd8_0
  - yaml=0.2.5=h7f98852_2
  - yarl=1.20.1=py313h8060acc_0
  - zeromq=4.3.5=h3b0a872_7
  - zfp=1.0.1=h5888daf_2
  - zipp=3.23.0=pyhd8ed1ab_0
  - zlib=1.3.1=hb9d3cd8_2
  - zlib-ng=2.2.4=h7955e40_0
  - zstandard=0.23.0=py313h536fd9c_2
  - zstd=1.5.7=hb8e6e7a_2

and then ran:

https://raw.githubusercontent.com/FEniCS/dolfinx/refs/tags/v0.9.0/python/demo/demo_poisson.py

which resulted in:

Traceback (most recent call last):
  File "/home/dokken/Documents/debug/test_cond/test_dolfinx.py", line 163, in <module>
    uh = problem.solve()
  File "/home/dokken/miniforge3/envs/fea/lib/python3.13/site-packages/dolfinx/fem/petsc.py", line 841, in solve
    assemble_matrix_mat(self._A, self._a, bcs=self.bcs)
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/dokken/miniforge3/envs/fea/lib/python3.13/site-packages/dolfinx/fem/petsc.py", line 466, in assemble_matrix_mat
    _cpp.fem.petsc.assemble_matrix(A, a._cpp_object, constants, coeffs, _bcs)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: assemble_matrix(): incompatible function arguments. The following argument types are supported:
    1. assemble_matrix(A: mat, a: dolfinx.cpp.fem.Form_float64, constants: ndarray[dtype=float64, shape=(*), order='C', writable=False], coeffs: collections.abc.Mapping[tuple[dolfinx.cpp.fem.IntegralType, int], ndarray[dtype=float64, shape=(*, *), order='C', writable=False]], bcs: collections.abc.Sequence[dolfinx.cpp.fem.DirichletBC_float64], unrolled: bool = False) -> None
    2. assemble_matrix(A: mat, a: dolfinx.cpp.fem.Form_float64, constants: ndarray[dtype=float64, shape=(*), order='C', writable=False], coeffs: collections.abc.Mapping[tuple[dolfinx.cpp.fem.IntegralType, int], ndarray[dtype=float64, shape=(*, *), order='C', writable=False]], rows0: ndarray[dtype=int8, shape=(*), order='C', writable=False], rows1: ndarray[dtype=int8, shape=(*), order='C', writable=False], unrolled: bool = False) -> None

Invoked with types: Mat, dolfinx.cpp.fem.Form_float64, ndarray, dict, list

To me, this seems like something is messed up with the dolfinx.fem.petsc bindings for this particular configuration. That usually relates to nanobind. The reason I am stating this is that by calling dolfinx.fem.assemble_matrix(dolfinx.fem.form(a)) I do not get an error, while using dolfinx.fem.petsc.assemble_matrix(dolfinx.fem.form(a)) I do.

1 Like

Further, running the following on my machine:

name: fea
channels:
  - conda-forge
  - defaults
dependencies:
  - fenics-dolfinx
  - cartopy
  - python=3.13
  - openmpi

results in a working environment with the following specs

name: fea
channels:
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=conda_forge
  - _openmp_mutex=4.5=2_gnu
  - _x86_64-microarch-level=3=2_skylake
  - attr=2.5.1=h166bdaf_1
  - binutils_impl_linux-64=2.44=h4bf12b8_1
  - binutils_linux-64=2.44=h4852527_1
  - blis=0.9.0=h4ab18f5_2
  - brotli=1.1.0=hb9d3cd8_3
  - brotli-bin=1.1.0=hb9d3cd8_3
  - bzip2=1.0.8=h4bc722e_7
  - c-ares=1.34.5=hb9d3cd8_0
  - c-blosc2=2.19.1=h4cfbee9_0
  - ca-certificates=2025.7.14=hbd8a1cb_0
  - cartopy=0.24.0=py313ha87cce1_0
  - certifi=2025.7.14=pyhd8ed1ab_0
  - cffi=1.17.1=py313hfab6e84_0
  - contourpy=1.3.3=py313h7037e92_0
  - cycler=0.12.1=pyhd8ed1ab_1
  - fenics-basix=0.9.0=py313hc3cfa2d_3
  - fenics-basix-nanobind-abi=0.2.8.14=py310hd825971_3
  - fenics-dolfinx=0.9.0=py313h0e47a0f_117
  - fenics-ffcx=0.9.0=pyh2e48890_0
  - fenics-libbasix=0.9.0=py313h9a8a8b1_3
  - fenics-libdolfinx=0.9.0=py313h0fbdba2_117
  - fenics-ufcx=0.9.0=hb7f7608_0
  - fenics-ufl=2024.2.0=pyhd8ed1ab_1
  - fftw=3.3.10=mpi_openmpi_h99e62ba_10
  - fmt=11.2.0=h07f6e7f_0
  - fonttools=4.59.0=py313h3dea7bd_0
  - freetype=2.13.3=ha770c72_1
  - gcc_impl_linux-64=14.3.0=hd9e9e21_4
  - gcc_linux-64=14.3.0=h1382650_11
  - geos=3.13.1=h97f6797_0
  - hdf5=1.14.6=mpi_openmpi_h4fb29d0_3
  - hypre=2.32.0=mpi_openmpi_h398ea61_1
  - icu=75.1=he02047a_0
  - kahip=3.19=hd8b01d5_0
  - kernel-headers_linux-64=5.14.0=he073ed8_2
  - keyutils=1.6.1=h166bdaf_0
  - kiwisolver=1.4.8=py313h33d0bda_1
  - krb5=1.21.3=h659f571_0
  - lcms2=2.17=h717163a_0
  - ld_impl_linux-64=2.44=h1423503_1
  - lerc=4.0.0=h0aef613_1
  - libadios2=2.10.2=mpi_openmpi_h801f7d9_8
  - libaec=1.1.4=h3f801dc_0
  - libamd=3.3.3=haaf9dc3_7100102
  - libblas=3.9.0=32_h66dfbfd_blis
  - libboost=1.88.0=h6c02f8c_0
  - libboost-devel=1.88.0=h1a2810e_0
  - libboost-headers=1.88.0=ha770c72_0
  - libbrotlicommon=1.1.0=hb9d3cd8_3
  - libbrotlidec=1.1.0=hb9d3cd8_3
  - libbrotlienc=1.1.0=hb9d3cd8_3
  - libbtf=2.3.2=h32481e8_7100102
  - libcamd=3.3.3=h32481e8_7100102
  - libcap=2.75=h39aace5_0
  - libcblas=3.9.0=32_hba4ea11_blis
  - libccolamd=3.3.4=h32481e8_7100102
  - libcholmod=5.3.1=h59ddab4_7100102
  - libcolamd=3.3.4=h32481e8_7100102
  - libcurl=8.14.1=h332b0f4_0
  - libdeflate=1.24=h86f0d12_0
  - libedit=3.1.20250104=pl5321h7949ede_0
  - libev=4.33=hd590300_2
  - libevent=2.1.12=hf998b51_1
  - libexpat=2.7.1=hecca717_0
  - libfabric=2.2.0=ha770c72_1
  - libfabric1=2.2.0=h47b3337_1
  - libffi=3.4.6=h2dba641_1
  - libfreetype=2.13.3=ha770c72_1
  - libfreetype6=2.13.3=h48d6fc4_1
  - libgcc=15.1.0=h767d61c_4
  - libgcc-devel_linux-64=14.3.0=h85bb3a7_104
  - libgcc-ng=15.1.0=h69a702a_4
  - libgcrypt-lib=1.11.1=hb9d3cd8_0
  - libgfortran=15.1.0=h69a702a_4
  - libgfortran-ng=15.1.0=h69a702a_4
  - libgfortran5=15.1.0=hcea5267_4
  - libgomp=15.1.0=h767d61c_4
  - libgpg-error=1.55=h3f2d84a_0
  - libhwloc=2.11.2=default_h3d81e11_1002
  - libiconv=1.18=h4ce23a2_1
  - libjpeg-turbo=3.1.0=hb9d3cd8_0
  - libklu=2.3.5=hf24d653_7100102
  - liblapack=3.9.0=12_hd37a5e2_netlib
  - liblzma=5.8.1=hb9d3cd8_2
  - libmpdec=4.0.0=hb9d3cd8_0
  - libnghttp2=1.64.0=h161d5f1_0
  - libnl=3.11.0=hb9d3cd8_0
  - libpmix=5.0.8=h658e747_0
  - libpng=1.6.50=h421ea60_1
  - libptscotch=7.0.6=h7e1c861_1
  - libsanitizer=14.3.0=hd08acf3_4
  - libscotch=7.0.6=hd4c538f_1
  - libsodium=1.0.20=h4ab18f5_0
  - libspqr=4.3.4=h852d39f_7100102
  - libsqlite=3.50.3=hee844dc_1
  - libssh2=1.11.1=hcf80075_0
  - libstdcxx=15.1.0=h8f9b012_4
  - libstdcxx-ng=15.1.0=h4852527_4
  - libsuitesparseconfig=7.10.1=h92d6892_7100102
  - libsystemd0=257.7=h4e0b6ca_0
  - libtiff=4.7.0=hf01ce69_5
  - libudev1=257.7=hbe16f8c_0
  - libumfpack=6.3.5=heb53515_7100102
  - libuuid=2.38.1=h0b41bf4_0
  - libwebp-base=1.6.0=hd42ef1d_0
  - libxcb=1.17.0=h8a09558_0
  - libxml2=2.13.8=h4bc477f_0
  - libzlib=1.3.1=hb9d3cd8_2
  - lz4-c=1.10.0=h5888daf_1
  - matplotlib-base=3.10.3=py313h129903b_0
  - metis=5.1.0=hd0bcaf9_1007
  - mpi=1.0=openmpi
  - mpi4py=4.1.0=py313hf81da11_100
  - mumps-include=5.7.3=hd53efc5_10
  - mumps-mpi=5.7.3=h85c5be4_10
  - munkres=1.1.4=pyhd8ed1ab_1
  - ncurses=6.5=h2d0b736_3
  - numpy=2.3.2=py313hf6604e3_0
  - openjpeg=2.5.3=h5fbd93e_0
  - openmpi=5.0.8=h41ff47f_100
  - openssl=3.5.1=h7b32b05_0
  - packaging=25.0=pyh29332c3_1
  - parmetis=4.0.3=h02de7a9_1007
  - petsc=3.23.4=real_h0df0b33_0
  - petsc4py=3.23.4=np2py313h27975fa_0
  - pillow=11.3.0=py313h8db990d_0
  - pip=25.2=pyh145f28c_0
  - pkg-config=0.29.2=h4bc722e_1009
  - proj=9.6.2=h18fbb6c_1
  - pthread-stubs=0.4=hb9d3cd8_1002
  - pugixml=1.15=h3f63f65_0
  - pycparser=2.22=pyh29332c3_1
  - pyparsing=3.2.3=pyhe01879c_2
  - pyproj=3.7.1=py313hcd509b5_1
  - pyshp=2.4.1=pyhd8ed1ab_0
  - python=3.13.5=hec9711d_102_cp313
  - python-dateutil=2.9.0.post0=pyhe01879c_2
  - python_abi=3.13=8_cp313
  - qhull=2020.2=h434a139_5
  - rdma-core=58.0=h5888daf_0
  - readline=8.2=h8c095d6_2
  - scalapack=2.2.0=h16fb9de_4
  - setuptools=80.9.0=pyhff2d567_0
  - shapely=2.1.1=py313h576e190_0
  - six=1.17.0=pyhe01879c_1
  - slepc=3.23.2=real_he05c714_0
  - slepc4py=3.23.2=np2py313hea9341d_0
  - spdlog=1.15.3=h6dc744f_1
  - sqlite=3.50.3=heff268d_1
  - superlu=7.0.1=h8f6e6c4_0
  - superlu_dist=9.1.0=h3349319_0
  - sysroot_linux-64=2.34=h087de78_2
  - tk=8.6.13=noxft_hd72426e_102
  - tzdata=2025b=h78e105d_0
  - ucc=1.4.4=h85763d7_1
  - ucx=1.18.1=h990bcc0_2
  - xorg-libxau=1.0.12=hb9d3cd8_0
  - xorg-libxdmcp=1.1.5=hb9d3cd8_0
  - yaml=0.2.5=h280c20c_3
  - zeromq=4.3.5=h3b0a872_7
  - zfp=1.0.1=h5888daf_2
  - zlib-ng=2.2.4=h7955e40_0
  - zstd=1.5.7=hb8e6e7a_2
prefix: /home/dokken/miniforge3/envs/fea

I’m confused on what exactly you did. You said you ran something on your end; did you open the environment .yml file and edit it, or what exactly was done? I’m not very tech savvy.

For the environment files above, give them a distinct name, and try to run

conda env create -f name_of_file.yml

This will create the environment corresponding to the specification in the file.

The general suspicion for your issue has to do with the PETSc version which differs between my working and broken installation.

i will try this when I’m at a computer again.

1 Like