-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
OSError: [Errno 86] Bad CPU type in executable: 'convert' on import matplotlib.animation #15399
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
Concerning the concrete issue here, I have no idea if this is due to a broken ImageMagick install, another application shadowing However, in general this points to a problem with finding the available writers: I suppose we would want to catch matplotlib/lib/matplotlib/__init__.py Line 340 in 74ed294
as well? As for availability it's not really important if the file is not there, or cannot be run, right? More matplotlib/lib/matplotlib/animation.py Lines 726 to 728 in 74ed294
That is, I would say whatever strange things might happen trying to find available movie writers, the module should load just fine and spill out any strange encounters into the log. |
Thanks for the assistance. Turns out my "convert" executable was not working:
I reinstalled ImageMagick through homebrew, but that didn't fix the "convert" executable. The solution was to simply remove the file "convert" from /usr/local/bin, and now matplotlib works fine. |
As mentioned by @ImportanceOfBeingErnest we should catch OSError, not FNFError here. |
For future googlers, the problem with |
Hi @anntzer , can I take this issue? I'm new to open source. 😁 |
@immaxchen New contributors always welcome. Please check out the developer's guide in the docs. |
…err-issue-15399 FIX: catch OSError instead of FileNotFoundError in _get_executable_info closes #15399
…ror in _get_executable_info to resolve matplotlib#15399
Bug report
Bug summary
import matplotlib.animation as animation crashes with error on macOS Catalina:
OSError: [Errno 86] Bad CPU type in executable: 'convert'
Code for reproduction
Actual outcome
Expected outcome
Expect to load library with no error.
Matplotlib version
print(matplotlib.get_backend())
): MacOSXMatplotlib was installed using conda default channel
The text was updated successfully, but these errors were encountered: