Fehler beim Versuch, über H5PY in H5 -Datei zuzugreifenPython

Python-Programme
Anonymous
 Fehler beim Versuch, über H5PY in H5 -Datei zuzugreifen

Post by Anonymous »

Ich versuche eine H5 -Datei mit Python < /p>
zu lesen

Code: Select all

with h5py.File(filename, 'r') as file:
print("file.keys() = ", file.keys())
a_group_key = list(file.keys())[0]
data = list(file[a_group_key])
print(data)
< /code>
Aber der obige Code führt zum Fehler < /p>
  File "h5py/_selector.pyx", line 376, in h5py._selector.Reader.read
OSError: Can't synchronously read data (can't open directory (/usr/local/hdf5/lib/plugin). Please verify its existence)
< /code>
Die Ausgabe ist < /p>
file.keys() =  
Ich habe festgestellt, dass das Verzeichnis/usr/local/hdf5/lib/plugin in meinem System nicht vorhanden ist, sondern das Wiedereinsetzen von H5Py mit PIP nicht behoben hat. Mein PIP installiert das Paket für die richtige Python -Version. < /P>
Es funktioniert, wenn ich < /p>

Code: Select all

pip install hdf5plugin
< /code>
und < /p>
import hdf5plugin

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post