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

calc_release_version.py does not run under Python 3

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.15.0
    • Affects Version/s: None
    • Component/s: Build
    • None

      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)
      

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

              Created:
              Updated:
              Resolved: