Sphinx_rtd_theme is no longer a hard dependency as of 1.4.0
C: \ Users \ Administrator \ Desktop \ item \ code_serv \ documents \ api> make html Launching Sphinx v1.6.2 loading pickled environment ... failed:
Unable to get "WarningStream" attribute on
<module 'sphinx.util.nodes' from 'c:\\users\\administrator\\appdata\\local\\programs\\python\\python36-32\\lib\\site-packages\\sphinx\\util\\nodes.py'>
Topic error:
sphinx_rtd_theme is no longer a hard dependency with
version 1.4.0
. Please install it manually. (pip install sphinx_rtd_theme
)
How to solve this?
source to share
Your question does not indicate if there was a web search for "how to install sphinx_rtd_theme" or read its documentation.
The error message contains the key:
Please install it manually. (
pip install sphinx_rtd_theme
)
Or you can try following the instructions in the guide .
source to share
On my Mac OS X installation, I ran into this problem despite following the simple email instructions.
Others have also reported issues related to this Github issue: https://github.com/readthedocs/sphinx_rtd_theme/issues/618
In my case, the problem ended up in my python environment (I was using system default python 2.7 on Mac). I ended up switching to pyenv from python 3.7.3 and that solved the problem.
Mac instructions (from https://opensource.com/article/19/5/python-3-default-mac ):
$ brew install pyenv
$ pyenv install 3.7.3
$ pyenv global 3.7.3
$ pyenv version
3.7.3 (set by /Users/mbbroberg/.pyenv/version)
$ echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.zshrc
To see if this worked:
$ which python
/Users/mbbroberg/.pyenv/shims/python
$ python -V
Python 3.7.3
$ pip -V
pip 19.0.3 from /Users/mbbroberg/.pyenv/versions/3.7.3/lib/python3.7/site-packages/pip (python 3.7)
Don't forget later pip install sphinx sphinx_rtd_theme
.
source to share