-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
ValueError: Key backend: '' is not a valid value for backend #19848
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
Comments
Probably related to #19603 |
@QuLogic , what does that mean for downstream setup? Do we have to completely change the way we set backend for CI? Can you please advise? Thanks! |
I ran into this yesterday as well and opened: matplotlib/pytest-mpl#117 For me this was failing just from using pytest-mpl before getting to any tests:
|
It is unclear to me where the fix should be. Does pytest-mpl need to be fixed to be compatible now, or is this unintentional side effect of matplotlib change? |
This is definitely a fix on our side, I will look at this this afternoon. |
Thank you all for the quick responses! |
See comment in code. Accounts for the fact that we can to directly specify the "fallback" backend value. This interprets the lack of a backend entry and an empty backend entry the same. closes matplotlib#19848
See #19854 |
Bug report
I am actually not sure if this is a bug. It started happening today for
matplotlib
installed from yourmaster
branch for our CI. We run some image tests using your dev version on CircleCI, which uses our tox.ini and some settings in astropy/conftest.py.It starts to complain about no backend even though we set it at astropy/conftest.py#L84 and that works for older versions of
matplotlib
.Code for reproduction
We can reproduce it on both GitHub Actions and CircleCI using tox + pytest but only with the dev version of matplotlib.
Actual outcome
See traceback above.
Expected outcome
It does not throw
ValueError
.Matplotlib version
import matplotlib; print(matplotlib.__version__)
): matplotlib @ git+https://github.com/matplotlib/matplotlib.git@cc8669fc69b0cc618336a17d324f5fdbf1922f22 (reported by CircleCI)print(matplotlib.get_backend())
): Agg but somehow not registering (see above)Also, the Actions log.
xref astropy/astropy#11458
The text was updated successfully, but these errors were encountered: