#Script/Setup fails - Trouble setting up HA locally for development on a Ubuntu WSL instance

1 messages · Page 1 of 1 (latest)

buoyant ingot
#

Hi, trying to setup up a local development environment on a Windows machine. I have setup an Ubuntu instance via WSL 2

I have followed the Home Assistant guides: https://www.home-assistant.io/installation/windows/#install-home-assistant-core and https://developers.home-assistant.io/docs/development_environment/#developing-on-ubuntu--debian

After cloning a fork of the Core-repo and running the script/setup command I run into the attached error (during installation of the PyYAML dependency)

Things I have tried:

  • I have tried to manually install the PyYAML depedency using: python3 -m pip install PyYAML==5.4.1
  • Tried running the following that I found worked for someone:
echo "cython<3" > /tmp/constraint.txt
PIP_CONSTRAINT=/tmp/constraint.txt pip install -r requirements.txt

Tried on two different WSL instances:

  • Ubuntu instance with pyenv for upgrading to Python 3.13.1
  • A brand new Ubuntu instance, using the default system Python 3.12.3 version
Home Assistant

Install Home Assistant on Windows

You'll need to set up a development environment if you want to develop a new feature or component for Home Assistant. Read on to learn how to set up.