I am trying to build a Python .exe for Windows and am able to create it fine. However, when I run the application, I notice that it cannot perform all of its functions because not all the libraries were imported; PySNMP is not getting imported in specific. When I look at the output of the build process, I notice that PySNMP is not listed at all, even though several of modules in my program import it. Anyone know what could be causing this issue? Thanks!
Here is the code that generates the installer:
FILES = <main program modules (.py)>
PyInstaller = C:/Python27/pyinstaller
CygPyInstaller = /cygdrive/c/Python27/pyinstaller run : python app.py makespec : $(FILES) @echo "***** PyInstaller: Makespec *****" python $(PyInstaller)/Makespec.py \
--onefile \
--windowed \
--icon=Icons/icon.ico \
--name=Application1045 \
app.py