【问题标题】:OSError: Can't read data (file read failed:...error message = 'Input/output error'...)OSError:无法读取数据(文件读取失败:...错误消息='输入/输出错误'...)
【发布时间】: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


    【解决方案1】:

    您可以先尝试将文件复制到/content。它可能会有所帮助。

    【讨论】:

      猜你喜欢
      • 2014-05-28
      • 1970-01-01
      • 2021-11-15
      • 2016-02-13
      • 1970-01-01
      • 2022-11-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多