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

issue with CI and inspect module #1250

Closed
sappelhoff opened this issue May 17, 2024 · 3 comments · Fixed by #1251
Closed

issue with CI and inspect module #1250

sappelhoff opened this issue May 17, 2024 · 3 comments · Fixed by #1251
Milestone

Comments

@sappelhoff
Copy link
Member

          @drammock @hoechenberger I think this is the failure that threw me off recently: https://github.com/mne-tools/mne-bids/actions/runs/9106401009/job/25033546552#step:20:1185

FAILED mne_bids/tests/test_inspect.py::test_inspect_single_file[True] - matplotlib._api.deprecation.MatplotlibDeprecationWarning: Auto-close()ing of figures upon backend switching is deprecated since 3.8 and will be removed in 3.10. To suppress this warning, explicitly call plt.close('all') first.
FAILED mne_bids/tests/test_inspect.py::test_inspect_single_file[False] - UserWarning: FigureCanvasAgg is non-interactive, and thus cannot be shown

Originally posted by @sappelhoff in #1245 (comment)

@sappelhoff
Copy link
Member Author

I can replicate this locally on macos 14.4.1 (M2 chip).

@larsoner
Copy link
Member

I suggest trying adding these lines to your conftest.py

https://github.com/mne-tools/mne-python/blob/5c2a25567e5e1613c204ad40be58bf483db6a99e/mne/conftest.py#L203-L210

sappelhoff added a commit to sappelhoff/mne-bids that referenced this issue May 19, 2024
@sappelhoff sappelhoff changed the title issue with CI and inspect module on macos issue with CI and inspect module May 21, 2024
@sappelhoff
Copy link
Member Author

issue occurs on Windows as well, as evidenced by CI logs in #1252

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

Successfully merging a pull request may close this issue.

2 participants