Skip to content

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

@sjswerdloff

Description

@sjswerdloff

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)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions