django-rest-framework-xml
django-rest-framework-xml copied to clipboard
Can't start django 1.11.3 application after python3.6 upgrade
python 3.6 Django 1.11.3 djangorestframework 3.6.3 djangorestframework-xml 1.3.0
Starting application returns: ImportError: Could not import 'rest_framework_xml.parsers.XMLParser' for API setting 'DEFAULT_PARSER_CLASSES'. AttributeError: module 'xml.etree.ElementTree' has no attribute '_IterParseIterator'.
Have tried djangorestframework-xml 1.4.0 and all version of djangorestframework from 3.6.3 to 3.9.0
That error sounds pretty similar to https://github.com/tiran/defusedxml/issues/3, have you tried upgrading your defusedxml version?
My temporary (and ongoing) workaround was to comment out XMLParser support but I will look in to your suggestion when I get a moment.