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

[MNT]: Failing CI on OSX #23094

Closed
timhoffm opened this issue May 22, 2022 · 2 comments
Closed

[MNT]: Failing CI on OSX #23094

timhoffm opened this issue May 22, 2022 · 2 comments

Comments

@timhoffm
Copy link
Member

Summary

Our current OSX pipelines fail: I've collected the information from one of the runs

The stripped down version is:

2022-05-21T22:18:40.8636500Z __________________________________ test_blit ___________________________________
2022-05-21T22:18:40.8800310Z E           RuntimeError: tk.h version (8.6) doesn't match libtk.a version (8.5)
2022-05-21T22:18:40.8800760Z 
2022-05-21T22:18:40.8801280Z lib/matplotlib/tests/test_backend_tk.py:54: Failed

2022-05-21T22:18:40.8801980Z ____________________ test_figuremanager_cleans_own_mainloop ____________________
2022-05-21T22:18:40.9014710Z E           RuntimeError: tk.h version (8.6) doesn't match libtk.a version (8.5)
2022-05-21T22:18:40.9015170Z 
2022-05-21T22:18:40.9015690Z lib/matplotlib/tests/test_backend_tk.py:54: Failed

2022-05-21T22:18:40.9016410Z ___________________________ test_missing_back_button ___________________________
2022-05-21T22:18:40.9185730Z E           RuntimeError: tk.h version (8.6) doesn't match libtk.a version (8.5)
2022-05-21T22:18:40.9186350Z 
2022-05-21T22:18:40.9186900Z lib/matplotlib/tests/test_backend_tk.py:54: Failed

2022-05-21T22:18:40.9187580Z __________________ test_figuremanager_preserves_host_mainloop __________________
2022-05-21T22:18:40.9358480Z E           RuntimeError: tk.h version (8.6) doesn't match libtk.a version (8.5)
2022-05-21T22:18:40.9359080Z 
2022-05-21T22:18:40.9359580Z lib/matplotlib/tests/test_backend_tk.py:54: Failed

2022-05-21T22:18:40.9360270Z ________________________________ test_embedding ________________________________
2022-05-21T22:18:40.9526200Z E           RuntimeError: tk.h version (8.6) doesn't match libtk.a version (8.5)
2022-05-21T22:18:40.9526560Z 
2022-05-21T22:18:40.9527090Z lib/matplotlib/tests/test_backend_tk.py:54: Failed

2022-05-21T22:18:40.9528520Z __________ test_interactive_backend[toolbar2-{'MPLBACKEND': 'tkagg'}] __________
022-05-21T22:18:40.9773130Z E               subprocess.CalledProcessError: Command '['/Users/runner/hostedtoolcache/Python/3.8.12/x64/bin/python', '-c', '\nfrom matplotlib.tests.test_backends_interactive import _test_interactive_impl\n_test_interactive_impl()\n', '{"toolbar": "toolbar2"}']' returned non-zero exit status 1.
2022-05-21T22:18:40.9774220Z 
2022-05-21T22:18:40.9774850Z ../../../hostedtoolcache/Python/3.8.12/x64/lib/python3.8/subprocess.py:516: CalledProcessError

2022-05-21T22:18:40.9776050Z ________________ test_blitting_events[{'MPLBACKEND': 'tkagg'}] _________________
2022-05-21T22:18:40.9894890Z E               subprocess.CalledProcessError: Command '['/Users/runner/hostedtoolcache/Python/3.8.12/x64/bin/python', '-c', '\nfrom matplotlib.tests.test_backends_interactive import _test_number_of_draws_script\n_test_number_of_draws_script()\n']' returned non-zero exit status 1.
2022-05-21T22:18:40.9895970Z 
2022-05-21T22:18:40.9896600Z ../../../hostedtoolcache/Python/3.8.12/x64/lib/python3.8/subprocess.py:516: CalledProcessError

2022-05-21T22:18:40.9897820Z __________ test_figure_leak_20490[time_mem0-{'MPLBACKEND': 'tkagg'}] ___________
2022-05-21T22:18:40.9970990Z E               subprocess.CalledProcessError: Command '['/Users/runner/hostedtoolcache/Python/3.8.12/x64/bin/python', '-c', '\nfrom matplotlib.tests.test_backends_interactive import _test_figure_leak\n_test_figure_leak()\n', '0.0']' returned non-zero exit status 1.
2022-05-21T22:18:40.9971810Z 
2022-05-21T22:18:40.9972440Z ../../../hostedtoolcache/Python/3.8.12/x64/lib/python3.8/subprocess.py:516: CalledProcessError

