1

我正在尝试设置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 天了。如果有人能给我一些见解或建议,我会非常高兴!

4

1 回答 1

1

找到了解决方案,这是解析到工具的数据中的问题,而不是工具本身。

于 2016-05-27T12:00:38.503 回答