On Monday, July 13, 2020 at 4:03:50 PM UTC-6, Chris Warrick wrote:
>
> On Mon, 13 Jul 2020 at 22:15, Erik Ritch <[email protected] <javascript:>> 
> wrote: 
> > Ok.  Global plugin folder now contains the sidebar plugin. 
> > 
> > nikola plugin -i sass 
> > [2020-07-13 14:12:19] WARNING: Nikola: None: 
> C:\Users\ejunk\new-env\mysite\plugins, 
> ('C:\\Users\\ejunk\\.nikola\\plugins\\sidebar\\sidebar.plugin', 
> 'C:\\Users\\ejunk\\.nikola\\plugins\\sidebar\\sidebar', 
> <yapsy.PluginInfo.PluginInfo object at 0x000001E544ADA7F0>) 
> > [2020-07-13 14:12:19] WARNING: Nikola: 2: 
> C:\Users\ejunk\new-env\mysite\plugins, 
> ('C:\\Users\\ejunk\\new-env\\mysite\\plugins\\sidebar\\sidebar.plugin', 
> 'C:\\Users\\ejunk\\new-env\\mysite\\plugins\\sidebar\\sidebar', 
> <yapsy.PluginInfo.PluginInfo object at 0x000001E544ADA850>) 
> > Traceback (most recent call last): 
> >   File "c:\program files\python38\lib\runpy.py", line 194, in 
> _run_module_as_main 
> >     return _run_code(code, main_globals, None, 
> >   File "c:\program files\python38\lib\runpy.py", line 87, in _run_code 
> >     exec(code, run_globals) 
> >   File "C:\Users\ejunk\new-env\Scripts\nikola.exe\__main__.py", line 7, 
> in <module> 
> >   File "c:\users\ejunk\new-env\lib\site-packages\nikola\__main__.py", 
> line 167, in main 
> >     _ = DN.run(oargs) 
> >   File "c:\users\ejunk\new-env\lib\site-packages\nikola\__main__.py", 
> line 341, in run 
> >     self.nikola.init_plugins(load_all=True) 
> >   File "c:\users\ejunk\new-env\lib\site-packages\nikola\nikola.py", line 
> 1075, in init_plugins 
> >     self.plugin_manager._candidates = 
> self._filter_duplicate_plugins(self.plugin_manager._candidates) 
> >   File "c:\users\ejunk\new-env\lib\site-packages\nikola\nikola.py", line 
> 998, in _filter_duplicate_plugins 
> >     plugins.sort(key=plugin_position_in_places) 
> > TypeError: '<' not supported between instances of 'int' and 'NoneType' 
> > 
> > Is that the debug information that you need? 
>
> Yes. That ended up being a classic slashes-vs-backslashes bug in a 
> place that isn’t exercised too often (Windows + user-wide plugins + 
> duplicates in site is a very specific combination). Here's a PR to fix 
> it: https://github.com/getnikola/nikola/pull/3438 
>
> -- 
> Chris Warrick <https://chriswarrick.com/> 
> PGP: 5EAAEA16 
>

Ahh, path handling in Windows vs Linux.  Whenever I write a python program 
under Windows, I absolutely hate path handling.  Thanks for the patch and, 
yes, I imagine this would be a super-edge case. 

-- 
You received this message because you are subscribed to the Google Groups 
"nikola-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nikola-discuss/0728495e-9d82-459d-90dd-5087d47f6a72o%40googlegroups.com.

Reply via email to