Jetson Nano python script could not open Raspberry Pi V2 Camera

I’m currently trying to use Raspberry Pi V2 Camera connected to Jetson Nano to perform Aruco Marker detection.

I’ve run this code in Jetson Nano and it works fine:
gst-launch-1.0 nvarguscamerasrc sensor_id=0 !
‘video/x-raw(memory:NVMM),width=1920, height=1080, framerate=30/1’ !
nvvidconv flip-method=0 ! ‘video/x-raw,width=960, height=540’ !
nvvidconv ! nvegltransform ! nveglglessink -e

I checked with v4l2-ctl --list-devices and it shows /dev/video0 which means the camera is connected without any issue

But when I try to follow CSI-Camera’s guide to start the camera using python script it shows “Error: Unable to open camera”

Can anyone help?