Bookworm upgrade

looks like a bookworm update killed my install- had the face detection working once via USB cam, and now get nothing, even with the detection.py example.
error output: (venv_hailo_rpi5_examples) artyface@raspberrypi:~/Hailo/hailo-rpi5-examples $ python basic_pipelines/detection.py
Auto-detected Hailo architecture: hailo8l
filesrc location=“/home/artyface/Hailo/hailo-rpi5-examples/basic_pipelines/…/resources/detection0.mp4” name=source ! queue name=source_queue_dec264 leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 ! qtdemux ! h264parse ! avdec_h264 max-threads=2 ! queue name=source_scale_q leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 ! videoscale name=source_videoscale n-threads=2 ! queue name=source_convert_q leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 ! videoconvert n-threads=3 name=source_convert qos=false ! video/x-raw, format=RGB, pixel-aspect-ratio=1/1 ! queue name=inference_scale_q leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 ! videoscale name=inference_videoscale n-threads=2 qos=false ! queue name=inference_convert_q leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 ! video/x-raw, pixel-aspect-ratio=1/1 ! videoconvert name=inference_videoconvert n-threads=2 ! queue name=inference_hailonet_q leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 ! hailonet name=inference_hailonet hef-path=/home/artyface/Hailo/hailo-rpi5-examples/basic_pipelines/…/resources/yolov8s_h8l.hef batch-size=2 nms-score-threshold=0.3 nms-iou-threshold=0.45 output-format-type=HAILO_FORMAT_TYPE_FLOAT32 force-writable=true ! queue name=inference_hailofilter_q leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 ! hailofilter name=inference_hailofilter so-path=/home/artyface/Hailo/hailo-rpi5-examples/basic_pipelines/…/resources/libyolo_hailortpp_postprocess.so qos=false ! queue name=identity_callback_q leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 ! identity name=identity_callback ! queue name=hailo_display_hailooverlay_q leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 ! hailooverlay name=hailo_display_hailooverlay ! queue name=hailo_display_videoconvert_q leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 ! videoconvert name=hailo_display_videoconvert n-threads=2 qos=false ! queue name=hailo_display_q leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 ! fpsdisplaysink name=hailo_display video-sink=xvimagesink sync=true text-overlay=false signal-fps-measurements=true
Showing FPS
Error: gst-resource-error-quark: Could not initialise Xv output (10), …/sys/xvimage/xvimagesink.c(1944): gst_xv_image_sink_open (): /GstPipeline:pipeline0/GstFPSDisplaySink:hailo_display/GstXvImageSink:xvimagesink0:
Could not open display (null)
Shutting down… Hit Ctrl-C again to force quit.

Hey @pfefferprogram,

Your GStreamer pipeline issue appears to stem from the xvimagesink element failing to access the display environment. Here’s how to fix it:

  1. Try a Different Video Sink

    # Replace xvimagesink with either of these:
    fpsdisplaysink name=hailo_display video-sink=ximagesink sync=true text-overlay=false signal-fps-measurements=true
    # OR
    fpsdisplaysink name=hailo_display video-sink=autovideosink sync=true text-overlay=false signal-fps-measurements=true
    
  2. For Headless Systems
    If you’re running this via SSH or without a display, set up a virtual display:

    sudo apt-get install xvfb
    Xvfb :99 -screen 0 1024x768x16 &
    export DISPLAY=:99
    

Let me know if you need any clarification!

Thank you- I am assuming I run either of those options in setup_env.sh and then run the python program?