Skip to content
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

Runtime error with Python-Markdown 3.4.1 #3636

Closed
ulm opened this issue Jul 22, 2022 · 1 comment
Closed

Runtime error with Python-Markdown 3.4.1 #3636

ulm opened this issue Jul 22, 2022 · 1 comment
Labels

Comments

@ulm
Copy link

ulm commented Jul 22, 2022

Environment

Python Version:
3.10

Nikola Version:
8.2.2

Operating System:
Gentoo Linux

Description:

Forwarding Gentoo Linux bug https://bugs.gentoo.org/860087.

With Nikola 8.2.2 and Python-Markdown version 3.4.1, I get the following error at runtime (when running for the site at https://github.com/gentoo-ev/www.gentoo-ev.org/tree/master/src):

$ 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"

Downgrading Python-Markdown to version 3.3.7 works around the problem, but of course that's not a permanent solution.

@ulm ulm added the bug label Jul 22, 2022
@ulm
Copy link
Author

ulm commented Jul 22, 2022

Looks like this is a duplicate of #3635. Sorry for the noise.

@ulm ulm closed this as completed Jul 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant