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 Spacetown
Recipients Spacetown
Date 2021-08-03.05:24:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1627968251.97.0.10381933547.issue44817@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-08-03 05:24:11Spacetownsetrecipients: + Spacetown
2021-08-03 05:24:11Spacetownsetmessageid: <1627968251.97.0.10381933547.issue44817@roundup.psfhosted.org>
2021-08-03 05:24:11Spacetownlinkissue44817 messages
2021-08-03 05:24:11Spacetowncreate