Creating cx_Freeze exe with cv2

Skip to first unread message

Jun 5, 2018, 5:43:30 AM6/5/18
to OpenCV with Python Blueprints
I created several exe before with cx_Freeze and there seems to be always some issues.
But, from the error messages I am usually able to manually locate the missing files and solve the issue.

With OpenCV I am running into a problem I can't solve. When I run the exe file and there isn't an error message, the application doesn't break, just nothing happens.

Anyone has any suggestions?

Jun 5, 2018, 10:15:24 AM6/5/18
to OpenCV with Python Blueprints
Here is my SO question with more details about this problem:

Michael Beyeler

Jun 5, 2018, 4:56:32 PM6/5/18
to OpenCV with Python Blueprints

Thanks for posting. Unfortunately, I'm not familiar with cxFreeze - here we mainly discuss issues with the code for my book OpenCV with Python Blueprints.

However, I looked at your SO question, and I would follow zindarod's suggestion to find out exactly where your code breaks. It would be good to add output or error messages for each step that could go wrong.
For example, if you know that cap is not opened, the problem must come before this line of code. What is the value of cap? Is the wmv filepath hard-coded? Could it be that the exe assumes a different path and thus cannot find the wmv? etc.

Good luck,
Reply all
Reply to author
0 new messages