Сборка не удалась: ошибка кода для моего кода в Readthedocs - PullRequest
1 голос
/ 21 января 2020

Я пытаюсь связать свою документацию по 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'

Я импортировал sphinx_gallery в мой файл conf.py, а также добавил расширение '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

Где я пошло не так?

...