question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TST: matplotlib 3.4.1 broke RTD with MatplotlibDeprecationWarning

See original GitHub issue

You will see this error on CircleCI for mpldev and in the dev job of Actions:

INTERNALERROR> ValueError: Key backend: '' is not a valid value for backend; supported values are
['GTK3Agg', 'GTK3Cairo', 'MacOSX', 'nbAgg', 'Qt4Agg', 'Qt4Cairo', 'Qt5Agg', 'Qt5Cairo',
'TkAgg', 'TkCairo', 'WebAgg', 'WX', 'WXAgg', 'WXCairo', 'agg', 'cairo',
'pdf', 'pgf', 'ps', 'svg', 'template']

You will see these warnings on RTD:

MatplotlibDeprecationWarning:
The validCap attribute was deprecated in Matplotlib 3.4 and will be removed two minor releases later.
  return getattr(obj, attr, *defargs)
MatplotlibDeprecationWarning:
The validJoin attribute was deprecated in Matplotlib 3.4 and will be removed two minor releases later.
  return getattr(obj, attr, *defargs)

~pandas saw something similar for the warning and their fix is pandas-dev/pandas#32444~

TODO

  • Revert #11466 and #11468 when matplotlib/matplotlib#19839 is resolved and that fix is released.
  • Wait for fix for matplotlib/matplotlib#19848 (the fix in their dev should be sufficient). Follow up at #11471

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
github-actions[bot]commented, Apr 1, 2021

Greetings from Skynet!

(A special day message.)

1reaction
nstarmancommented, Apr 2, 2021

@pllim. I removed that part of the patch because I found it didn’t have an effect. The matplotlib docs use `.CapStyle`, which as a relative path can’t be overridden or ignored by numpydoc xref. Thanks, I’ll open a PR

Read more comments on GitHub >

github_iconTop Results From Across the Web

Subclasses of Polygon with numpydoc xref throws error b/c of ...
TST: matplotlib 3.4.1 broke RTD with MatplotlibDeprecationWarning astropy/astropy#11458. Open. nstarman added a commit to nstarman/astropy that referenced ...
Read more >
What's New — ginga v3.4.1
Fixed a small issue with a callback method in the Preferences plugin. Fix for a matplotlib deprecation warning. Ver 3.4.0 (2022-06-28) ....
Read more >
ginga Documentation - Read the Docs
ginga Documentation, Release 3.4.1 ... Fix for some broken tests under python 2.7 ... Tests can now be run with py.test as well...
Read more >
How do I install Matplotlib 3.4.1 in Anaconda? - Stack Overflow
I went to the Matplotlib official site discourse and found this post: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found