【发布时间】:2016-05-23 21:07:44
【问题描述】:
我正在使用内置的 lzma python 来解码压缩的数据块。根据数据块,我得到以下异常:
Compressed data ended before the end-of-stream marker was reached
数据没有损坏。可以用其他工具正确解压,所以肯定是库的bug。还有其他人遇到同样的问题:
- http://bugs.python.org/issue21872
- https://github.com/peterjc/backports.lzma/issues/6
- Downloading large file in python error: Compressed file ended before the end-of-stream marker was reached
不幸的是,似乎还没有找到解决方案。至少,它适用于 Python 3.5。
我该如何解决这个问题?有什么解决办法吗?
【问题讨论】:
标签: python python-3.x lzma