ImportError: OpenCV loader: missing configuration file: ['config.py']. Check OpenCV installation

I’m trying to binarize my python application on Jetson Nano, Jetpack 4.2.1 using pyinstaller. But when run the binary file, I got this error:

ImportError: OpenCV loader: missing configuration file: ['config.py']. Check OpenCV installation.

Can someone help me?

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.
Thanks

Sorry for the late response, have you resolved the issue or still need the support?
Any result can be shared?

Thanks

I have the same problem

I was able to get around this issue by including the path to OpenCV when running pyinstaller like this:

pyinstaller --paths='/usr/local/lib/python3.6/dist-packages/cv2/python-3.6'

or by adding it to the spec file like this:

pathex=['/usr/local/lib/python3.6/dist-packages/cv2/python-3.6', '/home/me/bundle']

1 Like