Nitrokey / nitrokey-documentation

User documentation of Nitrokey's products
https://docs.nitrokey.com
32 stars 36 forks source link

sphinx build fails with python3.12 #259

Closed nestire closed 3 days ago

nestire commented 2 weeks ago
[user@work nitrokey-documentation (master)]$ make
. venv/bin/activate && sphinx-build -j auto -a -D language='en' -b html . __preview
Running Sphinx v6.2.1

Extension error:
Could not import extension sphinxprettysearchresults (exception: No module named 'pkg_resources')
make: *** [Makefile:4: all] Error 2

Workaround: python3.10 -m venv venv . venv/bin/activate && pip install -r requirements.txt

daringer commented 1 week ago

seems like setuptools is missing, inside the venv something like pip install setuptools should do the job, adding a PR