[issue8978] "tarfile.ReadError: file could not be opened successfully" if compiled without zlib

2018-11-26 Thread Kevin Funk


Kevin Funk  added the comment:

I just ran into this, under Python 3.6.

IMHO, the error message should be improved, even when the mode was not passed 
explicitly.

Can someone reopen this?

--
nosy: +kfunk

___
Python tracker 
<https://bugs.python.org/issue8978>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8978] "tarfile.ReadError: file could not be opened successfully" if compiled without zlib

2018-11-26 Thread Kevin Funk


Kevin Funk  added the comment:

It's Python 3.6 from CentOS 6. In my particular case I'm lacking the lzma 
module. But for figuring that out I had to add the explicit modes to the 
`tarfile.open` calls in my Python script.

--

___
Python tracker 
<https://bugs.python.org/issue8978>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8978] "tarfile.ReadError: file could not be opened successfully" if compiled without zlib

2018-11-26 Thread Kevin Funk


Kevin Funk  added the comment:

(Sorry: I just noticed the Python 3.6 I'm using is /not/ from distro packages. 
The issue remains, though, the Python exception could be more descriptive.)

--

___
Python tracker 
<https://bugs.python.org/issue8978>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com