フィルターのクリア

is there a way to force MATLAB to use a different HDF5 library?

21 ビュー (過去 30 日間)
Douglas Franz
Douglas Franz 2020 年 11 月 23 日
I have an H5 version conflict when I try to use python functions from matlab.
pyenv is correctly assigned, but since the python package I'm trying to use has a specific version of H5, MATLAB crashes with an error:
UserWarning: h5py is running against HDF5 1.8.12 when it was built against 1.10.4, this may cause problems
'{0}.{1}.{2}'.format(*version.hdf5_built_version_tuple)
i.e. my python package has 1.10.4 while MATLAB has 1.8.12
Can I force MATLAB to use a different H5 library? I tried to change the python H5 version, but there is no easily available package with 1.8.12 specifically.
  5 件のコメント
ARUN
ARUN 2021 年 2 月 25 日
編集済み: ARUN 2021 年 2 月 25 日
No, Still I am facing the issue.
I am trying to call a python module from MATLAB. I have a Neural network model loaded into the python module as .h5 file. Whenever I call the python with .h5 file loaded, matlab throws error. I thought it could be because of library version mismatch between two.
When I tried with OutOfprocess, it resulted the same
Maxwell Twardowski
Maxwell Twardowski 2021 年 5 月 4 日
I have the same issue, but with netcdf. My netcdf functions are using hdf5 v 1.8.16, but matlab has 1.8.12
It would be nice to be able to change the hdf5 version matlab is using, or specify in my make file to use hdf5 v 1.8.12
Help!

サインインしてコメントする。

採用された回答

Durriya Doctor
Durriya Doctor 2021 年 2 月 24 日
  1 件のコメント
Douglas Franz
Douglas Franz 2021 年 2 月 25 日
Thanks. This worked for me, although I'm hoping that the performance difference that is mentioned won't matter much.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCall Python from MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by