[ 
https://issues.apache.org/jira/browse/CASSANDRA-15693?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17163994#comment-17163994
 ] 

Ekaterina Dimitrova commented on CASSANDRA-15693:
-------------------------------------------------

Tested on my Mac with Python 3.7.7, LGTM +1. I have only one question, I am not 
familiar with sphinx. 

The following appears when I run ant with target "gen-doc" even if the build is 
successful: 

 
{code:java}
gen-doc:
     [exec] python convert_yaml_to_rst.py ../conf/cassandra.yaml 
source/configuration/cassandra_config_file.rst
     [exec] python gen-nodetool-docs.py
 
     [exec] sphinx-build -b html -d build/doctrees   source build/html
     [exec] make: sphinx-build: No such file or directory
     [exec] make: *** [html] Error 1
     [exec] Result: 2
 
BUILD SUCCESSFUL
Total time: 1 minute 31 seconds
{code}
 

[[email protected]], [~brandon.williams]  any suggestions?

Missing file but the build is successful?

> Generating nodetool docs fails with python 3
> --------------------------------------------
>
>                 Key: CASSANDRA-15693
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-15693
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Build
>            Reporter: Angelo Polo
>            Assignee: Angelo Polo
>            Priority: Normal
>              Labels: patch
>             Fix For: 4.0-beta
>
>         Attachments: 0001-Fix-file-open-modes-for-python-3.patch
>
>
> Building nodetool docs with the ant target 'gen-doc' fails for python 3. 
> Python 3 doesn't allow the file open mode "rw+".
> {noformat}
> gen-doc:
>      [exec] python convert_yaml_to_rst.py ../conf/cassandra.yaml 
> source/configuration/cassandra_config_file.rst
>      [exec] python gen-nodetool-docs.py
>      [exec] Makefile:64: recipe for target 'html' failed
>      [exec] Traceback (most recent call last):
>      [exec]   File "gen-nodetool-docs.py", line 75, in <module>
>      [exec]     with open(helpfilename, "rw+") as helpfile:
>      [exec] ValueError: must have exactly one of create/read/write/append mode
>      [exec] make: *** [html] Error 1
>      [exec] Result: 2
> {noformat}
> Fails on and patch [^0001-Fix-file-open-modes-for-python-3.patch] tested on 
> the following platforms: Ubuntu 18.04.4 LTS with Python 3.6.9 and FreeBSD 
> 12.1-RELEASE-p1 with Python 3.7.7.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to