Qt.qpa.plugin: Could not load the Qt platform plugin "windows"

I have written code to run a python file from actions.py script when a button is clicked. But I am getting the following error when os.system(“python_file.py”) is run.

Error : qt.qpa.plugin: Could not load the Qt platform plugin “windows” in “” even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are:direct2d , minimal , offscreen , windows.

Can someone help to resolve this issue?