Skip to content

Instantly share code, notes, and snippets.

@3ch01c
Created August 20, 2019 15:32
Show Gist options
  • Save 3ch01c/bdf40a2e790b86ccdc03c60a7bba69c6 to your computer and use it in GitHub Desktop.
Save 3ch01c/bdf40a2e790b86ccdc03c60a7bba69c6 to your computer and use it in GitHub Desktop.
q1
$ python3
Python 3.6.8 (default, Jan 14 2019, 11:02:34)
[GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import lzma
>>> datapath='/mnt/data-feeds/file/2019/08/20190814T12.tar.xz'
>>> f = lzma.open(datapath)
>>> contents = f.read()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.6/lzma.py", line 200, in read
return self._buffer.read(size)
File "/usr/lib/python3.6/_compression.py", line 103, in read
data = self._decompressor.decompress(rawblock, size)
MemoryError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment