Error preparing edx-platform repo

I have just rebuilt a tutor dev server twice and both times I appear to be getting the following error whilst trying to build the openedx assets as per this guide:

openedx@0def8e0f96c3:~/edx-platform$ openedx-assets build --env=dev
Traceback (most recent call last):
  File "/openedx/bin/openedx-assets", line 11, in <module>
    from pavelib import assets
ImportError: No module named 'pavelib'

There appears to be a python sys path issue with it not looking in edx-platform for pavelib.
I tried including the path to the edx-platform directory, but then it starts complaining about importing openedx.core or something.

Anyone else encountered this/know how to fix it?

I have found a way to run the “openedx-assets build” command without the paver issue, but this still does not allow me to run the dev server.

Commands used below along with error.
I am using the latest version of Tutor.

export TUTOR_EDX_PLATFORM_PATH=/home/azureuser/edx-platform
tutor dev run lms pip install --requirement requirements/edx/development.txt
tutor dev run lms python install
tutor dev run lms openedx-assets build --env=dev

Error on starting dev server: