Skip to content

Could not import extension sphinx_tabs.tabs (exception: No module named 'pkg_resources') #187

Open
@alexander-schranz

Description

@alexander-schranz

Describe the bug

context

Sphinx build: https://github.com/schranz-search/schranz-search/actions/runs/7226815693/job/19693182370

Could not import extension sphinx_tabs.tabs (exception: No module named 'pkg_resources')

expectation

No error.

bug
But instead ___ happens

Here's an error message I ran into...

Run sphinx-build docs docs/_build
  sphinx-build docs docs/_build
  shell: /usr/bin/bash -e {0}
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.12.1/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.1/x64/lib
Running Sphinx v6.2.1

Extension error:
Could not import extension sphinx_tabs.tabs (exception: No module named 'pkg_resources')

problem

I think the problem is not related to sphinx tabs itself just about changes in the python ecosystem. But I don't know how to solve it. The issue appeared this week in my project, last build was 2023-11-23 (Python 3.12.0), maybe somebody has a hint what changed and make now the sphinx tabs crashing. Maybe it has todo with Python 3.12.1 release but not sure.

Reproduce the bug

Build steps are here: https://github.com/schranz-search/schranz-search/blob/0eef487d609d5e47e05b80cc6c5d060148b1fb56/.github/workflows/docs.yml#L28

List your environment

Not sure about this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions