Print an error message with instructions on how to install sphinx_automodapi.
Details
- Reviewers
bulbazord - Group Reviewers
Restricted Project - Commits
- rG5afa519c1ae9: [lldb] Print better error message when sphinx_automodapi is not installed
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
I've long wanted to make this all automated, and have CMake install all the necessary dependencies. But that seems a bit intrusive without using something like a virtual environment, which would have to be project-wide and more work than I'm willing to put in. Regardless, that wouldn't actually help here, at least not on macOS if you installed sphinx with homebrew, because it packages its own version of Python (/opt/homebrew/Cellar/sphinx-doc/7.1.2/libexec/bin/python) and you have to install the sphinx_automodapi module with that. That's why I print sys.executable and really the motivation behind this patch.
I was in this exact situation yesterday but luckily I had already used a virtualenv to fix some other Python problems so I knew how to fix it. Had it not been for that, seeing the exact Python path would have been very useful here, thanks for adding this message.