Using Jetson Nano BO1 and doing the DLI course - “Getting Started with AI on Jetson Nano”
CSI Camera (Rasberry Pi camera V2.1) connected to 1st slot
Ubuntu 18.04.6 and Docker version 20.10.21
connected to Nano using SSH
Issue: While on the Jupyter Notebook, I was in the csi_camera.ipynb file and was running the code. When running the first code to see if the device was available, it was there. Here is the code:
!ls -ltrh /dev/video*
result:
crw-rw---- 1 root video 81, 0 Aug 23 21:38 /dev/video0
But when I ran the next line of code, I got an error message.
The code:
from jetcam.csi_camera import CSICamera
camera = CSICamera(width=224, height=224, capture_device=0) # confirm the capture_device number
I got this error message:
ImportError Traceback (most recent call last)
in
----> 1 from jetcam.csi_camera import CSICamera
2
3 camera = CSICamera(width=224, height=224, capture_device=0) # confirm the capture_device number
/usr/local/lib/python3.6/dist-packages/jetcam-0.0.0-py3.6.egg/jetcam/init.py in
----> 1 from .camera import Camera
/usr/local/lib/python3.6/dist-packages/jetcam-0.0.0-py3.6.egg/jetcam/camera.py in
1 import traitlets
2 import threading
----> 3 import numpy as np
4
5
/usr/local/lib/python3.6/dist-packages/numpy/init.py in
129 raise ImportError(msg)
130
→ 131 from .version import git_revision as git_revision
132 from .version import version as version
133
ImportError: cannot import name ‘git_revision’
What I’ve tried: is using older versions of docker and then re-updating it. I tried using the fix on this post: “Not Able to Access CSI Camera in Jetson Nano DLI Course Container” but it did not work. I also tried updating Ubuntu.