You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Python 3.10.11 macOS: tk.h version (8.5) doesn't match libtk.a version (8.6) #649
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:
OS
Python Ver
Test Result
ubuntu-latest
3.7
Pass
ubuntu-latest
3.8
Pass
ubuntu-latest
3.9
Pass
ubuntu-latest
3.10
Pass
ubuntu-latest
3.11
Pass
macos-latest
3.7
Pass
macos-latest
3.8
Pass
macos-latest
3.9
Pass
macos-latest
3.10
Fail
macos-latest
3.11
Pass
windows-latest
3.7
Pass
windows-latest
3.8
Pass
windows-latest
3.9
Pass
windows-latest
3.10
Pass
windows-latest
3.11
Pass
Here's my stack trace from stderr:
Traceback (most recent call last):
File "/Users/runner/work/rfswarm/rfswarm/rfswarm_manager/rfswarm.py", line 6954, in <module>
core = RFSwarmCore()
File "/Users/runner/work/rfswarm/rfswarm/rfswarm_manager/rfswarm.py", line 2223, in __init__
base.gui = RFSwarmGUI()
File "/Users/runner/work/rfswarm/rfswarm/rfswarm_manager/rfswarm.py", line 3216, in __init__
self.root = tk.Tk()
File "/Users/runner/hostedtoolcache/Python/3.10.11/x64/lib/python3.10/tkinter/__init__.py", line 2301, in __init__
self._loadtk()
File "/Users/runner/hostedtoolcache/Python/3.10.11/x64/lib/python3.10/tkinter/__init__.py", line 2317, in _loadtk
raise RuntimeError("tk.h version (%s) doesn't match libtk.a version (%s)"
RuntimeError: tk.h version (8.5) doesn't match libtk.a version (8.6)
A quick internet search for "RuntimeError: tk.h version (8.5) doesn't match libtk.a version (8.6)" brought me here.
I'm seeing this also, Python 3.10 on macOS failing with a tk.h related error. I feel I've had this same thing a few years ago, maybe #402 mentioned above...
My last good build was 29 March, and the configuration was:
platform darwin -- Python 3.10.10, pytest-7.2.2, pluggy-1.0.0, matplotlib-3.7.1-cp310-cp310-macosx_10_12_x86_64.whl
Currently the configuration is:
platform darwin -- Python 3.10.11, pytest-7.3.1, pluggy-1.0.0, matplotlib-3.7.1-cp310-cp310-macosx_10_12_x86_64.whl
Some change to Python version, no change to Matplotlib.
Has anyone found a solution for this? I am currently unable to build any 3.8 version with proper tk support on macOS... I tried to use the environment tricks, but none of them works, pyenv still somehow picks the header from the system and not for homebrew.
Has anyone found a solution for this? I am currently unable to build any 3.8 version with proper tk support on macOS... I tried to use the environment tricks, but none of them works, pyenv still somehow picks the header from the system and not for homebrew.
Have you try my suggestion above? I use it to successfully set up python 3.8 -> 3.11.
Hello @carlosperate 👋,
Thank you for the detailed report😊
The binaries for Python 3.8.18, 3.9.21, and 3.10.16 have been updated in the runner. Could you please rerun your test workflows and let us know if the issue is resolved?
Your feedback is greatly appreciated!
Hello @QuLogic👋,
Just a gentle reminder to rerun your test workflows with the updated Python binaries to confirm if the issue is resolved. Your feedback would be greatly appreciated!
Thank you, @carlosperate, for confirming that the issue is resolved for 3.8, 3.9, and 3.10😊
Hello @tacaswell👋,
Upon forking the repository, I noticed that the snippet mentioned in the pull request has multiple occurrences. Could you please check if this could be the reason for the error you are observing?
Hello @tacaswell 👋,
When tested on our end, the binaries appear to be functioning as expected. It is possible that the issue may be specific to your setup. To help us better understand and address the issue, could you please provide a minimal repository that reproduces the error you are experiencing? This would greatly assist us in identifying your issue more accurately, given the complexity of the matplotlib repository.
Thank you!
Hello @QuLogic 👋,
Since the issue has been resolved and there has been no further activity, we are proceeding with closing this issue due to inactivity. If you encounter any related problems in the future, please feel free to reopen or create a new issue. Thank you!
Hello @tacaswell👋,
As mentioned previously, it is quite challenging to determine the exact root cause of the problem without additional details. To assist us in diagnose and resolve the issue more accurately, could you kindly provide a minimal repository that reproduces the error you are experiencing? This would greatly assist us in understanding your specific setup and identifying the issue.
For troubleshooting, please enable debugging to get more detailed output by setting ACTIONS_STEP_DEBUG to true as detailed here. The logs might provide further insights into the issue you are encountering. Additionally, could you please try to run your Tkinter .py files to check the version and confirm?
When tested on our end, the workflow ran successfully and the version seems to be correct as seen in the screenshot below:
Activity
QuLogic commentedon Apr 12, 2023
This is a similar issue to #402.
marko-zivic-93 commentedon Apr 13, 2023
Hello @QuLogic
Thank you for creating this issue, we will take a look at it and come back to you as soon as we have some results 🙂
fix/workaround build on macos: use macos-11 instead of latest
fix/workaround build on macos: exclude 3.10 on macos in ci
fix/workaround build on macos: exclude 3.10 on macos in ci
damies13 commentedon Apr 27, 2023
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.
petercorke commentedon May 10, 2023
I'm seeing this also, Python 3.10 on macOS failing with a tk.h related error. I feel I've had this same thing a few years ago, maybe #402 mentioned above...
My last good build was 29 March, and the configuration was:
Currently the configuration is:
Some change to Python version, no change to Matplotlib.
QuLogic commentedon Jun 15, 2023
And now it's spread to Python 3.9: https://dev.azure.com/matplotlib/matplotlib/_build/results?buildId=34189&view=logs&j=d565cd3d-5b64-5d92-00ca-77c8c01737e7&t=44ca2d65-e117-5342-7366-f7ed442af407&l=416
Is there any progress? It's been 2 months now.
tacaswell commentedon Jun 20, 2023
It also seems to be affecting github actions: https://github.com/matplotlib/matplotlib/actions/runs/5326817190/jobs/9649372136?pr=26154#step:13:420
vitahoang commentedon Jun 23, 2023
Try this solution https://stackoverflow.com/a/60469203/8239990
albertosottile commentedon Jul 14, 2023
Has anyone found a solution for this? I am currently unable to build any 3.8 version with proper tk support on macOS... I tried to use the environment tricks, but none of them works,
pyenvstill somehow picks the header from the system and not for homebrew.vitahoang commentedon Jul 14, 2023
Have you try my suggestion above? I use it to successfully set up python 3.8 -> 3.11.
21 remaining items
carlosperate commentedon Dec 26, 2024
Thanks @priya-kinthali, I can confirm the following:
The Action run with all the results: https://github.com/carlosperate/pyinstaller-test/actions/runs/12507785149
v-priya-kinthali commentedon Jan 10, 2025
Hello @carlosperate 👋,
Thank you for the detailed report😊
The binaries for Python 3.8.18, 3.9.21, and 3.10.16 have been updated in the runner. Could you please rerun your test workflows and let us know if the issue is resolved?
Your feedback is greatly appreciated!
carlosperate commentedon Jan 19, 2025
Thanks @priya-kinthali!
I've re-run the workflow and 3.8, 3.9 and 3.10 are working 🎉
The Action run with all the results: https://github.com/carlosperate/pyinstaller-test/actions/runs/12507785149
v-priya-kinthali commentedon Jan 22, 2025
Hello @QuLogic👋,
Just a gentle reminder to rerun your test workflows with the updated Python binaries to confirm if the issue is resolved. Your feedback would be greatly appreciated!
Thank you, @carlosperate, for confirming that the issue is resolved for 3.8, 3.9, and 3.10😊
tacaswell commentedon Jan 22, 2025
matplotlib/matplotlib#29502 removes our xfail 🤞🏻 it works
tacaswell commentedon Jan 22, 2025
Appears to still be broken on osx 13 py3.10 https://github.com/matplotlib/matplotlib/actions/runs/12911339460/job/36003521800?pr=29502#step:14:264
However I have not checked that we are getting the newest image.
v-priya-kinthali commentedon Jan 27, 2025
Hello @tacaswell👋,
Upon forking the repository, I noticed that the snippet mentioned in the pull request has multiple occurrences. Could you please check if this could be the reason for the error you are observing?
tacaswell commentedon Jan 27, 2025
The code I removed is suppressing the failure in our tests so my error is only reducing the number of failures we see.
I'll try power-cycling the PR again.
v-priya-kinthali commentedon Jan 30, 2025
Hello @tacaswell 👋,
When tested on our end, the binaries appear to be functioning as expected. It is possible that the issue may be specific to your setup. To help us better understand and address the issue, could you please provide a minimal repository that reproduces the error you are experiencing? This would greatly assist us in identifying your issue more accurately, given the complexity of the
matplotlibrepository.Thank you!
v-priya-kinthali commentedon Feb 10, 2025
Hello @tacaswell 👋,
Just a gentle reminder about our previous request for a minimal repository to reproduce the error you are experiencing.
Thank you!
v-priya-kinthali commentedon Feb 17, 2025
Hello @tacaswell 👋, @QuLogic 👋
Just giving you a gentle ping to see if there are any updates on your end regarding this issue? Thank you!
v-priya-kinthali commentedon Feb 27, 2025
Hello @QuLogic 👋,
Since the issue has been resolved and there has been no further activity, we are proceeding with closing this issue due to inactivity. If you encounter any related problems in the future, please feel free to reopen or create a new issue. Thank you!
tacaswell commentedon Feb 27, 2025
this is not resolved
https://github.com/matplotlib/matplotlib/actions/runs/13568264589/job/37926386392?pr=29502#step:14:186
v-priya-kinthali commentedon Mar 7, 2025
Hello @tacaswell👋,
As mentioned previously, it is quite challenging to determine the exact root cause of the problem without additional details. To assist us in diagnose and resolve the issue more accurately, could you kindly provide a minimal repository that reproduces the error you are experiencing? This would greatly assist us in understanding your specific setup and identifying the issue.
For troubleshooting, please enable debugging to get more detailed output by setting
ACTIONS_STEP_DEBUGto true as detailed here. The logs might provide further insights into the issue you are encountering. Additionally, could you please try to run your Tkinter.pyfiles to check the version and confirm?When tested on our end, the workflow ran successfully and the version seems to be correct as seen in the screenshot below: