Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 860087 - www-apps/nikola-8.2.2-r1: breakage with >=dev-python/markdown-3.4
Summary: www-apps/nikola-8.2.2-r1: breakage with >=dev-python/markdown-3.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Ulrich Müller
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-22 12:30 UTC by Ulrich Müller
Modified: 2022-07-22 19:00 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Müller gentoo-dev 2022-07-22 12:30:39 UTC
At runtime:

$ nikola build -a
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.10/nikola", line 33, in <module>
    sys.exit(load_entry_point('Nikola==8.2.2', 'console_scripts', 'nikola')())
  File "/usr/lib/python3.10/site-packages/nikola/__main__.py", line 166, in main
    _ = DN.run(oargs)
  File "/usr/lib/python3.10/site-packages/nikola/__main__.py", line 354, in run
    self.nikola.init_plugins()
  File "/usr/lib/python3.10/site-packages/nikola/nikola.py", line 1173, in init_plugins
    plugin_info.plugin_object.set_site(self)
  File "/usr/lib/python3.10/site-packages/nikola/plugins/compile/markdown/__init__.py", line 105, in set_site
    self.converters[lang] = ThreadLocalMarkdown(extensions, lang_extension_configs)
  File "/usr/lib/python3.10/site-packages/nikola/plugins/compile/markdown/__init__.py", line 59, in __init__
    self.markdown = Markdown(extensions=extensions, extension_configs=extension_configs, output_format="html5")
  File "/usr/lib/python3.10/site-packages/markdown/core.py", line 96, in __init__
    self.registerExtensions(extensions=kwargs.get('extensions', []),
  File "/usr/lib/python3.10/site-packages/markdown/core.py", line 131, in registerExtensions
    raise TypeError(
TypeError: Extension "yapsy_loaded_plugin_mdx_gist_0.GistExtension" must be of type: "markdown.extensions.Extension"

I see this with markdown-3.4 and 3.4.1. The problem disappears after downgrading to markdown-3.3.7.
Comment 1 Larry the Git Cow gentoo-dev 2022-07-22 12:36:12 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e95ffb55b4b40e9bc7599c1bb513575728fb2c9

commit 0e95ffb55b4b40e9bc7599c1bb513575728fb2c9
Author:     Ulrich Müller <ulm@gentoo.org>
AuthorDate: 2022-07-22 12:31:59 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2022-07-22 12:36:05 +0000

    www-apps/nikola: Depend on <dev-python/markdown-3.4
    
    This works around breakage at runtime.
    
    Bug: https://bugs.gentoo.org/860087
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>

 www-apps/nikola/nikola-8.2.2-r1.ebuild | 1 +
 1 file changed, 1 insertion(+)
Comment 2 Larry the Git Cow gentoo-dev 2022-07-22 19:00:53 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6637557f1b4ae76e05299a6f4cead4aed80179ba

commit 6637557f1b4ae76e05299a6f4cead4aed80179ba
Author:     Ulrich Müller <ulm@gentoo.org>
AuthorDate: 2022-07-22 18:59:17 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2022-07-22 19:00:50 +0000

    www-apps/nikola: Fix runtime error with >=dev-python/markdown-3.4
    
    Closes: https://bugs.gentoo.org/860087
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>

 .../nikola/files/nikola-8.2.2-markdown-3.4.patch   | 49 +++++++++++++++++
 www-apps/nikola/nikola-8.2.2-r2.ebuild             | 62 ++++++++++++++++++++++
 2 files changed, 111 insertions(+)