I want to use python3.8
So I upgrade my jetson nano ubuntu from 18.04 to 20.04
the code which I can run successfully in 18.04 have error in 20.04
How can I solve these problems? Thanks a lot
I had check there is no problem in hardware device
code:
from jetcam.csi_camera import CSICamera
camera = CSICamera(width=640, height=480)
image = camera.read()
error:
RuntimeError Traceback (most recent call last)
File /usr/local/lib/python3.8/dist-packages/jetcam-0.0.0-py3.8.egg/jetcam/csi_camera.py:24, in CSICamera.init(self, *args, **kwargs)
23 if not re:
—> 24 raise RuntimeError(‘Could not read image from camera.’)
25 except:
RuntimeError: Could not read image from camera.
During handling of the above exception, another exception occurred:
RuntimeError Traceback (most recent call last)
Cell In[2], line 2
1 from jetcam.csi_camera import CSICamera
----> 2 camera = CSICamera(width=640, height=480)
3 image = camera.read()
File /usr/local/lib/python3.8/dist-packages/jetcam-0.0.0-py3.8.egg/jetcam/csi_camera.py:26, in CSICamera.init(self, *args, **kwargs)
24 raise RuntimeError(‘Could not read image from camera.’)
25 except:
—> 26 raise RuntimeError(
27 ‘Could not initialize camera. Please see error trace.’)
29 atexit.register(self.cap.release)
RuntimeError: Could not initialize camera. Please see error trace.