OpenCV python error running on Xavier related to cv2 preferableBackend or preferableTarget not found

Can anyone shed some light on this error? The program runs on my Intel Nuc running Ubuntu 21.04, but I would like to get it running on my Jetson Xavier Nx.

The error:

detections = net.forward()
cv2.error: OpenCV(4.5.1) /tmp/pip-req-build-zuuo394f/opencv/modules/dnn/src/dnn.cpp:1379: error: (-215:Assertion failed) preferableBackend != DNN_BACKEND_OPENCV || preferableTarget == DNN_TARGET_CPU || preferableTarget == DNN_TARGET_OPENCL || preferableTarget == DNN_TARGET_OPENCL_FP16 in function ‘setUpNet’

Jetpack: 4.5.1
OpenCV: 4.5.2 compiled with Cuda: YES
CUDA: 10.2.89
cuDNN: 8.0.180

Model files
MobileNetSSD_deploy.caffemodel
MobileNetSSD_deploy.prototxt

Installed cv2 4.5.2 from source using script found at GitHub - mdegans/nano_build_opencv: Build OpenCV on Nvidia Jetson Nano
then “pip3 install opencv-python==4.5.1.48”

Thanks in advance.

hi rymd80:
if running OpenCV on Jetson, the best way is flashed it with JectPack together, NOT from other repo, only SDKs from JectPack is NV compatibility guaranteed