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
this is because he did not copy a dependency.I solved it like this.
this creates a my_program.spec. it is a base configuration file.
open it with any text editor. search for
hiddenimports=[]
edit to.
hiddenimports=["pkg_resources.py2_warn"]
now let's call pyinstaller passing our configured file instead of our program