Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-3170

calc_release_version.py does not run under Python 3

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.15.0
    • Component/s: build
    • Labels:
      None

      Description

      See this failing evergreen task. The relevant error is:

      Traceback (most recent call last):
        File "build/calc_release_version.py", line 205, in <module>
          RELEASE_VER = previous(main()) if PREVIOUS else main()
        File "build/calc_release_version.py", line 112, in main
          head_tag_ver = check_head_tag()
        File "build/calc_release_version.py", line 77, in check_head_tag
          release_tag_match = RELEASE_TAG_RE.match(tag)
      TypeError: cannot use a string pattern on a bytes-like object
      CMake Error at CMakeLists.txt:10 (_message):
        BUILD_VERSION not specified and could not be calculated (script invocation
        failed); specify in CMake command, -DBUILD_VERSION=<version>
      Call Stack (most recent call first):
        CMakeLists.txt:97 (message)
      

        Attachments

          Activity

            People

            Assignee:
            sara.golemon Sara Golemon
            Reporter:
            kevin.albertson Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: