PyCharm Plotting Issue “Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)” Follow
Copying my SO post over to here for some hopeful help! Within PyCharm (Versions 2020.3) I'm unable to show any plots and I get an error. I've tried following other recommendations of going into PyCharm settings and unselecting "PyQt" as well as selecting "Gevent compatible" with no luck. I believe the issue started happening after the latest Big Sur update, but I'm not 100% positive. Below are the errors and any other info I thought might be relevant. I would love any help or guidance since this has been driving me crazy for a couple weeks moving output just to visualize things in Jupyter Notebooks! Thank you in advance!!
Error: "Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)"
Some more info and not sure if this matters, but when I import matplotlib I get this output:
"Backend MacOSX is interactive backend. Turning interactive mode on."
Here is a basic example from Matplotlib site to reproduce my error as well as the basic code block:
import numpy as np
import matplotlib.pyplot as plt
# Fixing random state for reproducibility
np.random.seed(19680801)
N = 50
x = np.random.rand(N)
y = np.random.rand(N)
colors = np.random.rand(N)
area = (30 * np.random.rand(N))**2 # 0 to 15 point radii
plt.scatter(x, y, s=area, c=colors, alpha=0.5)
plt.show()
Please sign in to leave a comment.
Hi,
It could be that the update broke your system interpreter.
I recommend installing Python from https://www.python.org/ and then using it in PyCharm for virtualenv creation https://www.jetbrains.com/help/pycharm/configuring-python-interpreter.html#add_new_project_interpreter
Does it work with that venv?
Thanks Sergey Karpov. I tried using virtualenv and still received the same error unfortunately.
What's the result when you run your code from the system terminal using the same interpreter? Does it also crash?
Thanks again Sergey Karpov. Not sure why I didnt try this already. So I opened just a terminal and ran python 3.8. I get the same "Python quit unexpectedly" box and within the terminal I get this error: