【发布时间】:2020-08-25 18:59:51
【问题描述】:
我想从 Colab 读取一个 HDF5 文件,该文件托管在我的 Google 云端硬盘中。这个文件很大(46 GB)。但是在使用该文件时,会产生以下错误:
OSError: Can't read data (file read failed: time = Sun May 10 08:31:46 2020
, filename = 'gdrive/My Drive/Computer_vision_with_deep_learning/fruits-ml-web-app/hdf5/features.hdf', file descriptor = 62, errno = 5, error message = 'Input/output error', buf = 0x9efd83080, total read size = 32918392704, bytes this sub-read = 32918392704, bytes actually read = 18446744073709551615, offset = 4097052672)
它可以打开文件但在读取时抛出错误。
我在 GitHub 上找到了一个关于该问题的线程。以下是它的链接:
Reading file from Drive giving OSError #559
为什么会这样?如何解决?
【问题讨论】:
标签: google-colaboratory hdf5 oserror