Closed nathanshammah closed 4 years ago
I got this error, but if I attempt the fix of manually installing sphinx I get:
Exception occurred:
File "/Users/will/envs/mitiq/lib/python3.7/site-packages/sphinx/application.py", line 1084, in add_source_parser
self.registry.add_source_parser(*args, **kwargs)
TypeError: add_source_parser() takes 2 positional arguments but 3 were given
The full traceback has been saved in /var/folders/ls/yc7c862d7dlc7mjb3kwk1m0w0000gn/T/sphinx-err-ed7nmald.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
make: *** [html] Error 2
@nathanshammah I just checked again on master and I still get the same error mentioned above.
Similar error on Pull #241.
Theme error:
no theme named 'pydata_sphinx_theme' found (missing theme.conf?)
make: *** [html] Error 2
Makefile:20: recipe for target 'html' failed
Currently, we are not using anywhere anymore rtd-sphinx-theme. We are using pydata-sphinx-theme. So I will investigate Ryan's issue.
I started a fresh virtual environment and was able to build the docs.
ah wait. I was mistaken, I can run the doctests now but with make html
I get:
Theme error:
no theme named 'pydata_sphinx_theme' found (missing theme.conf?)
make: *** [html] Error 2
Looks like it was a missing dependency. Added a fix here: https://github.com/unitaryfund/mitiq/pull/244 @nathanshammah
Running
on a server with a ubuntu virtual machine and then trying from
mitiq/docs
gives the error
Somehow this was not picked up by any dev testing environment (CI or local).
mitiq.about.about()
readsThis may be an error occurring due to user privilege on the server, and solved with
I will check that.
Otherwise we may need to add a
pip install sphinx sphinx_rtd_theme
, i.e, updatingdevelopment_requirements.txt
withsphinx_rtd_theme~=0.4.3