[CDRIVER-3170] calc_release_version.py does not run under Python 3 Created: 04/Jun/19  Updated: 28/Oct/23  Resolved: 27/Jun/19

Status: Closed
Project: C Driver
Component/s: Build
Affects Version/s: None
Fix Version/s: 1.15.0

Type: Bug Priority: Major - P3
Reporter: Kevin Albertson Assignee: Sara Golemon
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 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)



 Comments   
Comment by Githook User [ 27/Jun/19 ]

Author:

{'name': 'Sara Golemon', 'username': 'sgolemon', 'email': 'sara.golemon@mongodb.com'}

Message: CDRIVER-3170 Make calc_release_version.py work under Python3
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/a91268cbce76dfcfef8d39842085fda7ff7c24cd

Generated at Wed Feb 07 21:17:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.