Issue seems to be with building Python module PyYAML-5.4.
I found 2 similar issues at MycroftAI GitHub account
- Error building on Raspberry Pi OS bookworm. · Issue #3159 · MycroftAI/mycroft-core · GitHub
- MYCROFT NOT WORKING ON KUBUNTU SHOWING ERROR OF WHILE INSTALLING PY YAML AND SHOWING ERROR WHEN I AM TRYING TO RUN · Issue #3160 · MycroftAI/mycroft-core · GitHub
Unfortunately no solution on this.
But on the link you shared above, a possible workaround is describe
Means, you need to do following before running the install again
G_CONFIG_INJECT 'PyYAML==' 'PyYAML==6.0.1' /mnt/dietpi_userdata/mycroft-core/requirements/requirements.txt
dietpi-software install 176