Skip to content

Errors compiling documentation locally #3306

@tabedzki

Description

@tabedzki

Steps to reproduce (Python 3.12.4):

  1. gh repo clone spikeinterface/spikeinterface && cd spikeinterface
  2. uv venv && . .venv/bin/activate && uv pip install -e '.[dev]'
  3. sphinx-build -b html doc ./doc/_build/

Error 1:

Running Sphinx v8.0.2
loading translations [en]... done

Extension error:
Could not import extension sphinxcontrib.jquery (exception: No module named 'sphinxcontrib.jquery')

Steps to remediate:

  1. Add sphinxcontrib.jquery to the docs list within pyproject.toml around line 185
  2. uv pip install -e '.[dev]' --no-cache

Re-running sphinx-build

Error/Warning Stack (edit: some of the original warnings I posted were removed by installing git annex. Is there a way to denote git-annex needs to be installed for the pip install -e '.[dev]'?):

Running Sphinx v8.0.2
loading translations [en]... done
Using Sphinx-Gallery to convert rst text blocks to markdown for .ipynb files.
[autosummary] generating autosummary for: api.rst, authors.rst, development/development.rst, get_started/import.rst, get_started/index.rst, get_started/install_sorters.rst, get_started/installation.rst, get_started/quickstart.rst, how_to/analyze_neuropixels.rst, how_to/benchmark_with_hybrid_recordings.rst, ..., tutorials/qualitymetrics/plot_4_curation.rst, tutorials/qualitymetrics/sg_execution_times.rst, tutorials/sg_execution_times.rst, tutorials/waveform_extractor_to_sorting_analyzer.rst, tutorials/widgets/plot_1_rec_gallery.rst, tutorials/widgets/plot_2_sort_gallery.rst, tutorials/widgets/plot_3_waveforms_gallery.rst, tutorials/widgets/plot_4_peaks_gallery.rst, tutorials/widgets/sg_execution_times.rst, whatisnew.rst
generating gallery...
generating gallery for tutorials... 
generating gallery for tutorials/core... [100%] plot_6_handle_times.py
        generating gallery for tutorials/extractors... [100%] plot_2_working_with_unscaled_traces.py
generating gallery for tutorials/qualitymetrics... [100%] plot_4_curation.py
generating gallery for tutorials/comparison... [100%] plot_5_comparison_sorter_weaknesses.py
generating gallery for tutorials/widgets... [100%] plot_4_peaks_gallery.py
computation time summary:
    - ../examples/tutorials/core/plot_4_sorting_analyzer.py:                     236.34 sec   0.0 MB
    - ../examples/tutorials/extractors/plot_1_read_various_formats.py:            35.76 sec   0.0 MB
    - ../examples/tutorials/widgets/plot_3_waveforms_gallery.py:                   1.81 sec   0.0 MB
    - ../examples/tutorials/qualitymetrics/plot_3_quality_mertics.py:              1.64 sec   0.0 MB
    - ../examples/tutorials/qualitymetrics/plot_4_curation.py:                     1.17 sec   0.0 MB
    - ../examples/tutorials/widgets/plot_4_peaks_gallery.py:                       1.12 sec   0.0 MB
    - ../examples/tutorials/comparison/generate_erroneous_sorting.py:              0.00 sec   0.0 MB
    - ../examples/tutorials/comparison/plot_5_comparison_sorter_weaknesses.py:     0.00 sec   0.0 MB
    - ../examples/tutorials/core/plot_1_recording_extractor.py:                    0.00 sec   0.0 MB
    - ../examples/tutorials/core/plot_2_sorting_extractor.py:                      0.00 sec   0.0 MB
    - ../examples/tutorials/core/plot_3_handle_probe_info.py:                      0.00 sec   0.0 MB
    - ../examples/tutorials/core/plot_5_append_concatenate_segments.py:            0.00 sec   0.0 MB
    - ../examples/tutorials/core/plot_6_handle_times.py:                           0.00 sec   0.0 MB
    - ../examples/tutorials/extractors/plot_2_working_with_unscaled_traces.py:     0.00 sec   0.0 MB
    - ../examples/tutorials/widgets/plot_1_rec_gallery.py:                         0.00 sec   0.0 MB
    - ../examples/tutorials/widgets/plot_2_sort_gallery.py:                        0.00 sec   0.0 MB
loading intersphinx inventory 'neo' from https://neo.readthedocs.io/en/latest//objects.inv ...
loading intersphinx inventory 'probeinterface' from https://probeinterface.readthedocs.io/en/stable//objects.inv ...
intersphinx inventory has moved: https://neo.readthedocs.io/en/latest//objects.inv -> https://neo.readthedocs.io/en/latest/objects.inv
intersphinx inventory has moved: https://probeinterface.readthedocs.io/en/stable//objects.inv -> https://probeinterface.readthedocs.io/en/stable/objects.inv
building [mo]: targets for 0 po files that are out of date
writing output... 
building [html]: targets for 112 source files that are out of date
updating environment: [new config] 112 added, 0 changed, 0 removed
<unknown>:310: SyntaxWarning: invalid escape sequence '\m'
<unknown>:382: SyntaxWarning: invalid escape sequence '\m'
<unknown>:310: SyntaxWarning: invalid escape sequence '\m'
<unknown>:382: SyntaxWarning: invalid escape sequence '\m'
<unknown>:298: SyntaxWarning: invalid escape sequence '\m'
<unknown>:370: SyntaxWarning: invalid escape sequence '\m'
reading sources... [100%] whatisnew
/Users/ct5868/code/fork-spikeinterface/src/spikeinterface/core/sortinganalyzer.py:docstring of spikeinterface.core.sortinganalyzer.SortingAnalyzer.merge_units:2: WARNING: Inline interpreted text or phrase reference start-string without end-string. [docutils]
/Users/ct5868/code/fork-spikeinterface/src/spikeinterface/curation/auto_merge.py:docstring of spikeinterface.curation.auto_merge.get_potential_auto_merge:44: WARNING: Bullet list ends without a blank line; unexpected unindent. [docutils]
/Users/ct5868/code/fork-spikeinterface/src/spikeinterface/sortingcomponents/motion/motion_utils.py:docstring of spikeinterface.sortingcomponents.motion.motion_utils.Motion:11: ERROR: Unexpected indentation. [docutils]
/Users/ct5868/code/fork-spikeinterface/doc/modules/sorters.rst:534: WARNING: duplicate label modules/sorters:internal sorters, other instance in /Users/ct5868/code/fork-spikeinterface/doc/modules/sorters.rst [autosectionlabel.modules/sorters]
looking for now-outdated files... none found
pickling environment... WARNING: cannot cache unpickable configuration value: 'sphinx_gallery_conf' (because it contains a function, class, or module object) [config.cache]
done
checking consistency... done
preparing documents... done
copying assets... 
copying downloadable files... [100%] tutorials/widgets/plot_4_peaks_gallery.zip
copying static files... done
copying extra files... done
copying assets: done
writing output... [  1%] api
Theme error:
An error happened in rendering the page api.
Reason: UndefinedError("'style' is undefined")

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesIssue/PR that is related to dependenciesdocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions