I am currently building an executable with PyInstaller that builds a python file that utilizes PySAM. The python script is very simple and takes a location and runs Marion snow loss estimates for it based on the closes station with weather data. I am running into an issue with the way PySAM behaves in the built executable. Despite specifying all of PySAM, PySAM-stub and add the defaults folder to the build, when I run the line
d = PySAM.Pvsamv1.default("FlatPlatePVNone")
Python cannot find the default file for the config. The documentation is not clear on how pvsamv1 uses the default files or how it finds them, so I am unsure what I have been doing wrong for it to be unable to find these files.
I am building this as an executable instead of just a python script so team members without a python distribution on their computer can still run the file. Any help would be greatly appreciated. I've included my .spec file (as a .txt) for the PyInstaller build in case that is helpful