-
Notifications
You must be signed in to change notification settings - Fork 280
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
Matplotlib 3.3.0 Breaks _png #2752
Comments
Hi, and welcome to yt! Thanks for opening your first issue. We have an issue template that helps us to gather relevant information to help diagnosing and fixing the issue. |
Thank you for reporting this !
Furthermore it looks like they started using pillow as an optional dep since their 3.1.0 release (see release notes). |
and this is the crucial commit of this transition: matplotlib/matplotlib@370e9a2 |
I thought for sure we had addressed this previously. Hmmmm. Thanks for looking at this, will test it out over here... |
FWIW I tested it locally with the mpl 3.3 and it didn't crash, but changing the dpi seems to have no effect (I tried hardcoding a different value since it's not currently exposed). |
@neutrinoceros I have to admit that I just quickly saw this broke our CI, downgraded to mpl 3.2.2 and went on. The full call stack in the linked CI error above is:
|
@ax3l I'm sorry if my last message caused confusion, I was talking about #2754 . You are absolutely right to state that yt is currently not compatible with matplotlib 3.3. ! My aforementioned pull request should resolve the issue, so our next release will contain the fix. |
@neutrinoceros ah, got it now - thanks for the clarification and quick fix! |
This should be fixed now on the master branch thanks to #2754 |
Thank you for the quick fix! |
I had the same issue. (Matplotlib 3.3.0) As getting current version of yt from master is also broken
I just copied the current version of of
|
Hi @2sn , this error probably means you need to recompile yt (this is an expected side effect of how much the master branch evolved lately), so you should be able to fix this with |
I did install from scratch using |
Hello. pip3 install -U git+https://github.com/yt-project/yt.git doesn't seem to work for me, as it just gives the error from above regarding misc_utilities. Is there a different branch with the right fix somewhere? Type "help", "copyright", "credits" or "license" for more information.
|
Oh nvm, the following works... pip uninstall yt |
The latest stable release of matplotlib (version 3.3.0) breaks the current stable release of yt (version 3.6.0) - see yt-project/yt#2752. This has already been patched in yt's dev branch, but has not made it to a stable release.
Bug report
Bug summary
Matplotlib 3.3.0 removed the internal
_png
module, which breakshttps://github.com/yt-project/yt/blob/yt-3.6.0/yt/utilities/png_writer.py#L13
See the last mention in https://matplotlib.org/3.3.0/api/api_changes.html#matplotlib-now-uses-pillow-to-save-and-read-pngs
Code for reproduction
Just saw this on our CI:
https://travis-ci.com/github/ECP-WarpX/WarpX/jobs/361956903
MPL 3.3.0 was release about 5hrs ago.
https://github.com/matplotlib/matplotlib/releases/tag/v3.3.0
Actual outcome
Expected outcome
:-)
Version Information
Installed via
python -m pip install --upgrade cmake matplotlib mpi4py numpy scipy yt
.Work-Around
Downgrade matplotlib via
python -m pip install --upgrade matplotlib==3.2.2
.Exact details:
The text was updated successfully, but these errors were encountered: