dicomweb-client icon indicating copy to clipboard operation
dicomweb-client copied to clipboard

sphinx-build fails: setuptools not included in requirements_doc.txt

Open sjswerdloff opened this issue 1 year ago • 0 comments

Apple M1, MacOS 14.6, python 3.12.4 and I have in my .zshrc:

source $HOME/zsh-autoswitch-virtualenv/autoswitch_virtualenv.plugin.zsh

so... a virtual environment that got built automatically when I cd in to the dicomweb-client directory...

sphinx-build -b html docs/ docs/build/ Running Sphinx v5.3.0

Configuration error: There is a programmable error in your configuration file:

Traceback (most recent call last): File "/Users/stuartswerdloff/.virtualenvs/dicomweb-client-crgx/lib/python3.12/site-packages/sphinx/config.py", line 350, in eval_config_file exec(code, namespace) File "/Users/stuartswerdloff/PythonProjects/ImagingDataCommons/dicomweb-client/docs/conf.py", line 17, in import pkg_resources ModuleNotFoundError: No module named 'pkg_resources'

https://stackoverflow.com/questions/7446187/no-module-named-pkg-resources

pip install setuptools resolved the issue. Is this something that could be added to requirements_doc.txt (without creating issues for others)?

sjswerdloff avatar Sep 14 '24 09:09 sjswerdloff