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

[7.16.5] Building project documentation with Sphinx: ValueError: Unsupported mimetype #2204

Open
frenzymadness opened this issue Jan 10, 2025 · 1 comment

Comments

@frenzymadness
Copy link
Contributor

I'm trying to update the RPM package in Fedora Linux which also builds documentation for the nbconvert project.

I'm getting the following error:

+ sphinx-build-3 docs/source html
Running Sphinx v7.3.7

Exception occurred:
  File "/builddir/build/BUILD/python-nbconvert-7.16.5-build/nbconvert-7.16.5/nbconvert/exporters/templateexporter.py", line 667, in get_template_names
    raise ValueError(msg)
ValueError: Unsupported mimetype 'text/x-rst' for template 'rst', mimetypes supported are: 
        text/restructuredtext

It seems that the mime type has been changed in #2167. The documentation build in Github Actions works fine, but it might be caused by the quite old version of Sphinx (5.0.2 from Jun 2022) used in the CI. We use version 7.3.7 and we'll soon update to version 8.

@frenzymadness
Copy link
Contributor Author

As far as I can tell this problem blocks also documentation builds of dependant packages like nbsphinx and OWSlib.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant