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

Failed test due to matplotlib deprecation of interactive_bk #287

Open
scottshambaugh opened this issue Aug 10, 2024 · 1 comment · May be fixed by #289
Open

Failed test due to matplotlib deprecation of interactive_bk #287

scottshambaugh opened this issue Aug 10, 2024 · 1 comment · May be fixed by #289

Comments

@scottshambaugh
Copy link

scottshambaugh commented Aug 10, 2024

I originally submitted this issue for debugpy microsoft/debugpy#1623, and saw on a linked issue that there is a comment tracking the issue back to PyDev.Debugger: microsoft/debugpy#1633 (comment)

I'm not sure if the issue is in this repo, but potentially this line is at fault?

self._gui_event_loop = "matplotlib"

Please see the linked tickets for details, but the end result is that I am unable to debug tests in VSCode via the Python extension right now. The following error is raised:

E       matplotlib._api.deprecation.MatplotlibDeprecationWarning: The interactive_bk attribute was deprecated in Matplotlib 3.9 and will be removed in 3.11. Use ``matplotlib.backends.backend_registry.list_builtin(matplotlib.backends.BackendFilter.INTERACTIVE)`` instead.
@tcrasset
Copy link

tcrasset commented Sep 3, 2024

A workaround to make debug work is to ignore the warnings using:

In pyproject.toml (or other configuration file, adapt the syntax accordingly)

[tool.pytest.ini_options]

filterwarnings = [
    "error", # raise error on every warning, except the ones below
    "ignore::matplotlib._api.deprecation.MatplotlibDeprecationWarning",
]

@jcjaskula-aws jcjaskula-aws linked a pull request Sep 15, 2024 that will close this issue
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