You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2020-03-31.11:24:05.750>created_at=<Date2020-03-30.00:02:03.765>labels= ['3.8', 'type-bug', 'library', '3.9']
title='Improve error message for -m option when .py is present'updated_at=<Date2020-09-14.18:48:40.197>user='https://github.com/rhettinger'
$ python3.8 -m unicode_math_symbols.py
/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8: Error while finding module specification for'unicode_math_symbols.py' (ModuleNotFoundError: __path__ attribute not found on 'unicode_math_symbols'while trying to find 'unicode_math_symbols.py')
It is a reasonably common mistake to add .py to the module name for module names loaded by the -m command-line launcher. The error mess is somewhat opaque and not suggestive of what the actual problem is or how to fix it.
New changeset ef67512 by Pablo Galindo in branch 'master': bpo-40108: Improve the error message in runpy when importing a module that includes the extension (GH-19239) ef67512
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: