h5info error

28 visualizzazioni (ultimi 30 giorni)
Tiffany
Tiffany il 19 Mag 2023
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.

Risposte (1)

Raghav
Raghav il 4 Ago 2023
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 Commenti
karipuff
karipuff il 1 Set 2024
Modificato: karipuff il 1 Set 2024
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 il 1 Set 2024
There is no provision for reinstalling just the HDF5 libraries. You will need to reinstall MATLAB (itself, the toolboxes can be left alone.)

Accedi per commentare.

Community Treasure Hunt

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

Start Hunting!

Translated by