jpadilla / django-rest-framework-xml

XML support for Django REST Framework
http://jpadilla.github.io/django-rest-framework-xml
BSD 3-Clause "New" or "Revised" License
85 stars 59 forks source link

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

Open DanBuchan opened 5 years ago

DanBuchan commented 5 years ago

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

kevin-brown commented 4 years ago

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

DanBuchan commented 4 years ago

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