﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
32978	Provide more informative error message on loaddata/dumpdata --format yaml when PyYAML not installed	Brad	nobody	"While the  docs at https://docs.djangoproject.com/en/3.2/topics/serialization/#serialization-formats do mention that PyYAML is required for the yaml serializer, `./manage.py dumpdata|loaddata --format yaml`, provides quite a sparse error message, ""Unable to serialize database: module yaml not found"" (from here: https://github.com/django/django/blob/fbb1984046ae00bdf0b894a6b63294395da1cce8/django/core/management/commands/dumpdata.py#L245) if PyYAML is not installed.

This could be especially confusing for new Django developers who are not aware that `yaml` is pointing to the PyYAML project on PyPI and is not a part of Django. Since yaml is the only one of the four serializers requiring an add-on third party package, it may be helpful to provide a more verbose error in this case."	Uncategorized	new	Core (Management commands)	3.2	Normal		serializers,yaml,dumpdata,loaddata		Unreviewed	0	0	0	0	0	0
