Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

require Python 3.6 as we use format strings in various places #152

Merged
merged 1 commit into from
Feb 2, 2022

Conversation

wjwwood
Copy link
Member

@wjwwood wjwwood commented Jan 26, 2022

We ran into an issue on a machine which had both Python 3.5 and Python 3.8 installed, and our software selected two different versions in various places. It seems that PythonInterp selected the 3.5 version even though the 3.8 was also there, seeming to prefer 3.5.x "exactly" instead of just "the newest" available.

Find the two versions is a different problem (two or more ways to find python in our CMake logic) that should be handled in a different set of pull requests, but the way the problem presented itself was that our Python code failed during the build of other packages due to the use of "format strings", which were introduced in Python 3.6. So this pull request (and a related one in python_cmake_module: ros2/python_cmake_module#10) just do the bare minimum and update the required version to something we can actually use.

Signed-off-by: William Woodall <william@osrfoundation.org>
@wjwwood
Copy link
Member Author

wjwwood commented Feb 1, 2022

CI:

  • Linux Build Status (re-run due to flaky tests)
  • Linux-aarch64 Build Status
  • Windows Build Status (re-run due to flaky tests)

@wjwwood wjwwood merged commit 3338e1f into master Feb 2, 2022
@delete-merged-branch delete-merged-branch bot deleted the require_python_3_6 branch February 2, 2022 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants