RTD documentation building fails due to git lfs issues

Issue #580 resolved
Fabian Thiel created an issue

@Benjamin Jakimow in the last days RTD can not build the documentation (due to git-lfs as it seems)

https://readthedocs.org/projects/enmap-box/builds/12252618/

Maybe you can quickly figure out why? You implemented some git-lfs changes in the conf.py on 29.09., but after that the documentation was still building correctly, until 1-2 days ago.

Comments (8)

  1. Fabian Thiel reporter

    @Benjamin Jakimow can you build locally? I get the following error:

    (qgis) C:\Users\thielf54\Documents\Repositories\enmap-box\doc>make html
    Running Sphinx v1.8.5
    REPO ROOT=C:\Users\thielf54\Documents\Repositories\enmap-box
    Fetching files with git_lfs
    PROJECT_ROOT_DIR C:\Users\thielf54\Documents\Repositories\enmap-box
    
    Configuration error:
    There is a programmable error in your configuration file:
    
    Traceback (most recent call last):
      File "C:\Users\thielf54\AppData\Local\Continuum\miniconda3\envs\qgis\lib\site-packages\sphinx\config.py", line 368, in eval_config_file
        execfile_(filename, namespace)
      File "C:\Users\thielf54\AppData\Local\Continuum\miniconda3\envs\qgis\lib\site-packages\sphinx\util\pycompat.py", line 150, in execfile_
        exec_(code, _globals)
      File "C:\Users\thielf54\Documents\Repositories\enmap-box\doc\source\conf.py", line 147, in <module>
        from enmapbox.testing import initQgisApplication
      File "C:\Users\thielf54\Documents\Repositories\enmap-box\enmapbox\testing.py", line 41, in <module>
        from .externals.qps.testing import TestObjects, WFS_Berlin, WMS_GMAPS, WMS_OSM, TestCase, QgisMockup
      File "C:\Users\thielf54\Documents\Repositories\enmap-box\enmapbox\externals\qps\__init__.py", line 44, in <module>
        if Qgis.QGIS_VERSION < MIN_QGIS_VERSION:
    TypeError: '<' not supported between instances of 'Mock' and 'str'
    

    If I debug enmapbox/externals/qps/init.py both are valid strings, so Qgis.QGIS_VERSION < MIN_QGIS_VERSION results in a boolean result, so it should work actually….!?

  2. Log in to comment