Hailo-apps-Infra Installation completed but with errors detected

Newbie here, can anyone help me if the current version of hailo-apps–infra is compatible with Rpi5 with Hailo8L, as I’m having issue when executing below command:

1. Clone the repository

git clone GitHub - hailo-ai/hailo-apps-infra cd hailo-apps-infra

2. Run the automated installation script

./install.sh

Here’s the error I have got:

ion-0.4.1 tzdata-2025.2 uvicorn-0.35.0 websockets-15.0.1
ð§ Running post-install scriptâ¦
Traceback (most recent call last):
File “/home/json/hailo-apps-infra/venv_hailo_apps/bin/hailo-post-install”, line 7, in
sys.exit(main())
^^^^^^
File “/home/json/hailo-apps-infra/hailo_apps/hailo_app_python/core/installation/post_install.py”, line 147, in main
post_install()
File “/home/json/hailo-apps-infra/hailo_apps/hailo_app_python/core/installation/post_install.py”, line 109, in post_install
handle_dot_env() # this loads the .env file if it exists
^^^^^^^^^^^^^^^^
File “/home/json/hailo-apps-infra/hailo_apps/hailo_app_python/core/installation/set_env.py”, line 25, in handle_dot_env
print(f"\U0001f527 Creating .env file at {env_path}")
UnicodeEncodeError: ‘latin-1’ codec can’t encode character ‘\U0001f527’ in position 0: ordinal not in range(256)

Hi @mjl06 ,

This error is a bit funny. The reason you get UnicodeEncodeError: ‘latin-1’ codec can’t encode character ‘\U0001f527’ in position 0: ordinal not in range(256) is because there’s an emoji, and latin-1 can’t deal with emojis.

This is a quick fix only for the terminal session you run it in. It’ll temporarily force Python to use UTF-8 encoding:


export PYTHONUTF8=1
export PYTHONIOENCODING=UTF-8
export LANG=C.UTF-8
export LC_ALL=C.UTF-8
./install.sh

For a more permanent fix, you’ll need to change your terminal’s default encoding to UTF-8 .

You can replicate this issue with this one-liner: PYTHONIOENCODING=latin-1 python3 -c ‘print(“🔧”)’

5 Likes

Thank you very much, it worked :slight_smile:

1 Like