Error on installation - Ubuntu 22.04 We are not able to run /usr/local/CyberPanel/bin/python manage.py

I am doing a new installation of Cyberpanel and repeatedly get this error:

[ERROR] We are not able to run /usr/local/CyberPanel/bin/python manage.py makemigrations return code: 1. Fatal error, see /var/log/installLogs.txt for full details.

I have got this error twice, both times after a fresh installation of Ubuntu 22.04. I have followed the installation instructions here. The first time I logged in as non-root and used the sudo command, the second time as root. Both times the result was the same.

Any help would be much appreciated.

Hardware: 16 GB RAM, 256 GB SSD, local server.