Jetson-Inference on Jetson nano not detecting pi cam (CSI)

Hi,

I am playing around with the jetson-inference repo by dusty-nv in particular the detecnet parts (https://github.com/dusty-nv/jetson-inference/blob/master/docs/detectnet-camera.md)

When I use the Pi Cam v2, I am unable to run the ./detectnet-camera.py scripts and i get the following error

Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, execute:521 No cameras available

It works fine when i use a webcam.

Also, the pi cam works fine on another nano, i’ve tested it using the gst-launch commands to do a simple capture.

So im really not sure what’s wrong. Any help?

Wasn’t installed properly, moved it around a fair few times, now it works.