Skip to content

Commit 0f0ed59

Browse files
committed
better error message
1 parent 5573448 commit 0f0ed59

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cebra/data/load.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838

3939
import abc
4040
import pathlib
41+
import sys
4142
import warnings
4243
from typing import IO, List, Optional, Union
4344

@@ -762,4 +763,7 @@ def read_hdf(filename, key=None):
762763
except Exception as inner_e:
763764
raise RuntimeError(
764765
f"Failed to load HDF5 file with both pandas and h5py: {str(e)} -> {str(inner_e)}"
765-
)
766+
f"h5py version: {h5py.__version__}, "
767+
f"pandas version: {pd.__version__}, "
768+
f"numpy version: {np.__version__}, "
769+
f"python version: {sys.version}")

0 commit comments

Comments
 (0)