2022-05-21T22:18:40.9973650Z __________ test_figure_leak_20490[time_mem1-{'MPLBACKEND': 'tkagg'}] ___________
2022-05-21T22:18:41.0242530Z E               subprocess.CalledProcessError: Command '['/Users/runner/hostedtoolcache/Python/3.8.12/x64/bin/python', '-c', '\nfrom matplotlib.tests.test_backends_interactive import _test_figure_leak\n_test_figure_leak()\n', '0.1']' returned non-zero exit status 1.
2022-05-21T22:18:41.0243350Z 
2022-05-21T22:18:41.0243970Z ../../../hostedtoolcache/Python/3.8.12/x64/lib/python3.8/subprocess.py:516: CalledProcessError

2022-05-21T22:18:41.0245150Z ________ test_interactive_backend[toolmanager-{'MPLBACKEND': 'tkagg'}] _________
2022-05-21T22:18:41.1102640Z E               subprocess.CalledProcessError: Command '['/Users/runner/hostedtoolcache/Python/3.8.12/x64/bin/python', '-c', '\nfrom matplotlib.tests.test_backends_interactive import _test_interactive_impl\n_test_interactive_impl()\n', '{"toolbar": "toolmanager"}']' returned non-zero exit status 1.
2022-05-21T22:18:41.1103670Z 
2022-05-21T22:18:41.1104290Z ../../../hostedtoolcache/Python/3.8.12/x64/lib/python3.8/subprocess.py:516: CalledProcessError

2022-05-21T22:18:41.1105500Z ___________ test_interactive_thread_safety[{'MPLBACKEND': 'tkagg'}] ____________
2022-05-21T22:18:41.1167240Z E               subprocess.CalledProcessError: Command '['/Users/runner/hostedtoolcache/Python/3.8.12/x64/bin/python', '-c', '\nfrom matplotlib.tests.test_backends_interactive import _test_thread_impl\n_test_thread_impl()\n']' returned non-zero exit status 1.
2022-05-21T22:18:41.1167960Z 
2022-05-21T22:18:41.1168480Z ../../../hostedtoolcache/Python/3.8.12/x64/lib/python3.8/subprocess.py:516: 

Observations:

  • All of the "RuntimeError: tk.h version (8.6) doesn't match libtk.a version (8.5)" happens in tests that are decorated with @_isolated_tk_test(). We have a couple more uses of the decorator, which also have @pytest.mark.backend('TkAgg', skip_on_importerror=True) and thus don't fail.

Proposed fix

No response

timhoffm added a commit to timhoffm/matplotlib that referenced this issue May 22, 2022
timhoffm added a commit to timhoffm/matplotlib that referenced this issue May 22, 2022
jklymak pushed a commit that referenced this issue May 24, 2022
* Try to unbreak CI by xfailing OSX Tk tests

Stopgap solution for #23094

* Update lib/matplotlib/tests/test_backend_tk.py

* Update lib/matplotlib/tests/test_backend_tk.py

Co-authored-by: Oscar Gustafsson <oscar.gustafsson@gmail.com>
@QuLogic
Copy link
Member

QuLogic commented May 24, 2022

See upstream issue actions/setup-python#402

tacaswell pushed a commit to tacaswell/matplotlib that referenced this issue Jun 2, 2022
Try to unbreak CI by xfailing OSX Tk tests (matplotlib#23095)

* Try to unbreak CI by xfailing OSX Tk tests

Stopgap solution for matplotlib#23094

* Update lib/matplotlib/tests/test_backend_tk.py

* Update lib/matplotlib/tests/test_backend_tk.py

Co-authored-by: Oscar Gustafsson <oscar.gustafsson@gmail.com>
(cherry picked from commit d6ee414)
andrew-fennell pushed a commit to andrew-fennell/matplotlib that referenced this issue Jun 14, 2022
* Try to unbreak CI by xfailing OSX Tk tests

Stopgap solution for matplotlib#23094

* Update lib/matplotlib/tests/test_backend_tk.py

* Update lib/matplotlib/tests/test_backend_tk.py

Co-authored-by: Oscar Gustafsson <oscar.gustafsson@gmail.com>
@QuLogic
Copy link
Member

QuLogic commented Oct 25, 2022

This was "fixed" by #23095, and then really fixed by upstream, which was confirmed by the revert in #23355.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants