This is my first time posting a question here as most of my questions have already been answered by someone else! I am working on a GUI application in python and am attempt
I extend @vikash-kumar answer. pyinstaller tool has command line parameter --hidden-import.
It resolves the topic problem for me.
More information:
https://web.archive.org/web/20200601130821/https://pyinstaller.readthedocs.io/en/stable/when-things-go-wrong.html#listing-hidden-imports.