h5info error

조회 수: 27 (최근 30일)
Tiffany
Tiffany 2023년 5월 19일
댓글: Walter Roberson 2024년 9월 1일
i am trying to get information about a hdf5 file using the following line:
networkDataInfo = h5info(pathFileNetwork);
where pathFileNetwork is the file path. I keep getting an error of
Error using h5readc
The HDF5 library encountered an error and produced the following stack trace
information:
H5PL__find_plugin_in_path can't open directory: /usr/local/hdf5/lib/plugin
I tried using h5disp(pathFileNetwork) to see if I need to download any filters/plugins. I saw there was an unrecognized filter so I'm not sure if that has anything to do with the inital error about using h5info. Any help would be much appreciated as this is my first time using this app.

답변 (1개)

Raghav
Raghav 2023년 8월 4일
Hi Tiffany,
The error message you received indicates that there is an issue with the HDF5 library and it is unable to find a plugin in the specified directory /usr/local/hdf5/lib/plugin. This error could be caused by a few different factors, such as a missing or corrupted plugin file.
To troubleshoot this issue, you can try the following steps:
  1. Verify that you have the HDF5 library installed correctly. Make sure you have the latest version of the library installed and that all the necessary dependencies are satisfied.
  2. Check if the plugin directory /usr/local/hdf5/lib/plugin exists on your system. If it doesn't exist, you may need to reinstall the HDF5 library or ensure that the library is installed in the correct location.
  3. If the plugin directory exists, check if there are any files in it. If the directory is empty, it's possible that the plugin file(s) are missing or have been corrupted. In this case, you may need to reinstall the HDF5 library or obtain the missing plugin file(s) separately.
Regarding the unrecognized filter you mentioned when using h5disp(pathFileNetwork), it could be related to the plugin issue. The HDF5 library uses filters to perform various operations on datasets, and if a required filter is missing or not recognized, it can lead to errors. Resolving the plugin issue may help resolve this problem as well.
Hope it helps,
Best Regards,
Raghav Bansal
MathWorks Technical Support
  댓글 수: 2
karipuff
karipuff 2024년 9월 1일
편집: karipuff 2024년 9월 1일
Hi Raghav, obviously, this is a plugin problem, so how can we reinstall the HDF5 library? any convenient instructions to do it?
Walter Roberson
Walter Roberson 2024년 9월 1일
There is no provision for reinstalling just the HDF5 libraries. You will need to reinstall MATLAB (itself, the toolboxes can be left alone.)

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 HDF5에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by