New submission from Michael Förderer <michael.foerde...@gmx.de>: Using os.path.realpath(...) in the MVFS of Clearcase SCM (virtual file system) in Windows 10 a exception occures:
X:\my_view\tools\python\3_8>python.exe Python 3.8.5 (tags/v3.8.5:580fbb0, Jul 20 2020, 15:57:54) [MSC v.1924 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import os >>> os.path.realpath('.') Traceback (most recent call last): File "X:\my_view\tools\python\3_8\lib\ntpath.py", line 647, in realpath path = _getfinalpathname(path) OSError: [WinError 87] Falscher Parameter: 'X:\\my_view\\tools\\python\\3_8\\.' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "X:\my_view\tools\python\3_8\lib\ntpath.py", line 651, in realpath path = _getfinalpathname_nonstrict(path) File "X:\my_view\tools\python\3_8\lib\ntpath.py", line 601, in _getfinalpathname_nonstrict path = _getfinalpathname(path) FileNotFoundError: [WinError 161] Der angegebene Pfadname ist ungültig: 'X:\\' >>> The error 161 (ERROR_BAD_PATHNAME) should also be ignored in _getfinalpathname_nonstrict. ---------- components: Library (Lib) messages: 398814 nosy: Spacetown priority: normal severity: normal status: open title: os.path.realpath fails with WinError 161 versions: Python 3.8 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44817> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com