Skip to content
Advertisement

opencv error when converting a python file to an .exe file with pyinstaller

So I am trying to convert my python project to an exe file and run it, but when I do, I get an error like this:

Failed to execute script ‘My project’ due to unhandled exception: ERROR recursion is detected during loading of “cv2” binary extensions. Check OpenCV installation.

JavaScript

Here’s some of the code:

JavaScript

any help would be appreciated.

Advertisement

Answer

Just found out the problem.I was using the latest 3.10.0 version of Python and apparently, it had some bugs about numpy and opencv modules.

My Advice:

Never use the latest python version. Always the previous one.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement