Issue 34035: Several AttributeError in zipfile seek() methods (original) (raw)

Created on 2018-07-03 18:24 by espdev, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 8527 merged Tiger-222,2018-07-28 13:34
PR 8556 merged miss-islington,2018-07-29 18:27
Messages (10)
msg320996 - (view) Author: Evgeny Prilepin (espdev) Date: 2018-07-03 18:24
The misprint in the file lib/zipfile.py in the line 704 leads to AttributeError: '_SharedFile' object has no attribute 'writing' "self.writing()" should be replaced by "self._writing()". I also think this code shold be covered by tests.
msg320999 - (view) Author: Evgeny Prilepin (espdev) Date: 2018-07-03 19:17
I think the line 1031 also contains the misprint and will raise NameError. > self._decompressor = zipfile._get_decompressor(self._compress_type) "zipfile." is not correct code in this place.
msg321038 - (view) Author: Rémi Lapeyre (remi.lapeyre) * Date: 2018-07-04 12:08
Hi Evegeny, I was able to reproduce the issue, if it's all right for you I would like to post a PR to solve the issue and extend the test suite od this module.
msg321042 - (view) Author: Evgeny Prilepin (espdev) Date: 2018-07-04 12:31
Hi Rémi, it would be great if you posted a PR.
msg322540 - (view) Author: Mickaël Schoentgen (Tiger-222) * Date: 2018-07-28 10:52
Little word to say I am working on at EuroPython 2018.
msg322639 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2018-07-29 18:26
New changeset 3f8c6913b82ed9c05e57175bcbfeacde46c598e3 by Serhiy Storchaka (Mickaël Schoentgen) in branch 'master': bpo-34035: Fix several AttributeError in zipfile seek() methods. (GH-8527) https://github.com/python/cpython/commit/3f8c6913b82ed9c05e57175bcbfeacde46c598e3
msg322642 - (view) Author: miss-islington (miss-islington) Date: 2018-07-29 19:57
New changeset ad4f64d58c020016bd438de0e863a0d31d0f0dac by Miss Islington (bot) in branch '3.7': bpo-34035: Fix several AttributeError in zipfile seek() methods. (GH-8527) https://github.com/python/cpython/commit/ad4f64d58c020016bd438de0e863a0d31d0f0dac
msg322643 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2018-07-29 20:07
Thank you for your report Evgeny and for your PR Mickaël!
msg322785 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2018-07-31 15:24
Note: the seek() method has been added by bpo-22908 (commit 066df4fd454d6ff9be66e80b2a65995b10af174f), and Python 3.6 is not affected.
msg327899 - (view) Author: Dariush Azimi (Dariush Azimi) Date: 2018-10-17 14:10
Had the same issue with python 3.7 and went back to python 3.6. There are no issues with python 3.6.4
History
Date User Action Args
2022-04-11 14:59:02 admin set github: 78216
2018-10-17 14:10:33 Dariush Azimi set nosy: + Dariush Azimimessages: +
2018-07-31 15:24:44 vstinner set nosy: + vstinnermessages: +
2018-07-29 20:07:37 serhiy.storchaka set status: open -> closedversions: - Python 3.6messages: + resolution: fixedstage: patch review -> resolved
2018-07-29 19:57:23 miss-islington set nosy: + miss-islingtonmessages: +
2018-07-29 18:27:16 miss-islington set pull_requests: + <pull%5Frequest8072>
2018-07-29 18:26:54 serhiy.storchaka set messages: +
2018-07-28 19:00:45 Tiger-222 set title: zipfile: AttributeError in "seek" method of "_SharedFile" class -> Several AttributeError in zipfile seek() methods
2018-07-28 13:34:23 Tiger-222 set keywords: + patchstage: needs patch -> patch reviewpull_requests: + <pull%5Frequest8045>
2018-07-28 10:52:37 Tiger-222 set nosy: + Tiger-222messages: +
2018-07-04 12:31:54 espdev set messages: +
2018-07-04 12:08:37 remi.lapeyre set nosy: + remi.lapeyremessages: +
2018-07-03 19:17:49 espdev set messages: +
2018-07-03 18:36:20 serhiy.storchaka set versions: + Python 3.6, Python 3.8nosy: + serhiy.storchakakeywords: + easytype: crash -> behaviorstage: needs patch
2018-07-03 18:24:34 espdev create