Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-15693

Generating nodetool docs fails with python 3

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 4.0-beta2, 4.0
    • Build
    • Code
    • Low
    • Low Hanging Fruit
    • User Report
    • All
    • None
    • Hide

      Building nodetool docs with the ant target 'gen-doc' fails for python 3. Python 3 doesn't allow the file open mode "rw+".

      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
      

      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.

      Show
      Building nodetool docs with the ant target 'gen-doc' fails for python 3. Python 3 doesn't allow the file open mode "rw+". 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 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.

    Description

      Building nodetool docs with the ant target 'gen-doc' fails for python 3. Python 3 doesn't allow the file open mode "rw+".

      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
      

      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.

      Attachments

        Issue Links

          Activity

            People

              polo-language Angelo Polo
              polo-language Angelo Polo
              Angelo Polo
              Brandon Williams, Ekaterina Dimitrova
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: