dynamic import of module fails from readonly location #124168
Labels
pending
The issue will be closed if no feedback is provided
topic-importlib
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
The problem is that the method exec_module tries to write the pyc file and throws an Exception when the permission for the module path is readonly.
I would suggest to check the write permission before creating the pyc file.
CPython versions tested on:
3.11
Operating systems tested on:
Linux
The text was updated successfully, but these errors were encountered: