Nick Moreton

Results 27 comments of Nick Moreton

`temp_image = NamedTemporaryFile(delete=True)` is used when an image is been imported. I'd check the XML for that particular import to see if there are any clues there.

> Python 3.10.2 Is not tested on the released package but: https://github.com/torchbox/wagtail-wordpress-import/pull/157 is soon to be released for Wagtail 3.0+ and includes Python 3.10

Try: ``` fab sh cd cms ./manage.py delete_imported_pages pages PostPage ./manage.py import_xml ../xml/your_xml_file.xml 3 ``` **fab sh**: gets you into the container which is where you need to run the...

> xml.sax._exceptions.SAXParseException: :36839:1152: not well-formed (invalid token) I suspect the XML is problematic at line 36839 I did a search for it: [xml.sax._exceptions.SAXParseException: :36839:1152: not well-formed (invalid token)](https://www.google.com/search?q=xml.sax._exceptions.SAXParseException%3A+%3Cunknown%3E%3A36839%3A1152%3A+not+well-formed+(invalid+token)&oq=xml.sax._exceptions.SAXParseException%3A+%3Cunknown%3E%3A36839%3A1152%3A+not+well-formed+(invalid+token)&aqs=chrome..69i57.330j0j7&sourceid=chrome&ie=UTF-8) that could...

[Reduce XML command](https://github.com/torchbox/wagtail-wordpress-import/blob/main/docs/tooling.md#reduce-xml-command) could help, it removes the comments, that could be where the above is introduced. Of course if you need the comments that won't help 😞

Might I suggest: https://wagtailcms.slack.com/archives/C02NB3SJDL3 where other people could help.

The example image seems to be unavailable now. If you can complete the PR I'd be happy to review it. Thanks