-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unexpected keyword argument 'delete' #158
Comments
Not seen that error before. Can you tell me about your Python, Django and Wagtail versions in use? |
Python 3.10.2 |
Looks like you are using windows and virtual env which shouldn't be an issue. Can you try this test setup with your XML file, it runs in docker and on gitpod.io https://gitpod.io/#github.com/nickmoreton/wwi-docker-develop You can copy in your XML file and run the import on it. |
We haven't tried it on CoderedCms but I don't think that would be the cause. |
|
Is not tested on the released package but: #157 is soon to be released for Wagtail 3.0+ and includes Python 3.10 |
I uploaded xml to gitpod. |
Try:
fab sh: gets you into the container which is where you need to run the commands from, thats why you are seeing You could put your xml file anywhere and use the path to it's location. The page id |
Different error
|
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) that could help you. |
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. |
I looked into this a bit myself, since I was experiencing the same issue. It seems that the Django implementation of NamedTemporaryFile has special logic on windows only. Part of this special logic is that it does not accept the Delete keyword: https://github.com/django/django/blob/4bf4222010fd8e413963c6c873e4088614332ef9/django/core/files/temp.py#L34 |
Hi, i am trying import wp xml file, but getting error.
The text was updated successfully, but these errors were encountered: