Issue on Nvidia Jetson Nano and Raspberry Pi V2.1 Camera ( Camera Does Not Open)

Even codes’ beginning is the same, their errors are different and I couldn’t solve both of them.