roflcoopter / viseron

Self-hosted, local only NVR and AI Computer Vision software. With features such as object detection, motion detection, face recognition and more, it gives you the power to keep an eye on your home, office or any other place you want to monitor.
MIT License
1.51k stars 155 forks source link

Jetson nano viseron: No module named 'gi' #671

Closed RyanPostema closed 9 months ago

RyanPostema commented 9 months ago

Hi, hope you are doing well!

Recently i tried running the jetson nano viseron image, and as described is the documentation, tried configuring the gstreamer component.

During startup i get the following error:

Failed to load component gstreamer: No module named 'gi'

subsequent components also fail, as this is the only camera.

All this was tested on 2.3.0 jetson nano viseron (or latest.) I already tried finding a work around, but had no success. the sys.path python path (python3.8.5) did not contain any gi, linking gi to this path did not work, because of a circular import error.

2.2.0 seems to at least not give the same error.

Please let me know if i can do anything else.

roflcoopter commented 9 months ago

Seems to be a problem because the container installs python 3.8, but the installed python3-gi encounters a conflict with python 3.6 for some reason.

Will see if i can install gi from pip instead of apt

roflcoopter commented 9 months ago

I think i fixed the issue, builds are in progress currently, will let you know when its ready to test

RyanPostema commented 9 months ago

hi @roflcoopter!

What a quick response! I am currently pulling the new image (2.3.1) and will let you know the result.

RyanPostema commented 9 months ago

Hi Jesper,

I pulled the new image, and successfully started viseron!

Thank you again for the quick response!

roflcoopter commented 9 months ago

Great, thanks for verifying!