AttributeError: '_GzipStreamFile' object has no attribute '_checkReadable

AttributeError: '_GzipStreamFile' object has no attribute '_checkReadable

我正在尝试设置 commonsearch,我是后端将 alexa1m 数据导入 rocksdb 的地方,但它死于错误(以下错误)。

   Traceback (most recent call last):
      File "urlserver/import.py", line 21, in <module>
        ds.import_dump()
      File "./urlserver/datasources/__init__.py", line 62, in import_dump
        for i, row in self.iter_dump():
      File "./urlserver/datasources/__init__.py", line 102, in iter_dump
        f = self.open_dump()
      File "./urlserver/datasources/__init__.py", line 144, in open_dump
        return GzipStreamFile(f)
      File "/cosr/back/venv/src/gzipstream/gzipstream/gzipstreamfile.py", line 62, in __init__
        super(GzipStreamFile, self).__init__(self._gzipstream)
      File "/usr/lib64/python2.6/io.py", line 921, in __init__
        raw._checkReadable()
    AttributeError: '_GzipStreamFile' object has no attribute '_checkReadable'

已经为此奋斗了 2 天,但没有任何进展。如果有人能给我一些见解或建议,我会非常高兴!

已找到解决方案,问题出在工具解析的数据上,而不是工具本身。