This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Tal Cohen
Recipients Tal Cohen, lars.gustaebel
Date 2019-07-30.22:27:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1564525622.36.0.964910267569.issue37724@roundup.psfhosted.org>
In-reply-to
Content
_extract_member, raised an exception in case of more than one process, This happens because "not os.path.exists(upperdirs" return True in case of multiprocess


CODE:
.............
        if upperdirs and not os.path.exists(upperdirs):
            # Create directories that are not part of the archive with
            # default permissions.
            os.makedirs(upperdirs)
................


I solved the problem by creating the root path before like:
        try:
            os.makedirs(path)
        except OSError as e:
            if e.errno != os.errno.EEXIST:
                raise
            pass

there is an option to add :  
if e.errno != os.errno.EEXIST: in your code?
History
Date User Action Args
2019-07-30 22:27:02Tal Cohensetrecipients: + Tal Cohen, lars.gustaebel
2019-07-30 22:27:02Tal Cohensetmessageid: <1564525622.36.0.964910267569.issue37724@roundup.psfhosted.org>
2019-07-30 22:27:02Tal Cohenlinkissue37724 messages
2019-07-30 22:27:02Tal Cohencreate