[issue37724] [[Errno 17] File exists: ] # Try create directories that are not part of the archive with

2020-08-06 Thread Jeffrey Kintscher


Change by Jeffrey Kintscher :


--
nosy: +Jeffrey.Kintscher

___
Python tracker 

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



[issue37724] [[Errno 17] File exists: ] # Try create directories that are not part of the archive with

2020-07-06 Thread Joannah Nanjekye


Joannah Nanjekye  added the comment:

This is marked 2.7 is it still relevant?

--
nosy: +nanjekyejoannah

___
Python tracker 

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



[issue37724] [[Errno 17] File exists: ] # Try create directories that are not part of the archive with

2019-08-02 Thread Tal Einat


Tal Einat  added the comment:

Hi Tal, could you please make your report clearer by giving more context? Right 
now it is very hard to understand.

The following would be helpful:

* What are you trying to do that is failing? (perhaps extract a Zip archive?)
* Which libraries/classes/functions are you using?
* Can you provide a small sample of code which we can use to reproduce this 
error ourselves?

--
nosy: +taleinat

___
Python tracker 

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



[issue37724] [[Errno 17] File exists: ] # Try create directories that are not part of the archive with

2019-08-01 Thread Tal Cohen


Tal Cohen <3talco...@gmail.com> added the comment:

Thanks

--

___
Python tracker 

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



[issue37724] [[Errno 17] File exists: ] # Try create directories that are not part of the archive with

2019-07-31 Thread Giovanni Cappellotto


Giovanni Cappellotto  added the comment:

There's also the `makedirs`'s `exist_ok` optional parameter, `False` by 
default. You could use it to avoid this error, but I'm not an expert on this 
particular library, so I'm not sure if it would make sense to make this change.

On a side note, searching for `_extract_member`, I found a very similar 
implementation of that function in `tarfile.py`. In case I think we should 
apply the same behavior in that module too.

--
nosy: +potomak

___
Python tracker 

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



[issue37724] [[Errno 17] File exists: ] # Try create directories that are not part of the archive with

2019-07-30 Thread Tal Cohen


New submission from Tal Cohen <3talco...@gmail.com>:

_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?

--

___
Python tracker 

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



[issue37724] [[Errno 17] File exists: ] # Try create directories that are not part of the archive with

2019-07-30 Thread Tal Cohen


Change by Tal Cohen <3talco...@gmail.com>:


--
components: Library (Lib)
nosy: Tal Cohen, lars.gustaebel
priority: normal
severity: normal
status: open
title: [[Errno 17] File exists: ] # Try create directories that are not part of 
the archive with
versions: Python 2.7

___
Python tracker 

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