Closed leingang closed 6 years ago
Can you show your config file?
-- Chris Warrick https://chriswarrick.com/
On Tue, Jul 10, 2018, 18:49 leingang notifications@github.com wrote:
Environment
Python Version: 3.6.5
Nikola Version: 8.0.0b2
Operating System: macOS High Sierra 10.13.5/Darwin Kernel Version 17.6.0 Description:
I am trying to migrate to Nikola v8 as described in Upgrading to Nikola v8 https://getnikola.com/blog/upgrading-to-nikola-v8.html. I have updated the nikola package, and it builds without errors.
I next wanted to update the metadata, but the nikola plugin command gave me an error:
$ nikola plugin -i upgrade_metadata_v8 Scanning posts.COMPILERS in conf.py does not tell me how to handle '.html' extensions.
I checked in conf.py, and with a print, I can verify that COMPILERS is set to handle .html. But I get the same error as above.
Not every command results in this error, though. For instance, nikola status works fine. And it's not restricted to installing plugins. nikola plugin --url gives the error too.
Digging into the plugin modules, I wonder if the fact that most command plugins have needs_config = True set, but plugin command plugins have needs_config = False.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/getnikola/nikola/issues/3118, or mute the thread https://github.com/notifications/unsubscribe-auth/AAT-mxsS8uFG-HRWvKfhVd0tUBk6BhPGks5uFNsLgaJpZM4VJw36 .
I pasted it into the original post.
Cannot reproduce. Could you push the entire site source somewhere?
For reproduction, I chagned conf.py to yours, created stories/foo.html
and
(nikola) [kwpolska@Kw-Farore n]% tree posts
posts
├── 1.rst
├── asdf.html
├── drupal
│ └── zxcvbnm.html
└── huwp
└── qwerty.html
The error message is also interesting since both the default config and your config include support for .html
files. Also, with a newly created blog, nikola plugin -i ...
never scans posts. So I assume this is triggered by some other plugin you have installed. What do you have in your_nikola_project/plugins
and in ~/.nikola/plugins
?
Closing due to no response and no reproduction in 1.5 months.
Environment
Python Version: 3.6.5
Nikola Version: 8.0.0b2
Operating System: macOS High Sierra 10.13.5/Darwin Kernel Version 17.6.0
Description:
I am trying to migrate to Nikola v8 as described in Upgrading to Nikola v8. I have updated the nikola package, and it builds without errors.
I next wanted to update the metadata, but the
nikola plugin
command gave me an error:I checked in
conf.py
, and with aprint
, I can verify thatCOMPILERS
is set to handle.html
. But I get the same error as above.Not every command results in this error, though. For instance,
nikola status
works fine. And it's not restricted to installing plugins.nikola plugin --url
gives the error too.Digging into the plugin modules, I wonder if the fact that most command plugins have
needs_config = True
set, but plugin command plugins haveneeds_config = False
.Here is my config file: