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.

Title: Failed to open os.path in Open Module window of IDLE without any error informations
Type: behavior Stage: resolved
Components: IDLE Versions: Python 3.8
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: terry.reedy Nosy List: Alex-Python-Programmer, terry.reedy
Priority: normal Keywords:

Created on 2020-08-08 09:57 by Alex-Python-Programmer, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg375040 - (view) Author: Alex (Alex-Python-Programmer) Date: 2020-08-08 09:57
When openning os.path by Open Module window in IDLE (Shortcut: Alt + M), the window didn't open 'ntpath'(in Windows) or show any error informations.
msg375045 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2020-08-08 11:54
On Windows 10: when I start 3.7.8 IDLE in Command Prompt with
  C:\Users\Terry>py -3.7 -m idlelib
and try Open Module with 'os.path', I get this traceback in Command Prompt.

Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Programs\Python37\lib\tkinter\", line 1705, in __call__
    return self.func(*args)
  File "C:\Programs\Python37\lib\idlelib\", line 148, in ok
    entry = self.entry_ok()
  File "C:\Programs\Python37\lib\idlelib\", line 218, in entry_ok
    file_path = spec.loader.get_filename(name)
  File "<frozen importlib._bootstrap_external>", line 406, in _check_name_wrapper
ImportError: loader for ntpath cannot handle os.path

The same action displays in 3.8.5 and  3.9.0b5.  Line 219 in is the same as 3.7 line 218 above.  I conclude that the problem was a bug in importlib that was fixed more recently than your version of 3.8.  Hence closing.
Date User Action Args
2022-04-11 14:59:34adminsetgithub: 85680
2020-08-08 11:54:24terry.reedysetstatus: open -> closed
resolution: out of date
messages: + msg375045

stage: resolved
2020-08-08 09:57:46Alex-Python-Programmercreate