Skip to content

matplotlib 3.4.2 using on M1 Mac, with python 3.9.4 #20261

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

Closed
UnReAlKiNg opened this issue May 19, 2021 · 2 comments
Closed

matplotlib 3.4.2 using on M1 Mac, with python 3.9.4 #20261

UnReAlKiNg opened this issue May 19, 2021 · 2 comments

Comments

@UnReAlKiNg
Copy link

Bug report

Bug summary

when using the sentence "import matplotlib.pyplot as plt", python suddenly crash.

Code for reproduction

my programm is running on VScode

# Paste your code here
#import matplotlib.pyplot as plt
#plt.show()
#

Actual outcome

# If applicable, paste the console output here
#in VScode <zsh: killed python -u>
#in terminal:
Process:               Python [12881]
Path:                  /Library/Frameworks/Python.framework/Versions/3.9/Resources/Python.app/Contents/MacOS/Python
Identifier:            Python
Version:               3.9.4 (3.9.4)
Code Type:             ARM-64 (Native)
Parent Process:        zsh [12848]
Responsible:           Terminal [12126]
User ID:               501

Date/Time:             2021-05-19 16:48:31.564 +0800
OS Version:            macOS 11.3 (20E232)
Report Version:        12
Anonymous UUID:        376F0AEB-2643-5CA3-CBEC-A6FDE7D7EF14

Sleep/Wake UUID:       F99FAD23-21F1-4BB7-BA9A-3B30F6429AA9

Time Awake Since Boot: 44000 seconds
Time Since Wake:       2800 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (Code Signature Invalid)
Exception Codes:       0x0000000000000032, 0x0000000102754000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    Namespace CODESIGNING, Code 0x2

kernel messages:

VM Regions Near 0x102754000:
    __LINKEDIT                  102748000-102754000    [   48K] r--/rwx SM=COW  /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/lib-dynload/readline.cpython-39-darwin.so
--> mapped file                 102754000-102758000    [   16K] r--/r-x SM=PRV  Object_id=4502a073
    __TEXT                      102760000-1027e0000    [  512K] r-x/r-x SM=COW  /usr/lib/dyld

#

Expected outcome

Matplotlib version

  • Operating system: macOS, Big Sur, version 11.3
  • Matplotlib version (import matplotlib; print(matplotlib.__version__)): 3.4.2
  • Matplotlib backend (print(matplotlib.get_backend())):
  • Python version: 3.9.4
  • Jupyter version (if applicable):
  • Other libraries:

pip3 install matplotlib

@QuLogic
Copy link
Member

QuLogic commented May 20, 2021

We do not have arm64 wheels, see #19267; you will have to use Rosetta or a build from conda-forge.

@QuLogic QuLogic closed this as completed May 20, 2021
@UnReAlKiNg
Copy link
Author

thanks a lot @QuLogic .
At first I install matplotlib via pip3 install matplotlib
and as you said, I use conda uninstall matplotlib and then conda install matplotlib.
and finally matplotlib runs well in VScode.

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

No branches or pull requests

2 participants