I have created a program that takes pictures with your webcam.
I used Pygame and VideoCapture. It all works fine as .pyw file, but after it is compiled with py2exe it is just doesn't work. 
From my research, the error is coming from trying to compile the VideoCapture module.
PLEEASSEE HELP ME!!!
(The Same error occurs for Pyinstaller)
have you tried compiling with cx_freeze?
py2exe not compiling VideoCapture correctly