我正在尝试将Sphinx文档与Readthedocs链接。我可以在计算机上本地构建文档,但是当我尝试让Readthedocs自动生成文档时,出现以下错误:
Configuration error:
There is a programmable error in your configuration file:
Traceback (most recent call last):
File "/home/docs/checkouts/readthedocs.org/user_builds/helstrom-quantum-centroid-classifier/envs/latest/lib/python3.7/site-packages/sphinx/config.py", line 368, in eval_config_file
execfile_(filename, namespace)
File "/home/docs/checkouts/readthedocs.org/user_builds/helstrom-quantum-centroid-classifier/envs/latest/lib/python3.7/site-packages/sphinx/util/pycompat.py", line 150, in execfile_
exec_(code, _globals)
File "/home/docs/checkouts/readthedocs.org/user_builds/helstrom-quantum-centroid-classifier/checkouts/latest/docs/conf.py", line 16, in <module>
import sphinx_gallery
ModuleNotFoundError: No module named 'sphinx_gallery'
我已经在conf.py文件中导入了sphinx_gallery,并添加了扩展名'sphinx_gallery.gen_gallery'。我的conf.py文件位于此处: https://github.com/leockl/helstrom-quantum-centroid-classifier/blob/master/docs/conf.py
我的Github项目位于此处: https://github.com/leockl/helstrom-quantum-centroid-classifier
我哪里出错了?