Run clip and get error

I follow this guid:GitHub - hailo-ai/hailo-CLIP: Real-time zero-shot classifier app
and get error:

ain@raspberrypi:~/hailo-CLIP $ source setup_env.sh
Setting up the environment...
Setting up the environment for hailo-tappas-core...
TAPPAS_VERSION is 3.28.2. Proceeding...
You are not in the hailo_clip_venv virtual environment.
Virtual environment exists. Activating...
TAPPAS_POST_PROC_DIR set to /usr/lib/aarch64-linux-gnu/hailo/tappas//post-process/
DEVICE_ARCHITECTURE is set to: HAILO8L
(hailo_clip_venv) ain@raspberrypi:~/hailo-CLIP $ python3 -m pip install -v -e .
Using pip 24.2 from /home/ain/hailo-CLIP/hailo_clip_venv/lib/python3.10/site-packages/pip (python 3.10)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Obtaining file:///home/ain/hailo-CLIP
  Running command pip subprocess to install build dependencies
  Using pip 24.2 from /home/ain/hailo-CLIP/hailo_clip_venv/lib/python3.10/site-packages/pip (python 3.10)
  Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple, https://www.piwheels.org/simple
  Collecting setuptools>=40.8.0
    Using cached https://www.piwheels.org/simple/setuptools/setuptools-74.1.2-py3-none-any.whl (1.3 MB)
  Installing collected packages: setuptools
  Successfully installed setuptools-74.1.2
  Installing build dependencies ... done
  Running command Checking if build backend supports build_editable
  Checking if build backend supports build_editable ... done
  Running command Getting requirements to build editable
  ERROR:__main__:Hailo python package not found. Please make sure you're in the Hailo virtual environment. Run 'source setup_env.sh' and try again.
  error: subprocess-exited-with-error
  
  × Getting requirements to build editable did not run successfully.
  │ exit code: 1
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  full command: /home/ain/hailo-CLIP/hailo_clip_venv/bin/python3 /home/ain/hailo-CLIP/hailo_clip_venv/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py get_requires_for_build_editable /tmp/tmp7blcf6oe
  cwd: /home/ain/hailo-CLIP
  Getting requirements to build editable ... error
error: subprocess-exited-with-error

× Getting requirements to build editable did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Hi, I think you made some changes to the default Python version on your Pi. The default for Raspberry Pi should be Python 3.11, but I see from your log that you’re using Python 3.10.

Our installation package installs dependencies for Python 3.11, so you won’t see them when using Python 3.10.

Additionally, your TAPPAS core version is 3.28.2. I suggest switching to our latest release.

I have update the tapps and python, I get error like below:

(hailo_clip_venv) ain@raspberrypi:~/hailo-CLIP $ clip_app --input demo
2024-09-09 18:38:04,425 - clip_app.logger_setup - INFO - PIPELINE:
gst-launch-1.0 uridecodebin uri=file:///home/ain/hailo-CLIP/resources/clip_example.mp4 ! queue leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 silent=true  ! videoscale ! queue leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 silent=true  name=src_convert_queue ! videoconvert n-threads=2 ! video/x-raw, width={1280}, height={720}, format=RGB  !         tee name=clip_t hailomuxer name=clip_hmux         clip_t. ! queue leaky=no max-size-buffers=20 max-size-bytes=0 max-size-time=0 silent=true name=clip_bypass_q  ! clip_hmux.sink_0         clip_t. ! queue leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 silent=true  ! videoscale n-threads=4 qos=false ! queue leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 silent=true  name=pre_clip_net !         hailonet hef-path=/home/ain/hailo-CLIP/resources/clip_resnet_50x4_h8l.hef batch-size=8 vdevice-key=1         multi-process-service=false scheduler-timeout-ms=1000 !         queue leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 silent=true  !         hailofilter so-path=/home/ain/hailo-CLIP/resources/libclip_post.so qos=false !         queue leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 silent=true  ! clip_hmux.sink_1         clip_hmux. ! queue leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 silent=true   !          hailopython name=pyproc module=/home/ain/hailo-CLIP/clip_app/clip_hailopython.py qos=false  !         queue leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 silent=true  !         identity name=identity_callback !         queue leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 silent=true  !         hailooverlay local-gallery=false show-confidence=true font-thickness=2 qos=false  ! 	    queue leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0 silent=true  ! videoconvert n-threads=2 !                             fpsdisplaysink name=hailo_display video-sink=xvimagesink sync=true text-overlay=False 
2024-09-09 18:38:08,290 - clip_app.logger_setup - INFO - Loading model RN50x4 on device cpu, this might take a while...
100%|███████████████████████████████████████| 402M/402M [00:45<00:00, 9.27MiB/s]
2024-09-09 18:39:02,538 - clip_app.logger_setup - INFO - Using clip for text embedding
2024-09-09 18:39:02,538 - clip_app.logger_setup - INFO - Loading embeddings from /home/ain/hailo-CLIP/example_embeddings.json

2024-09-09 18:39:03,324 - clip_app.logger_setup - INFO - Pipeline state changed to PLAYING successfully.
2024-09-09 18:39:28,089 - clip_app.logger_setup - INFO - EOS received, shutting down the pipeline.

Please try to run again. In the first run it downloads the model.
I don’t see an error, ‘EOS received, shutting down the pipeline’ is expected at the end of the video (End Of Stream)

Problem solved. Thank you very much!

I use raspberry pi 4 and get this error.

It seems the latest hailo-all does not support pi4.