Package: python-lzma
Version: 0.5.3-3
Severity: normal
Tags: patch
Hello!
python-lzma fails with a ValueError exception if you try to set
the 'check' option to any of the accepted values as stated in the
documentation. I have attached an example script to demonstrate the
problem.
This bug was reported upstream quite a while ago now, here:
https://bugs.launchpad.net/pyliblzma/+bug/1243344, but remains
unfixed. I have recently forwarded my patch though, here:
https://code.launchpad.net/~e7appew/pyliblzma/bugfix-1243344.
I will soon make my fix to the Debian package along with
other changes in the 'bugfixes' branch of this repo:
https://github.com/e7appew/python-lzma.git.
Best regards,
Carlos
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.7.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages python-lzma depends on:
ii libc6 2.24-5
ii liblzma5 5.2.2-1.2
ii python 2.7.11-2
pn python:any <none>
python-lzma recommends no packages.
python-lzma suggests no packages.
-- no debconf information
#!/usr/bin/python
import lzma
with open('data.tar', 'rb') as infile:
with open('new-data.tar.xz', 'wb') as outfile:
outfile.write(lzma.compress(infile.read(), options={'check':'crc64'}))
_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team