setup help with rpi5 and setup_env

up and running on a rpi5- cannot get source setup_env.sh to work. somewhat of a newbie to some of this- appreciate the help. here is the error i get.
artyface@raspberrypi:/hailo-rpi5-examples $ source setup_env.sh
Setting up the environment…
Setting up the environment for hailo-tappas-core…
TAPPAS_VERSION is 3.29.1. Proceeding…
You are not in the venv_hailo_rpi5_examples virtual environment.
Virtual environment exists. Activating…
bash: source: /hailo-rpi5-examples/venv_hailo_rpi5_examples/bin/activate: is a directory
TAPPAS_POST_PROC_DIR set to /usr/lib/aarch64-linux-gnu/hailo/tappas/post_processes
HailoRT warning: Cannot create log file hailort.log! Please check the directory . write permissions.
DEVICE_ARCHITECTURE is set to: HAILO8L
artyface@raspberrypi:/hailo-rpi5-examples $

Hey @pfefferprogram,

Welcome to the Hailo Community! I see you’re having some issues with your setup. Let’s address them step by step:

  1. First, let’s make sure your virtual environment is set up correctly:

    python3 -m venv venv_hailo_rpi5_examples
    source venv_hailo_rpi5_examples/bin/activate
    

    This will create the virtual environment if it doesn’t exist and activate it.

  2. Now, let’s fix the write permissions for the log file:

    sudo chmod +w /hailo-rpi5-examples
    sudo source setup_env.sh
    

    This should give you the necessary permissions and set up your environment.

After applying these fixes, try running your script again. If you run into any more problems, don’t hesitate to reach out. We’re here to help!

Best regards,
Omri

Thank you- i completed both steps, however am still not getting setup_env.sh to complete. if i run it with sudo i get an error as well. i really appreciate the help!

Could you please verify if you can enter the virtual environment by running:

source ./venv_dir/bin/activate

Also, please check if you can execute the following command:

chmod 777 setup_env.sh

If this doesn’t help you , can you please share the error you are facing when trying to activate the env.