django-rest-framework-xml icon indicating copy to clipboard operation
django-rest-framework-xml copied to clipboard

Can't start django 1.11.3 application after python3.6 upgrade

Open DanBuchan opened this issue 5 years ago • 2 comments

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

DanBuchan avatar Apr 05 '19 14:04 DanBuchan

That error sounds pretty similar to https://github.com/tiran/defusedxml/issues/3, have you tried upgrading your defusedxml version?

kevin-brown avatar Sep 18 '19 01:09 kevin-brown

My temporary (and ongoing) workaround was to comment out XMLParser support but I will look in to your suggestion when I get a moment.

DanBuchan avatar Sep 24 '19 12:09 DanBuchan