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

Building documentation doesn't work in Python 3.12 #649

Open
ChrisJefferson opened this issue Mar 11, 2024 · 3 comments
Open

Building documentation doesn't work in Python 3.12 #649

ChrisJefferson opened this issue Mar 11, 2024 · 3 comments

Comments

@ChrisJefferson
Copy link
Collaborator

There isn't really anyything to currently be done about this, I'm mainly reporting it so other people will hopefully waste less time than me :)

sphinxcontrib.bibtex (which is used in conjure's docs) doesn't work in Python 3.12. It's a known problem, and doesn't look like it will be fixed any time soon, just lack of time for people working on various libraries.

You get the following error:

sphinx-build -b html -d _build/doctrees   . _build/html
Running Sphinx v7.2.6

Extension error:
Could not import extension sphinxcontrib.bibtex (exception: No module named 'pkg_resources')
make: *** [Makefile:51: html] Error 2
@ott2
Copy link
Collaborator

ott2 commented May 9, 2024

It looks like the missing dependency was fixed on 22 April 2024, but the version of pybtex that pip installs is from 2021. I will try working around this by adding setuptools as a dependency explicitly.

@ott2
Copy link
Collaborator

ott2 commented May 9, 2024

Adding setuptools to docs/requirements.txt seems to get past the error. After installing pandoc, running make docs produces most of the documentation for me.

@ott2
Copy link
Collaborator

ott2 commented Sep 18, 2024

The version of pybtex at pypi is still the 2021 one, whereas the version at bitbucket is more recent. Would it be worth adding setuptools to the requirements? This should be benign even if pybtex at pypi is later updated.

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

2 participants