I am using jetpack 4.5.1 and cv2 which was built (without qt5) using instructions at Install OpenCV 4.5 on Jetson Nano - Q-engineering
its currently using cv2 4.5.1 (just an attempt to see if a downgrade helped the issue)
Simply put, in Python3 if import cv2 is put first it works - if put anywhere else it gives ‘segmentation fault (core dump)’
… working
Honey, I dont think I understand your suggestion.
you have to import cv2 to see numpy.version.version (or numpy.__version__)
If you try to view that after only import cv2 or imprt dlib then you get an error.
What I can see is that there is only one version numpy on the machine (1.13.3) and that seems to be the default. This was installed early in the build and then both cv2 and dlib have been built after that. cv2 will tell me what its using but I cant see a way to get the same info from dlib. But dlib list this as a python dependancy rather than a build/link module,
MtHiker,
Sorry for the late reply - I am sure you know how things can get in the way of active investigations.
Anyway I am back on Jetson now
the output of command 'LD_DEBUG=files python3 -c "import cv2"''
(note ‘python3’ not just ‘python’ which goes to python2)
is in debug_out_just_import_cv2.txt its over 3000 lines so I haven’t pasted it.
BUT just importing cv2 does not cause an error
What does is the following python code
invoking this with LD_DEBUG=files python3 ~/OpenCV_jet/check_lib_versions3.py
gives the segfault_debug_trace1.txt file, it is a couple of thousand lines too.
I have no idea what to look for in here - could you please give me a hint?