Cannot run executable built by Pyinstaller

Hi,
I’m developing a software on Xavier NX for vision inspection. I encountered a problem when running executable built by Pyinstaller. It gave me this error:


Line 10 is this code in main program: Import cv2.
I can run this exe on my developer Xavier NX, but I cannot run it on other Xavier NX. Please help, Thanks.

Hi,

Did you set up the XavierNX with the same JetPack?

Based on the error, there is a missing symbol in the libraries of the executed XavierNX.
Usually, this is caused by the different software versions.

Thanks.

Hi, Aasta:
The developer Xavier NX runs Jetpack 4.5-b129, and other Xavier NX runs Jetpack 4.6-b197.

Hi,

Could you build the executable on a JetPack 4.6 environment?
Thanks.

Hi, Aasta:
I upgraded my developer machine to JetPack 4.6 (Version: 4.6-b197), but encountered a problem after. When I ran my program, it returned this error: “tensorflow.python.framework.errors_impl.AlreadyExistsError: Another metric with the same name already exists”. The program ran well with JetPack 4.5 before . I goggled, and found this comments: “I encountered the same error while importing tensorflow v2.6 on jetson AGX xavier. It was the issue with the jetpack release not compatible with the version”. I installed Tensorflow 2.6.0+nv21.11 and keras 2.8.0. Please help. Thanks.

Hi,

It looks like you already installed the package that was built with the same JetPack version:

https://developer.download.nvidia.com/compute/redist/jp/v46/tensorflow/

Would you mind giving the 2.6.2+nv21.12 a try?
If the issue still occurs, could you share the script or source to reproduce the error with us?

Thanks.

Hi, Aasta:
I uninstalled then reinstalled tensorflow 2.6.2+nv21.12, but encountered the same problem. Please refer to below screenshot for details:

Hi, Aasta:
I downgraded keras from 2.8.0 to 2.6.0. It works. I found when installing tensorflow, it will automatically install keras 2.6.0. Previously when I use Jetpack 4.5, I used to use keras 2.8.0. Now I tried to use keras 2.6.0, it also work. So I keep both keras at the the same version, and my software can run now.
But I encountered another problem. I will open a new topic.

Hi,

Thanks for the update.
Good to know Keras works now.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.