Steven D'Aprano added the comment:
For future reference, please don't post screen shots of plain text, as they
make it unnecessarily difficult for blind or visually impaired developers to
contribute (and yes, they do exist, I've worked with some, and at least one
core developer). Copy the
Eryk Sun added the comment:
DOS device names are reserved in the final component of DOS drive-letter paths.
"AUX" (plus an optional colon, spaces, or extension) becomes "\\.\AUX", which
is "\??\AUX" in the NT object namespace. By default, "\??\AUX" is a link to
"\??\COM1", which, if it
Carsten added the comment:
This is a good explanation. Indeed Windows complains if I manually want to
create a file "aux.txt" ("This device name is not allowed").
If I want to copy-paste such a file from within a zip-file (Windows Explorer
can open zip files) I get an "Unexpected Error".
SilentGhost added the comment:
aux is one of the reserved filenames on windows:
https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file#naming-conventions
I don't think Python can do anything about that.
--
components: +Windows -IO
nosy: +SilentGhost, paul.moore,
New submission from Carsten :
I maintain a package which includes a package named "aux.py".
I could not install it on my windows machine via pip and others had the same
problem also with windows.
I tracked down the problem to `io.open`. On my Windows 7 System with Python
3.7.1 from Anaconda,