-
Notifications
You must be signed in to change notification settings - Fork 465
import_wordpress: TypeError: 'bool' object is not subscriptable #3810
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
Comments
You should be able to upload the XML export here or somewhere else. It’s possible that WordPress changed their file structure or something. |
The wordpress export: |
I fixed this issue, I am not sure how i can assign myself to this issue, but i fixed it and tested it, the issue was happening becasue the importer code always assumed that sizes was a dictionary, the false in the PHP-serialized data turned into a python boolean and iterating that was not allowed so it raised the error, so now if there is somethng that we dont want what we want we skip it and everything else works as it should, so no more error. I have made a pull request for it, hopefully if it is fine and approved you should be able to import your file. |
Environment
Python Version: 3.13
Nikola Version: 8.3.1 (also tested with git)
Operating System: Arch Linux
Description:
I wanted to import the WordPress export from the site of one of my side projects to nikola and got the following error:
If you would like to have the wordpress xml export, can you tell me a way on how I can provide it?
The text was updated successfully, but these errors were encountered: