setup-python: Python 3.10.11 macOS: tk.h version (8.5) doesn't match libtk.a version (8.6)
Description:
Azure appears to be slowly rolling out image version 20230408.1
. This seems to have hit our Python 3.10 jobs with the error:
RuntimeError: tk.h version (8.5) doesn't match libtk.a version (8.6)
This didn’t affect the 3.9 job, which is also using the 20230408.1
image.
Action version: 0.214.0
Platform:
- Ubuntu
- macOS
- Windows
Runner type:
- Hosted
- Self-hosted
Tools version: 3.10.11
Expected behavior: Tk works correctly.
Actual behavior: A runtime error is raised when attempting to import Tk:
RuntimeError: tk.h version (8.5) doesn't match libtk.a version (8.6)
About this issue
- Original URL
- State: open
- Created a year ago
- Reactions: 6
- Comments: 22 (1 by maintainers)
Commits related to this issue
- fix/workaround build on macos: use macos-11 instead of latest See issue https://github.com/actions/setup-python/issues/649 — committed to scito/extract_otp_secrets by scito a year ago
- fix/workaround build on macos: exclude 3.10 on macos in ci See issue https://github.com/actions/setup-python/issues/649 — committed to scito/extract_otp_secrets by scito a year ago
- fix/workaround build on macos: exclude 3.10 on macos in ci See issue https://github.com/actions/setup-python/issues/649 — committed to scito/extract_otp_secrets by scito a year ago
- Attempt to workaround the macOS tk.h Issue https://github.com/actions/setup-python/issues/649 — committed to damies13/rfswarm by damies13 a year ago
- SW-562 update test matrix per https://github.com/actions/setup-python/issues/649 — committed to bdaiinstitute/spatialmath-python by jcao-bdai 7 months ago
- [SW-562] update unit test skipif condition for mac-related issues (#102) Update several unit tests' skipif condition according to https://github.com/actions/setup-python/issues/649 — committed to bdaiinstitute/spatialmath-python by jcao-bdai 7 months ago
Just an FYI I’m encountering the same issue with my rfswarm builds, the issue seems to be specific to python 3.10 on MacOS
Not sure how helpful this is but I’ll add it in case it helps find the cause:
Here’s my stack trace from stderr:
A quick internet search for “
RuntimeError: tk.h version (8.5) doesn't match libtk.a version (8.6)
” brought me here.Let me know if I can be of any more help?
Dave.