spyder: Can't launch Spyder on Mac (Anaconda) - Segmentation fault: 11" message
Issue Report Checklist
- Searched the issues page for similar reports
- Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
- Reproduced the issue after updating with
conda update spyder(orpip, if not using Anaconda) - Could not reproduce inside
jupyter qtconsole(if console-related) - Tried basic troubleshooting (if a bug/error)
- Restarted Spyder
- Reset preferences with
spyder --reset - Reinstalled the latest version of Anaconda
- Tried the other applicable steps from the Troubleshooting Guide
- Completed the Problem Description, Steps to Reproduce and Version sections below
Problem Description
I use Spyder3 with anaconda on my Mac for years at work. I don’t know if it’s related but I updated Spyder last week as the update invite appear when launching : conda update conda conda install spyder=5.4.2 Then I used Spyder one day and since today I can’t launch Spyder3, I have this “Segmentation fault: 11” message.
I tried to update-all, uninstall and reinstall anaconda, install previous version of Spyder3, change Anaconda environnement but the issue is still there.
What steps reproduce the problem?
- When launching
What is the expected output? What do you see instead?
Paste Traceback/Error Below (if applicable)
(base) lmop-su-e-dcp:~ David$ spyder
/Users/David/anaconda3/bin/pythonw: line 3: 2523 Segmentation fault: 11 /Users/David/anaconda3/python.app/Contents/MacOS/python "$@"
Versions
- Spyder version: 5.4.2
- Python version: 3.10.9
- Qt version: 5.15.2
- PyQt version: 5.15.7
- Operating System name/version: macOS Mojave 10.14.6
Dependencies
PASTE DEPENDENCIES HERE
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 41 (10 by maintainers)
Hey guys, thanks for reporting. Please open the Anaconda Prompt and run there
That should fix your problem.
Still having this issue on Sonoma 14.5 M3 pro model
/opt/anaconda3/bin/pythonw: line 3: 1438 Segmentation fault: 11 /opt/anaconda3/python.app/Contents/MacOS/python "$@"reinstalling python.app doesnt help at all.
EDIT: only fix seems to be installing spyder into its own env from the conda-forge channel using this line from the site:
conda create -c conda-forge -n <env name> spyder numpy scipy pandas matplotlib sympy cythonSince that doesn’t work (don’t know why, it did before), you have two choices:
Use Conda-forge packages to install Spyder. For that you need to run the following commands:
Or download and install our Mac app, which shouldn’t display this problem.
In both cases, you need to connect any of those versions to your base environment (so you don’t have to reinstall every package on it again), by following these instructions.
^the first option worked for me, Mac air 15 m2, this is what it said in the terminal after running: The available OpenGL surface format was either not version 3.2 or higher or not a Core Profile.
Chromium on macOS will fall back to software rendering in this case.
Hardware acceleration and features such as WebGL will not be available.
fromIccProfile: failed minimal tag size sanity
Populating font family aliases took 53 ms. Replace uses of missing font family “Menlo” with one that exists to avoid this cost.
^update: when I went to close out the terminal I noticed it was still running. The same issue as @mxe1234 which is ok, because I still get to use Spyder LOL
Bende bu sorun hala devam ediyor. Yardımcı olabilir misiniz?
Thanks! But please wait until 6.0.1 for that. Several issues have surfaced since then, so we’re planning to release 6.0.1 in a couple of weeks to address most of them.
@ccordoba12 No problem, and congrats on the release! I’ll open a ticket for Spyder 6.0 on our side, if there is not one already.
Hi @PasquinoFI, this is due to the Qt version Anaconda provides. We are in the process of updating to a new version of Qt, but it likely won’t be part of our installer before our 2025.02 release. Sorry for the inconvenience.
Hi, so I had the same issue but I somewhat found a way to solve it. Basically, I tried to change the parameter @mxe1234 mentioned but I couldn’t, only
base (root)was showing. So I clicked on the option icon on the spyder app (as shown on the screenshot) and clicked onInstall specific version >. This opens a menu allowing to choose among different version. I chose the oldest one available (I do not know if the chosen version matters actually) and it suggested to make a new environment, namedspyder. From here I followed the download process and I now have the option to choosespyderinstead ofbase (root). I chosespyderand updated it using the setting icon menu. Now I can finally use the latest version of Spyder. Basically, what I did amounts to what @TrStans606 did but using the interface and not the terminal. I hope that it helps.