[1.7.x] Fixed #23530 -- Specified PyYAML requirement in initial-data.txt

Thanks aks for the report.
Backport of 5bf654e44b7 from master.