The kernel appears to have died. It will restart automatically

Please try again, and then call python3 -m pip list

I’ve already retried, but nothing happened after calling "python3 -m p

You should not run these commands through the ipython shell. Please run them through a normal terminal.

You could try pip uninstall -y h5py

With your recommendation, the uninstallation was completed with the out put as following:

Found existing installation: h5py 3.1.0
Uninstalling h5py-3.1.0:
Successfully uninstalled h5py-3.1.0
WARNING: Running pip as the ‘root’ user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: 12. Virtual Environments and Packages — Python 3.12.0 documentation

Then I use this command to reinstall h5py without binary:

python3 -m pip install --no-binary=h5py h5py meshio

with the output:

Collecting h5py
Using cached h5py-3.1.0.tar.gz (371 kB)
Installing build dependencies … done
Getting requirements to build wheel … done
Installing backend dependencies … done
Preparing metadata (pyproject.toml) … done
Requirement already satisfied: meshio in /usr/local/lib/python3.6/dist-packages (4.4.6)
Requirement already satisfied: numpy>=1.12 in /usr/lib/python3/dist-packages (from h5py) (1.13.3)
Requirement already satisfied: cached-property in /usr/local/lib/python3.6/dist-packages (from h5py) (1.5.2)
Requirement already satisfied: importlib-metadata in /usr/local/lib/python3.6/dist-packages (from meshio) (1.3.0)
Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.6/dist-packages (from importlib-metadata->meshio) (0.6.0)
Requirement already satisfied: more-itertools in /usr/local/lib/python3.6/dist-packages (from zipp>=0.5->importlib-metadata->meshio) (8.0.2)
Building wheels for collected packages: h5py
Building wheel for h5py (pyproject.toml) … done
Created wheel for h5py: filename=h5py-3.1.0-cp36-cp36m-linux_x86_64.whl size=4533284 sha256=36768c66411f47dab5195980d156c1fb6e3aa87c44ddaa9d212b63addc93dd46
Stored in directory: /root/.cache/pip/wheels/7a/a9/52/00330d144164b95ed1c699f64f6e8576850b29ef1aa2b85be5
Successfully built h5py
Installing collected packages: h5py
Successfully installed h5py-3.1.0
WARNING: Running pip as the ‘root’ user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: 12. Virtual Environments and Packages — Python 3.12.0 documentation

However when I run my code to transfer file .msh to .xdmf, the problem still happened

I don’t understand why :frowning:

You should try running your code as a Python script rather than a jupyter notebook. You might Get a more sensible error message.

Thank you for your kind help
the problem was solved