jetcam icon indicating copy to clipboard operation
jetcam copied to clipboard

ModuleNotFoundError: No module named 'jetcam'

Open huohsien opened this issue 5 years ago • 6 comments

After running "sudo python3 setup.py install" and got no apparent error message I went on running the notebook 'csi_camera.ipnb' but got the error message: ModuleNotFoundError: No module named 'jetcam'

huohsien avatar Jul 11 '19 06:07 huohsien

did you run sudo ldconfig?

kenakune avatar Jul 23 '19 03:07 kenakune

@huohsien , after you setup with command 'sudo python3 setup.py install', you could see info from screen like this:Installed /usr/local/lib/python/dist-packages/jetcam-.0.0.0-python.egg. just added file path with file name to your py file with sys.path.insert, then your file can find jetcam

beyondli avatar Nov 20 '19 03:11 beyondli

Any updates on this issue? I have tried all I can think of and still getting this error when I run the jetcam csi camera example:

ModuleNotFoundErrorTraceback (most recent call last)
<ipython-input-2-dae08cdf7ca7> in <module>
----> 1 from jetcam.csi_camera import CSICamera
      2 
      3 camera = CSICamera(width=224, height=224)

ModuleNotFoundError: No module named 'jetcam'

I tried installing JetCam before installing JetBot container and after. Run ldconfig, but upon loading in Jupiter I always get this error. If I use a python3 shell it loads just fine with no errors. Adding the egg file path to the example doesn't work either.

running from jetbot import Camera, bgr8_to_jpeg works also in the jetbot notebooks.

I feel there is something obvious I'm missing... Any ideas or help is appreciated.

kritch83 avatar Nov 16 '20 15:11 kritch83

It is Due to the reason you might not have installed the Jetcam install the jetcam from https://github.com/NVIDIA-AI-IOT/jetcam The problem should be solved.......

If it continues after installation configure the Python Environment everything should work fine..

@kritch83 @huohsien

Aravindseenu avatar Nov 22 '20 13:11 Aravindseenu

If your file name is "jetcam.py",consider renaming it.

ZhengJunyan avatar Jun 20 '21 12:06 ZhengJunyan

@huohsien , after you setup with command 'sudo python3 setup.py install', you could see info from screen like this:Installed /usr/local/lib/python/dist-packages/jetcam-.0.0.0-python.egg. just added file path with file name to your py file with sys.path.insert, then your file can find jetcam

this worked for me.

augix avatar Jan 06 '23 16:01 augix