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 terry.reedy
Recipients Alex-Python-Programmer, terry.reedy
Date 2020-08-08.11:54:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1596887664.03.0.533787906153.issue41508@roundup.psfhosted.org>
In-reply-to
Content
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\__init__.py", line 1705, in __call__
    return self.func(*args)
  File "C:\Programs\Python37\lib\idlelib\query.py", line 148, in ok
    entry = self.entry_ok()
  File "C:\Programs\Python37\lib\idlelib\query.py", 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 ntpath.py in 3.8.5 and  3.9.0b5.  Line 219 in query.py is the same as 3.7 query.py 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.
History
Date User Action Args
2020-08-08 11:54:24terry.reedysetrecipients: + terry.reedy, Alex-Python-Programmer
2020-08-08 11:54:24terry.reedysetmessageid: <1596887664.03.0.533787906153.issue41508@roundup.psfhosted.org>
2020-08-08 11:54:24terry.reedylinkissue41508 messages
2020-08-08 11:54:23terry.reedycreate