You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by GitBox <gi...@apache.org> on 2020/10/10 11:55:12 UTC

[GitHub] [cassandra] polo-language opened a new pull request #771: CASSANDRA-16206 - Eliminate gen-doc template warning and unused (problematic) import

polo-language opened a new pull request #771:
URL: https://github.com/apache/cassandra/pull/771


   When running 'sphinx-build -b html -d build/doctrees   source build/html'
   on Linux we get the following warning:
        [exec] generating indices... genindex
        [exec] WARNING: Now base template defindex.html is deprecated.
        [exec] writing additional pages... index search
   
   on FreeBSD this causes gen-doc to fail:
        [exec] writing additional pages...  indexfailed
        [exec]
        [exec] Theme error:
        [exec] An error happened in rendering the page index.
        [exec] Reason: UndefinedError("'warn' is undefined")
        [exec] *** Error code 2
   
   The patch to doc/source/_util/cql.py removes the unused iteritems import, preventing errors on versions of pygments 2.6.0+:
        [exec] Running Sphinx v3.2.1
        [exec]
        [exec] Exception occurred:
        [exec]   File "/wrkdirs/usr/ports/databases/cassandra4/work/apache-cassandra-4.0-beta2-src/doc/source/_util/cql.py", line 29, in <module>
        [exec]     from pygments.util import iteritems
        [exec] ImportError: cannot import name 'iteritems' from 'pygments.util' (/usr/local/lib/python3.7/site-packages/pygments/util.py)
   
   The patch has been tested in the following environments:
   FreeBSD 12.1-RELEASE-p7
       Python 3.7.9
       Sphinx 3.2.1
       pygments 2.7.1
   
   Ubuntu 18.04.1
       Python 3.7.5
       Sphinx 1.6.7
       pygments 2.2.0
   
   Ubuntu 18.04.1
       Python 2.7.17
       Sphinx 1.6.7
       pygments 2.5.2
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org


[GitHub] [cassandra] smiklosovic closed pull request #771: CASSANDRA-16206 - Eliminate gen-doc template warning and unused (problematic) import

Posted by GitBox <gi...@apache.org>.
smiklosovic closed pull request #771:
URL: https://github.com/apache/cassandra/pull/771


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org