Following the docs, I'm trying to use the wordpress_compiler. It appears to install correctly, I've added the requisite elements to my conf.py, but I get an error when trying to run. I'm on Ubuntu 20.04, Python 3.8.
(nikola)
nikola plugin -i wordpress_compiler[2020-11-21 13:05:49] INFO: plugin: Downloading '
https://plugins.getnikola.com/v7/wordpress_compiler.zip'
[2020-11-21 13:05:49] INFO: plugin: Extracting: wordpress_compiler into plugins/
[2020-11-21 13:05:49] WARNING: plugin: This plugin has Python dependencies.
[2020-11-21 13:05:49] INFO: plugin: Installing dependencies with pip...
Requirement already satisfied: regex in /home/don/devel/pythonProject/nikola/lib/python3.8/site-packages (from -r plugins/wordpress_compiler/requirements.txt (line 1)) (2020.11.13)
Requirement already satisfied: pygments in /home/don/devel/pythonProject/nikola/lib/python3.8/site-packages (from -r plugins/wordpress_compiler/requirements.txt (line 2)) (2.7.2)
[2020-11-21 13:05:50] INFO: plugin:
Dependency installation succeeded.[2020-11-21 13:05:50] WARNING: plugin: This plugin has a sample config file. Integrate it with yours in order to make this plugin work!
Contents of the conf.py.sample file:
# Add WordPress files to your POSTS, PAGES
POSTS = POSTS + (("posts/*.wp", "posts", "post.tmpl"),)
PAGES = PAGES + (("stories/*.wp", "stories", "story.tmpl"),)
# Add the WordPress compiler to your COMPILERS dict.
COMPILERS["wordpress"] = ('.wp',)
(nikola) xxx$
nikola import_wordpress --transform-to-html "/home/don/Documents/Nikola/s1.xml" ./sst2
[2020-11-21 13:06:08] ERROR: import_wordpress: To compile WordPress posts to HTML, the
WordPress post compiler is needed. You can install it via:
[2020-11-21 13:06:08] ERROR: import_wordpress: nikola plugin -i wordpress_compiler
[2020-11-21 13:06:08] ERROR: import_wordpress: Please note that the WordPress post compiler is licensed under the GPL v2.