TypeError: __init__(): incompatible function arguments. [...]

Hi everyone!

I am using the following conda env:

name: test_env
channels:
  - conda-forge
  - defaults
  - anaconda

variables:
  PYTHONNOUSERSITE: '1'
  LANG: 'C'
  LC_ALL: 'C'
  LC_NUMERIC: 'C'
  PYTHONIOENCODING: 'utf-8'

dependencies:
  - python 3.11
  - fenics-dolfinx 0.8.0
  - mpich 4.2.1
  - pyvista 0.39.0
  - gmsh 4.11.1
  - python-gmsh 4.11.1
  - numpy=1.24.3
  - scipy 1.10.1
  - matplotlib 3.7.1
  - pyqt 5.15.7
  - flake8 6.0.0
  - black 23.3.0
  - sphinx 7.0.1
  - sphinx-gallery 0.13.0
  - pytest 7.3.1
  - jupyter 1.0.0
  - trame 2.3.2
  - tqdm 4.65.0
  - backports.tempfile 1.0
  - treelib 1.6.4
  - meshio 5.3.4
  - shapely 2.0.1
  - numba 0.58.1

I should mention that I installed and used this environment until very recently without any problems. Today, I also tried to run this simple script:

import gmsh
from dolfinx.io.gmshio import model_to_mesh
from mpi4py import MPI
import numpy as np

GDIM = 2
MODEL_RANK = 0
MESH_COMM = MPI.COMM_WORLD

ri = 0.01  # Inner radius of wire
rc = 5  # Outer radius of wire
R = 100  # Radius of domain
nwire = 20  # number of wire divisions
lwire = 0.1  # mesh characteristic length for each segment
nenclo = 20  # number of external enclosure divisions
lenclo = 1  # mesh characteristic length for each segment

# create enclosure points (D-shape)
theta1 = np.linspace(np.pi / 2, -np.pi / 2, nenclo)
xenclo = R * np.cos(theta1)
yenclo = R * np.sin(theta1)

# create wire points (circular cross-section)
theta2 = np.linspace(0, 2 * np.pi, nwire)
xwire = rc + ri * np.cos(theta1)
ywire = ri * np.sin(theta1)

gmsh.initialize()

enclo_pts = []
enclo_lns = []
for i, (r, z) in enumerate(zip(xenclo, yenclo)):
    enclo_pts.append(gmsh.model.occ.addPoint(r, z, 0.0, lenclo))
    if i > 0:
        enclo_lns.append(gmsh.model.occ.addLine(enclo_pts[i - 1], enclo_pts[i]))
enclo_lns.append(gmsh.model.occ.addLine(enclo_pts[-1], enclo_pts[0]))

wire_pts = []
wire_lns = []
for i, (r, z) in enumerate(zip(xwire, ywire)):
    wire_pts.append(gmsh.model.occ.addPoint(r, z, 0.0, lenclo))
    if i > 0:
        wire_lns.append(gmsh.model.occ.addLine(wire_pts[i - 1], wire_pts[i]))
wire_lns.append(gmsh.model.occ.addLine(wire_pts[-1], wire_pts[0]))

gmsh.model.occ.addCurveLoop(enclo_lns, 0)
gmsh.model.occ.addCurveLoop(wire_lns, 1)
gmsh.model.occ.addPlaneSurface([1], 1)
gmsh.model.occ.addPlaneSurface([0, 1], 0)
gmsh.model.occ.synchronize()

gmsh.model.addPhysicalGroup(GDIM, [0], 0)
gmsh.model.addPhysicalGroup(GDIM, [1], 1)

# mesh generation options
gmsh.option.setNumber("Mesh.Algorithm", 2)
gmsh.option.setNumber("Mesh.CharacteristicLengthMin", lwire)
gmsh.option.setNumber("Mesh.CharacteristicLengthMax", lenclo)

# generate 2D mesh
gmsh.model.mesh.set_order(1)
gmsh.model.mesh.generate(GDIM)
gmsh.model.mesh.optimize("Netgen")

mesh, ct, ft = model_to_mesh(gmsh.model, MESH_COMM, MODEL_RANK, GDIM)

gmsh.finalize()

I get the following errors:

Traceback (most recent call last):
  File "/home/mnotazio/mambaforge/envs/test_env/lib/python3.11/site-packages/dolfinx/fem/element.py", line 91, in _
    return CoordinateElement(_cpp.fem.CoordinateElement_float32(e._e))
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: __init__(): incompatible function arguments. The following argument types are supported:
    1. __init__(self, celltype: dolfinx.cpp.mesh.CellType, degree: int) -> None
    2. __init__(self, element: basix::FiniteElement<float>) -> None
    3. __init__(self, celltype: dolfinx.cpp.mesh.CellType, degree: int, variant: int) -> None

Invoked with types: dolfinx.cpp.fem.CoordinateElement_float32, basix._basixcpp.FiniteElement_float64

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/mnotazio/PhD/pecan/git_local/pecan/mattenotazio/example_mesh.py", line 65, in <module>
    mesh, ct, ft = model_to_mesh(gmsh.model, MESH_COMM, MODEL_RANK, GDIM)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mnotazio/mambaforge/envs/test_env/lib/python3.11/site-packages/dolfinx/io/gmshio.py", line 293, in model_to_mesh
    mesh = create_mesh(comm, cells, x[:, :gdim].astype(dtype, copy=False), ufl_domain, partitioner)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mnotazio/mambaforge/envs/test_env/lib/python3.11/site-packages/dolfinx/mesh.py", line 407, in create_mesh
    cmap = _coordinate_element(e_ufl.basix_element)  # type: ignore
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mnotazio/mambaforge/envs/test_env/lib/python3.11/functools.py", line 909, in wrapper
    return dispatch(args[0].__class__)(*args, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mnotazio/mambaforge/envs/test_env/lib/python3.11/site-packages/dolfinx/fem/element.py", line 93, in _
    return CoordinateElement(_cpp.fem.CoordinateElement_float64(e._e))
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: __init__(): incompatible function arguments. The following argument types are supported:
    1. __init__(self, celltype: dolfinx.cpp.mesh.CellType, degree: int) -> None
    2. __init__(self, element: basix::FiniteElement<double>) -> None
    3. __init__(self, celltype: dolfinx.cpp.mesh.CellType, degree: int, variant: int) -> None

Invoked with types: dolfinx.cpp.fem.CoordinateElement_float64, basix._basixcpp.FiniteElement_float64

Is anyone able to help me? Thank you in advance

Those sort of errors typically happens if you upgrade nanobind to a version which is different from the one used when building dolfinx, e.g. via pip or because some other conda package required a newer nanobind version. Did you possibly do that at some point in recent time?

Thank you very much for your prompt reply.
To my knowledge, I have not done any nanobind upgrades. Incidentally, this problem is also encountered on two other PCs, also without having done any nanobind upgrades.

In contrary, looking through the various conda env packages, nanobind is not even present. Is this normal? I apologise in advance in case I’m talking nonsense.

It may be something else then, cc @minrk

This is almost certainly the mismatch in nanobind abi for basix and dolfinx. What matters is the version of nanobind and the c compiler at build time of those packages, not your environment, so it can be hard to tell. Can you share conda env export? I thought I had fixed this, so it shouldn’t happen for fresh installs, but if you share your environment I’ll see if I missed something.

Thank you @minrk for the reply.

Here is the conda env export for my env:

name: test_env
channels:
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=conda_forge
  - _openmp_mutex=4.5=2_gnu
  - _sysroot_linux-64_curr_repodata_hack=3=h69a702a_16
  - aiohappyeyeballs=2.4.0=pyhd8ed1ab_0
  - aiohttp=3.10.5=py311h9ecbd09_1
  - aiosignal=1.3.1=pyhd8ed1ab_0
  - alabaster=0.7.16=pyhd8ed1ab_0
  - alsa-lib=1.2.12=h4ab18f5_0
  - anyio=4.6.0=pyhd8ed1ab_1
  - aom=3.9.1=hac33072_0
  - argon2-cffi=23.1.0=pyhd8ed1ab_0
  - argon2-cffi-bindings=21.2.0=py311h9ecbd09_5
  - arrow=1.3.0=pyhd8ed1ab_0
  - asttokens=2.4.1=pyhd8ed1ab_0
  - async-lru=2.0.4=pyhd8ed1ab_0
  - attr=2.5.1=h166bdaf_1
  - attrs=24.2.0=pyh71513ae_0
  - babel=2.14.0=pyhd8ed1ab_0
  - backports=1.0=pyhd8ed1ab_4
  - backports.tempfile=1.0=py_0
  - backports.weakref=1.0.post1=pyhd8ed1ab_1003
  - beautifulsoup4=4.12.3=pyha770c72_0
  - binutils_impl_linux-64=2.40=ha1999f0_7
  - binutils_linux-64=2.40=hb3c18ed_3
  - black=23.3.0=py311h38be061_1
  - bleach=6.1.0=pyhd8ed1ab_0
  - blosc=1.21.6=hef167b5_0
  - brotli=1.1.0=hb9d3cd8_2
  - brotli-bin=1.1.0=hb9d3cd8_2
  - brotli-python=1.1.0=py311hfdbb021_2
  - bzip2=1.0.8=h4bc722e_7
  - c-ares=1.33.1=heb4867d_0
  - c-blosc2=2.14.4=hb4ffafa_1
  - ca-certificates=2024.8.30=hbcca054_0
  - cached-property=1.5.2=hd8ed1ab_1
  - cached_property=1.5.2=pyha770c72_1
  - cairo=1.18.0=hebfffa5_3
  - certifi=2024.8.30=pyhd8ed1ab_0
  - cffi=1.17.1=py311hf29c0ef_0
  - cftime=1.6.4=py311h9f3472d_1
  - charset-normalizer=3.3.2=pyhd8ed1ab_0
  - click=8.1.7=unix_pyh707e725_0
  - colorama=0.4.6=pyhd8ed1ab_0
  - comm=0.2.2=pyhd8ed1ab_0
  - contourpy=1.3.0=py311hd18a35c_1
  - cycler=0.12.1=pyhd8ed1ab_0
  - dav1d=1.2.1=hd590300_0
  - dbus=1.13.6=h5008d03_3
  - debugpy=1.8.5=py311hfdbb021_1
  - decorator=5.1.1=pyhd8ed1ab_0
  - defusedxml=0.7.1=pyhd8ed1ab_0
  - docutils=0.20.1=py311h38be061_3
  - double-conversion=3.3.0=h59595ed_0
  - eigen=3.4.0=h00ab1b0_0
  - entrypoints=0.4=pyhd8ed1ab_0
  - exceptiongroup=1.2.2=pyhd8ed1ab_0
  - executing=2.1.0=pyhd8ed1ab_0
  - expat=2.6.3=h5888daf_0
  - fenics-basix=0.8.0=py311h1feab5d_3
  - fenics-dolfinx=0.8.0=py311hc8b80c1_103
  - fenics-ffcx=0.8.0=pyh4af843d_0
  - fenics-libbasix=0.8.0=h7cb7ce6_3
  - fenics-libdolfinx=0.8.0=hf0bfe3a_103
  - fenics-ufcx=0.8.0=h22f594c_0
  - fenics-ufl=2024.1.0=pyhd8ed1ab_0
  - ffmpeg=6.1.2=gpl_h8657690_705
  - fftw=3.3.10=mpi_mpich_hbcf76dd_10
  - flake8=6.0.0=pyhd8ed1ab_0
  - fltk=1.3.9=h9305793_1
  - 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_2
  - fontconfig=2.14.2=h14ed4e7_0
  - fonts-conda-ecosystem=1=0
  - fonts-conda-forge=1=0
  - fonttools=4.54.0=py311h9ecbd09_0
  - fqdn=1.5.1=pyhd8ed1ab_0
  - freeimage=3.18.0=h4bd6248_21
  - freetype=2.12.1=h267a509_2
  - fribidi=1.0.10=h36c2ea0_0
  - frozenlist=1.4.1=py311h9ecbd09_1
  - gcc_impl_linux-64=12.4.0=hb2e57f8_1
  - gcc_linux-64=12.4.0=h6b7512a_3
  - geos=3.12.0=h59595ed_0
  - gettext=0.22.5=he02047a_3
  - gettext-tools=0.22.5=he02047a_3
  - gl2ps=1.4.2=hae5d5c5_1
  - glew=2.1.0=h9c3ff4c_2
  - glib=2.80.3=h315aac3_2
  - glib-tools=2.80.3=h8fdd7da_2
  - gmp=6.3.0=hac33072_2
  - gmsh=4.11.1=h6b98cf8_6
  - graphite2=1.3.13=h59595ed_1003
  - gst-plugins-base=1.24.7=h0a52356_0
  - gstreamer=1.24.7=hf3bb09a_0
  - gxx_impl_linux-64=12.4.0=h613a52c_1
  - gxx_linux-64=12.4.0=h8489865_3
  - h11=0.14.0=pyhd8ed1ab_0
  - h2=4.1.0=pyhd8ed1ab_0
  - h5py=3.11.0=nompi_py311h439e445_102
  - harfbuzz=9.0.0=hda332d3_1
  - hdf4=4.2.15=h2a13503_7
  - hdf5=1.14.3=mpi_mpich_h0f54ddc_5
  - hpack=4.0.0=pyh9f0ad1d_0
  - httpcore=1.0.5=pyhd8ed1ab_0
  - httpx=0.27.2=pyhd8ed1ab_0
  - hyperframe=6.0.1=pyhd8ed1ab_0
  - hypre=2.31.0=mpi_mpich_hd1da18f_1
  - icu=75.1=he02047a_0
  - idna=3.10=pyhd8ed1ab_0
  - imagesize=1.4.1=pyhd8ed1ab_0
  - imath=3.1.12=h7955e40_0
  - importlib-metadata=8.5.0=pyha770c72_0
  - importlib_metadata=8.5.0=hd8ed1ab_0
  - importlib_resources=6.4.5=pyhd8ed1ab_0
  - iniconfig=2.0.0=pyhd8ed1ab_0
  - ipykernel=6.29.5=pyh3099207_0
  - ipython=8.27.0=pyh707e725_0
  - ipywidgets=8.1.5=pyhd8ed1ab_0
  - isoduration=20.11.0=pyhd8ed1ab_0
  - jedi=0.19.1=pyhd8ed1ab_0
  - jinja2=3.1.4=pyhd8ed1ab_0
  - json5=0.9.25=pyhd8ed1ab_0
  - jsoncpp=1.9.6=h84d6215_0
  - jsonpointer=3.0.0=py311h38be061_1
  - jsonschema=4.23.0=pyhd8ed1ab_0
  - jsonschema-specifications=2023.12.1=pyhd8ed1ab_0
  - jsonschema-with-format-nongpl=4.23.0=hd8ed1ab_0
  - jupyter=1.0.0=pyhd8ed1ab_10
  - jupyter-lsp=2.2.5=pyhd8ed1ab_0
  - jupyter_client=8.6.3=pyhd8ed1ab_0
  - jupyter_console=6.6.3=pyhd8ed1ab_0
  - jupyter_core=5.7.2=pyh31011fe_1
  - jupyter_events=0.10.0=pyhd8ed1ab_0
  - jupyter_server=2.14.2=pyhd8ed1ab_0
  - jupyter_server_terminals=0.5.3=pyhd8ed1ab_0
  - jupyterlab=4.2.5=pyhd8ed1ab_0
  - jupyterlab_pygments=0.3.0=pyhd8ed1ab_1
  - jupyterlab_server=2.27.3=pyhd8ed1ab_0
  - jupyterlab_widgets=3.0.13=pyhd8ed1ab_0
  - jxrlib=1.1=hd590300_3
  - kahip=3.16=h1143d03_3
  - kahip-python=3.16=py311hfdd914f_3
  - kernel-headers_linux-64=3.10.0=h4a8ded7_16
  - keyutils=1.6.1=h166bdaf_0
  - kiwisolver=1.4.7=py311hd18a35c_0
  - krb5=1.21.3=h659f571_0
  - lame=3.100=h166bdaf_1003
  - lcms2=2.16=hb7c19ff_0
  - ld_impl_linux-64=2.40=hf3520f5_7
  - lerc=4.0.0=h27087fc_0
  - libabseil=20240116.2=cxx17_he02047a_1
  - libadios2=2.10.0=mpi_mpich_h3e60829_3
  - libaec=1.1.3=h59595ed_0
  - libasprintf=0.22.5=he8f35ee_3
  - libasprintf-devel=0.22.5=he8f35ee_3
  - libass=0.17.3=h1dc1e6a_0
  - libblas=3.9.0=20_linux64_openblas
  - libboost=1.84.0=hb8260a3_6
  - libboost-devel=1.84.0=h1a2810e_6
  - libboost-headers=1.84.0=ha770c72_6
  - libbrotlicommon=1.1.0=hb9d3cd8_2
  - libbrotlidec=1.1.0=hb9d3cd8_2
  - libbrotlienc=1.1.0=hb9d3cd8_2
  - libcap=2.69=h0f662aa_0
  - libcblas=3.9.0=20_linux64_openblas
  - libclang-cpp15=15.0.7=default_h127d8a8_5
  - libclang-cpp19.1=19.1.0=default_hb5137d0_0
  - libclang13=19.1.0=default_h9c6a7e4_0
  - libcups=2.3.3=h4637d8d_4
  - libcurl=8.10.1=hbbe4b11_0
  - libdeflate=1.21=h4bc722e_0
  - libdrm=2.4.123=hb9d3cd8_0
  - libedit=3.1.20191231=he28a2e2_2
  - libegl=1.7.0=ha4b6fd6_0
  - libev=4.33=hd590300_2
  - libevent=2.1.12=hf998b51_1
  - libexpat=2.6.3=h5888daf_0
  - libffi=3.4.2=h7f98852_5
  - libflac=1.4.3=h59595ed_0
  - libgcc=14.1.0=h77fa898_1
  - libgcc-devel_linux-64=12.4.0=ha4f9413_101
  - libgcc-ng=14.1.0=h69a702a_1
  - libgcrypt=1.11.0=h4ab18f5_1
  - libgettextpo=0.22.5=he02047a_3
  - libgettextpo-devel=0.22.5=he02047a_3
  - libgfortran=14.1.0=h69a702a_1
  - libgfortran-ng=14.1.0=h69a702a_1
  - libgfortran5=14.1.0=hc5f4f2c_1
  - libgl=1.7.0=ha4b6fd6_0
  - libglib=2.80.3=h315aac3_2
  - libglu=9.0.0=ha6d2627_1004
  - libglvnd=1.7.0=ha4b6fd6_0
  - libglx=1.7.0=ha4b6fd6_0
  - libgomp=14.1.0=h77fa898_1
  - libgpg-error=1.50=h4f305b6_0
  - libhwloc=2.11.1=default_hecaa2ac_1000
  - libiconv=1.17=hd590300_2
  - libjpeg-turbo=3.0.0=hd590300_1
  - liblapack=3.9.0=20_linux64_openblas
  - libllvm14=14.0.6=hcd5def8_4
  - libllvm15=15.0.7=hb3ce162_4
  - libllvm19=19.1.0=ha7bfdaf_0
  - libnetcdf=4.9.2=nompi_h135f659_114
  - libnghttp2=1.58.0=h47da74e_1
  - libnsl=2.0.1=hd590300_0
  - libogg=1.3.5=h4ab18f5_0
  - libopenblas=0.3.25=pthreads_h413a1c8_0
  - libopenvino=2024.4.0=hac27bb2_0
  - libopenvino-auto-batch-plugin=2024.4.0=h4d9b6c2_0
  - libopenvino-auto-plugin=2024.4.0=h4d9b6c2_0
  - libopenvino-hetero-plugin=2024.4.0=h3f63f65_0
  - libopenvino-intel-cpu-plugin=2024.4.0=hac27bb2_0
  - libopenvino-intel-gpu-plugin=2024.4.0=hac27bb2_0
  - libopenvino-intel-npu-plugin=2024.4.0=hac27bb2_0
  - libopenvino-ir-frontend=2024.4.0=h3f63f65_0
  - libopenvino-onnx-frontend=2024.4.0=h56242b0_0
  - libopenvino-paddle-frontend=2024.4.0=h56242b0_0
  - libopenvino-pytorch-frontend=2024.4.0=h5888daf_0
  - libopenvino-tensorflow-frontend=2024.4.0=h358ae18_0
  - libopenvino-tensorflow-lite-frontend=2024.4.0=h5888daf_0
  - libopus=1.3.1=h7f98852_1
  - libpciaccess=0.18=hd590300_0
  - libpng=1.6.44=hadc24fc_0
  - libpq=16.4=h2d7952a_1
  - libprotobuf=4.25.3=hd5b35b9_1
  - libptscotch=7.0.4=h2376d02_5
  - libraw=0.21.3=hca62329_0
  - libsanitizer=12.4.0=h46f95d5_1
  - libscotch=7.0.4=h3055ed5_5
  - libsndfile=1.2.2=hc60ed4a_1
  - libsodium=1.0.20=h4ab18f5_0
  - libsqlite=3.46.1=hadc24fc_0
  - libssh2=1.11.0=h0841786_0
  - libstdcxx=14.1.0=hc0a3c3a_1
  - libstdcxx-devel_linux-64=12.4.0=ha4f9413_101
  - libstdcxx-ng=14.1.0=h4852527_1
  - libsystemd0=256.6=h2774228_0
  - libtheora=1.1.1=h4ab18f5_1006
  - libtiff=4.7.0=h6565414_0
  - libuuid=2.38.1=h0b41bf4_0
  - libva=2.22.0=h8a09558_1
  - libvorbis=1.3.7=h9c3ff4c_0
  - libvpx=1.14.1=hac33072_0
  - libwebp-base=1.4.0=hd590300_0
  - libxcb=1.16=hb9d3cd8_1
  - libxkbcommon=1.7.0=h2c5496b_1
  - libxml2=2.12.7=he7c6b58_4
  - libzip=1.11.1=hf83b1b0_0
  - libzlib=1.3.1=h4ab18f5_1
  - llvmlite=0.41.1=py311ha6695c7_0
  - loguru=0.7.2=py311h38be061_2
  - lz4-c=1.9.4=hcb278e6_0
  - markdown-it-py=3.0.0=pyhd8ed1ab_0
  - markupsafe=2.1.5=py311h9ecbd09_1
  - matplotlib=3.7.1=py311h38be061_0
  - matplotlib-base=3.7.1=py311h8597a09_0
  - matplotlib-inline=0.1.7=pyhd8ed1ab_0
  - mccabe=0.7.0=pyhd8ed1ab_0
  - mdurl=0.1.2=pyhd8ed1ab_0
  - meshio=5.3.4=pyhd8ed1ab_0
  - metis=5.1.0=h59595ed_1007
  - mistune=3.0.2=pyhd8ed1ab_0
  - more-itertools=10.5.0=pyhd8ed1ab_0
  - mpfr=4.2.1=h90cbb55_3
  - mpg123=1.32.6=h59595ed_0
  - mpi=1.0=mpich
  - mpi4py=3.1.6=py311h0b14fea_1
  - mpich=4.2.1=h63d650b_101
  - msgpack-python=1.1.0=py311hd18a35c_0
  - multidict=6.1.0=py311h9ecbd09_0
  - mumps-include=5.7.2=ha770c72_0
  - mumps-mpi=5.7.2=h09c71e5_0
  - munkres=1.1.4=pyh9f0ad1d_0
  - mypy_extensions=1.0.0=pyha770c72_0
  - mysql-common=9.0.1=h70512c7_0
  - mysql-libs=9.0.1=ha479ceb_0
  - nbclient=0.10.0=pyhd8ed1ab_0
  - nbconvert=7.16.4=hd8ed1ab_1
  - nbconvert-core=7.16.4=pyhd8ed1ab_1
  - nbconvert-pandoc=7.16.4=hd8ed1ab_1
  - nbformat=5.10.4=pyhd8ed1ab_0
  - ncurses=6.5=he02047a_1
  - nest-asyncio=1.6.0=pyhd8ed1ab_0
  - netcdf4=1.7.1=nompi_py311hae66bec_102
  - nlohmann_json=3.11.3=he02047a_1
  - notebook=7.2.2=pyhd8ed1ab_0
  - notebook-shim=0.2.4=pyhd8ed1ab_0
  - nspr=4.35=h27087fc_0
  - nss=3.104=hd34e28f_0
  - numba=0.58.1=py311h96b013e_0
  - numpy=1.24.3=py311h64a7726_0
  - occt=7.7.2=novtk_h130ccc2_101
  - ocl-icd=2.3.2=hd590300_1
  - openexr=3.2.2=h04e0de5_2
  - openh264=2.4.1=h59595ed_0
  - openjpeg=2.5.2=h488ebb8_0
  - openssl=3.3.2=hb9d3cd8_0
  - overrides=7.7.0=pyhd8ed1ab_0
  - packaging=24.1=pyhd8ed1ab_0
  - pandoc=3.4=ha770c72_0
  - pandocfilters=1.5.0=pyhd8ed1ab_0
  - parmetis=4.0.3=h583469f_1006
  - parso=0.8.4=pyhd8ed1ab_0
  - pathspec=0.12.1=pyhd8ed1ab_0
  - pcre2=10.44=hba22ea6_2
  - petsc=3.21.3=real_h7906ff3_100
  - petsc4py=3.21.3=py311h3fe0c0c_1
  - pexpect=4.9.0=pyhd8ed1ab_0
  - pickleshare=0.7.5=py_1003
  - pillow=10.4.0=py311h4aec55e_1
  - pip=24.2=pyh8b19718_1
  - pixman=0.43.2=h59595ed_0
  - pkg-config=0.29.2=h4bc722e_1009
  - pkgutil-resolve-name=1.3.10=pyhd8ed1ab_1
  - platformdirs=4.3.6=pyhd8ed1ab_0
  - pluggy=1.5.0=pyhd8ed1ab_0
  - ply=3.11=pyhd8ed1ab_2
  - pooch=1.8.2=pyhd8ed1ab_0
  - proj=9.5.0=h12925eb_0
  - prometheus_client=0.21.0=pyhd8ed1ab_0
  - prompt-toolkit=3.0.47=pyha770c72_0
  - prompt_toolkit=3.0.47=hd8ed1ab_0
  - psutil=6.0.0=py311h9ecbd09_1
  - pthread-stubs=0.4=hb9d3cd8_1002
  - ptscotch=7.0.4=h23d43cc_5
  - ptyprocess=0.7.0=pyhd3deb0d_0
  - pugixml=1.14=h59595ed_0
  - pulseaudio-client=17.0=hb77b528_0
  - pure_eval=0.2.3=pyhd8ed1ab_0
  - pycodestyle=2.10.0=pyhd8ed1ab_0
  - pycparser=2.22=pyhd8ed1ab_0
  - pyflakes=3.0.1=pyhd8ed1ab_0
  - pygments=2.18.0=pyhd8ed1ab_0
  - pyparsing=3.1.4=pyhd8ed1ab_0
  - pyqt=5.15.7=py311ha74522f_3
  - pyqt5-sip=12.11.0=py311hcafe171_3
  - pysocks=1.7.1=pyha2e5f31_6
  - pytest=7.3.1=pyhd8ed1ab_0
  - python=3.11.0=he550d4f_1_cpython
  - python-dateutil=2.9.0=pyhd8ed1ab_0
  - python-fastjsonschema=2.20.0=pyhd8ed1ab_0
  - python-gmsh=4.11.1=h57928b3_6
  - python-json-logger=2.0.7=pyhd8ed1ab_0
  - python_abi=3.11=5_cp311
  - pytz=2024.2=pyhd8ed1ab_0
  - pyvista=0.39.0=pyhd8ed1ab_0
  - pyyaml=6.0.2=py311h9ecbd09_1
  - pyzmq=26.2.0=py311h7deb3e3_2
  - qt-main=5.15.8=h3155989_26
  - qt6-main=6.7.2=hadfd74e_5
  - qtconsole-base=5.6.0=pyha770c72_0
  - qtpy=2.4.1=pyhd8ed1ab_0
  - rapidjson=1.1.0.post20240409=hac33072_1
  - readline=8.2=h8228510_1
  - referencing=0.35.1=pyhd8ed1ab_0
  - requests=2.32.3=pyhd8ed1ab_0
  - rfc3339-validator=0.1.4=pyhd8ed1ab_0
  - rfc3986-validator=0.1.1=pyh9f0ad1d_0
  - rich=13.8.1=pyhd8ed1ab_0
  - rpds-py=0.20.0=py311h9e33e62_1
  - scalapack=2.2.0=h417d24c_2
  - scipy=1.10.1=py311h64a7726_3
  - scooby=0.10.0=pyhd8ed1ab_0
  - scotch=7.0.4=h23d43cc_5
  - send2trash=1.8.3=pyh0d859eb_0
  - setuptools=74.1.2=pyhd8ed1ab_0
  - shapely=2.0.1=py311he06c224_3
  - sip=6.7.12=py311hb755f60_0
  - six=1.16.0=pyh6c4a22f_0
  - slepc=3.21.1=real_h97ad6bc_302
  - slepc4py=3.21.1=py311h1ce286c_102
  - snappy=1.2.1=ha2e4443_0
  - sniffio=1.3.1=pyhd8ed1ab_0
  - snowballstemmer=2.2.0=pyhd8ed1ab_0
  - soupsieve=2.5=pyhd8ed1ab_1
  - sphinx=7.0.1=pyhd8ed1ab_0
  - sphinx-gallery=0.13.0=pyhd8ed1ab_0
  - sphinxcontrib-applehelp=2.0.0=pyhd8ed1ab_0
  - sphinxcontrib-devhelp=2.0.0=pyhd8ed1ab_0
  - sphinxcontrib-htmlhelp=2.1.0=pyhd8ed1ab_0
  - sphinxcontrib-jsmath=1.0.1=pyhd8ed1ab_0
  - sphinxcontrib-qthelp=2.0.0=pyhd8ed1ab_0
  - sphinxcontrib-serializinghtml=1.1.10=pyhd8ed1ab_0
  - sqlite=3.46.1=h9eae976_0
  - stack_data=0.6.2=pyhd8ed1ab_0
  - suitesparse=7.7.0=hf4753ba_1
  - superlu=5.2.2=h00795ac_0
  - superlu_dist=9.0.0=h3feb4ed_1
  - svt-av1=2.2.1=h5888daf_0
  - sysroot_linux-64=2.17=h4a8ded7_16
  - tbb=2021.13.0=h84d6215_0
  - tbb-devel=2021.13.0=h94b29a5_0
  - terminado=0.18.1=pyh0d859eb_0
  - tinycss2=1.3.0=pyhd8ed1ab_0
  - tk=8.6.13=noxft_h4845f30_101
  - toml=0.10.2=pyhd8ed1ab_0
  - tomli=2.0.1=pyhd8ed1ab_0
  - tornado=6.4.1=py311h9ecbd09_1
  - tqdm=4.65.0=pyhd8ed1ab_1
  - traitlets=5.14.3=pyhd8ed1ab_0
  - trame=2.3.2=pyhd8ed1ab_0
  - trame-client=3.3.1=pyhd8ed1ab_0
  - trame-components=2.4.0=pyhd8ed1ab_0
  - trame-deckgl=2.0.3=pyhd8ed1ab_0
  - trame-markdown=3.0.2=pyhd8ed1ab_0
  - trame-matplotlib=2.0.2=pyhd8ed1ab_0
  - trame-plotly=3.0.2=pyhd8ed1ab_0
  - trame-rca=0.4.4=pyhd8ed1ab_0
  - trame-router=2.3.0=pyhd8ed1ab_0
  - trame-server=3.2.3=pyhd8ed1ab_0
  - trame-simput=2.4.3=pyhd8ed1ab_0
  - trame-vega=2.1.1=pyhd8ed1ab_0
  - trame-vtk=2.8.10=pyhd8ed1ab_0
  - trame-vuetify=2.7.1=pyhd8ed1ab_0
  - treelib=1.6.4=pyhd8ed1ab_0
  - types-python-dateutil=2.9.0.20240906=pyhd8ed1ab_0
  - typing-extensions=4.12.2=hd8ed1ab_0
  - typing_extensions=4.12.2=pyha770c72_0
  - typing_utils=0.1.0=pyhd8ed1ab_0
  - tzdata=2024a=h8827d51_1
  - uri-template=1.3.0=pyhd8ed1ab_0
  - urllib3=2.2.3=pyhd8ed1ab_0
  - utfcpp=4.0.5=ha770c72_0
  - vtk=9.3.1=qt_py311he5e186c_208
  - vtk-base=9.3.1=qt_py311h913fd79_208
  - vtk-io-ffmpeg=9.3.1=qt_py311hc8241c7_208
  - wayland=1.23.1=h3e06ad9_0
  - wayland-protocols=1.37=hd8ed1ab_0
  - wcwidth=0.2.13=pyhd8ed1ab_0
  - webcolors=24.8.0=pyhd8ed1ab_0
  - webencodings=0.5.1=pyhd8ed1ab_2
  - websocket-client=1.8.0=pyhd8ed1ab_0
  - wheel=0.44.0=pyhd8ed1ab_0
  - widgetsnbextension=4.0.13=pyhd8ed1ab_0
  - wslink=2.2.1=pyhd8ed1ab_0
  - x264=1!164.3095=h166bdaf_2
  - x265=3.5=h924138e_3
  - 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.42=h4ab18f5_0
  - xorg-fixesproto=5.0=hb9d3cd8_1003
  - xorg-inputproto=2.3.2=hb9d3cd8_1003
  - xorg-kbproto=1.0.7=hb9d3cd8_1003
  - xorg-libice=1.1.1=hd590300_0
  - xorg-libsm=1.2.4=h7391055_0
  - xorg-libx11=1.8.9=hb711507_1
  - xorg-libxau=1.0.11=hb9d3cd8_1
  - xorg-libxdmcp=1.1.3=hb9d3cd8_1
  - xorg-libxext=1.3.4=h0b41bf4_2
  - xorg-libxfixes=5.0.3=h7f98852_1004
  - xorg-libxi=1.7.10=h4bc722e_1
  - xorg-libxmu=1.1.3=h4ab18f5_1
  - xorg-libxrender=0.9.11=hd590300_0
  - xorg-libxt=1.3.0=hd590300_1
  - xorg-libxtst=1.2.5=h4bc722e_0
  - xorg-libxxf86vm=1.1.5=hb9d3cd8_2
  - xorg-recordproto=1.14.2=hb9d3cd8_1003
  - xorg-renderproto=0.11.1=hb9d3cd8_1003
  - xorg-xextproto=7.3.0=hb9d3cd8_1004
  - xorg-xf86vidmodeproto=2.3.1=hb9d3cd8_1003
  - xorg-xproto=7.0.31=hb9d3cd8_1008
  - xz=5.2.6=h166bdaf_0
  - yaml=0.2.5=h7f98852_2
  - yarl=1.9.4=py311h9ecbd09_1
  - zeromq=4.3.5=ha4adb4c_5
  - zfp=0.5.5=h9c3ff4c_8
  - zipp=3.20.2=pyhd8ed1ab_0
  - zlib=1.3.1=h4ab18f5_1
  - zlib-ng=2.0.7=h0b41bf4_0
  - zstandard=0.23.0=py311hbc35293_1
  - zstd=1.5.6=ha6fb4c9_0
  - pip:
      - pecan==0.0.0
variables:
  PYTHONNOUSERSITE: '1'
  LANG: C
  LC_ALL: C
  LC_NUMERIC: C
  PYTHONIOENCODING: utf-8
prefix: /home/mnotazio/mambaforge/envs/test_env

I look forward to your opinion. Thank you again

yes, indeed I messed up the exclusion, so you have this gcc 13 build of fenics-basix with this gcc 12 build of fenics-dolfinx. They should conflict, but don’t. I’m working on fixing that. But if you update fenics-dolfinx, (latest build is 106), it should be fixed; it’s only outdated builds of fenics-dolfinx that don’t properly exclude incompatible basix. You can also ensure the not-quite-right exclusion is applied properly if you install gxx=13 in the meantime:

mamba upgrade gxx=13 fenics-dolfinx
2 Likes

Thank you very much @minrk ! It works like a charm!

Thanks to all fenics team for the support!