Unlike all other Import errors that other people have been experiencing, my py2exe Import error occurs due to the fact it is unable to locate the modules that I'm trying to import. It is likely to be path problems.
I have two directories:
Code/
my_main.py
Lib/
Due to the fact that I know I will be importing and using code in my "Lib/" very often, at the very beginning of my_main.py, I did
#PATH_TO_LIB is the absolute path to my library
sys.path.append(PATH_TO_LIB)
Now that after I use py2exe compile, all references to code that is inside of the library will give me an import error.
My code is massive and I really don't want to go through each one of the import to change the path of it.
What do I need to do to prevent this?