question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot launch Spyder after updating to macOS 11 Big Sur, please help.

See original GitHub issue

After updating my OS to macOS 11 today, I cannot seem to launch Spyder. I tried reinstall everything even reconstruct the python framework. Still does not work. When I run the following command in my terminal, the Spyder icon pops up but it stops there, nothing is being loaded and the Spyder window do not show up.

Last login: Fri Nov 13 16:07:21 on ttys000
Zhou@Jizhous-iMac ~ % Spyder/bin/spyder

I am not using Anaconda, I installed Spyder using pip.

How can I fix this? Thanks.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:64 (24 by maintainers)

github_iconTop GitHub Comments

2reactions
impact27commented, Nov 19, 2020

You probably didn’t run it in the correct environment. You can just uninstall everything and try again. Let me update the instructions: Installation:

conda create -n spyder-dev python=3
conda activate spyder-dev
pip install -U spyder

Run:

conda activate spyder-dev
export QT_MAC_WANTS_LAYER=1
spyder
2reactions
impact27commented, Nov 18, 2020

I could use this technique to launch the macOS appilcation but it is a bit laggy (not as bad as with Qt 5.9): https://stackoverflow.com/questions/16184505/set-environment-variable-for-the-process-before-startup

You need to add to Spyder.app/Contents/Info.plist :

<key>LSEnvironment</key>
<dict>
    <key>QT_MAC_WANTS_LAYER</key>
    <string>1</string>
</dict>

Info.plist is cached, so it might not work directly. If that doesn’t work, the solution is to kill and rebuild the cache: /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -seed my Info.plist now looks like:

``` <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>LSEnvironment</key> <dict> <key>QT_MAC_WANTS_LAYER</key> <string>1</string> </dict> <key>CFBundleDevelopmentRegion</key> <string>English</string> <key>CFBundleDisplayName</key> <string>Spyder</string> <key>CFBundleDocumentTypes</key> <array> <dict> <key>CFBundleTypeExtensions</key> <array> <string>py</string> <string>pyw</string> <string>ipy</string> <string>pyx</string> <string>pxd</string> <string>pxi</string> <string>c</string> <string>h</string> <string>cc</string> <string>cpp</string> <string>cxx</string> <string>h</string> <string>hh</string> <string>hpp</string> <string>hxx</string> <string>cl</string> <string>f</string> <string>for</string> <string>f77</string> <string>f90</string> <string>f95</string> <string>f2k</string> <string>f03</string> <string>f08</string> <string>pro</string> <string>m</string> <string>jl</string> <string>yaml</string> <string>yml</string> <string>patch</string> <string>diff</string> <string>rej</string> <string>bat</string> <string>cmd</string> <string>txt</string> <string>txt</string> <string>rst</string> <string>po</string> <string>pot</string> <string>nsi</string> <string>nsh</string> <string>scss</string> <string>css</string> <string>htm</string> <string>html</string> <string>xml</string> <string>js</string> <string>json</string> <string>ipynb</string> <string>enaml</string> <string>properties</string> <string>session</string> <string>ini</string> <string>inf</string> <string>reg</string> <string>cfg</string> <string>desktop</string> <string>md</string> </array> <key>CFBundleTypeName</key> <string>Text File</string> <key>CFBundleTypeRole</key> <string>Editor</string> </dict> </array> <key>CFBundleExecutable</key> <string>Spyder</string> <key>CFBundleIconFile</key> <string>spyder.icns</string> <key>CFBundleIdentifier</key> <string>org.spyder-ide</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>Spyder</string> <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> <string>4.2.0</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> <string>0.0.0</string> <key>LSHasLocalizedDisplayName</key> <false/> <key>NSAppleScriptEnabled</key> <false/> <key>NSHumanReadableCopyright</key> <string>Copyright not specified</string> <key>NSMainNibFile</key> <string>MainMenu</string> <key>NSPrincipalClass</key> <string>NSApplication</string> <key>PyMainFileNames</key> <array> <string>__boot__</string> </array> <key>PyOptions</key> <dict> <key>alias</key> <false/> <key>argv_emulation</key> <false/> <key>emulate_shell_environment</key> <false/> <key>no_chdir</key> <false/> <key>prefer_ppc</key> <false/> <key>site_packages</key> <false/> <key>use_faulthandler</key> <false/> <key>use_pythonpath</key> <false/> <key>verbose</key> <false/> </dict> <key>PyResourcePackages</key> <array/> <key>PyRuntimeLocations</key> <array> <string>@executable_path/../Frameworks/Python.framework/Versions/3.8/Python</string> </array> <key>PythonInfoDict</key> <dict> <key>PythonExecutable</key> <string>/usr/local/opt/python@3.8/bin/python3.8</string> <key>PythonLongVersion</key> <string>3.8.6 (default, Oct 8 2020, 14:06:32) [Clang 12.0.0 (clang-1200.0.32.2)]</string> <key>PythonShortVersion</key> <string>3.8</string> <key>py2app</key> <dict> <key>alias</key> <false/> <key>template</key> <string>app</string> <key>version</key> <string>0.22</string> </dict> </dict> </dict> </plist> ```
Read more comments on GitHub >

github_iconTop Results From Across the Web

Trouble setting up spyder 4.2.1 on macOS BIGsur
My current solution is to change spyders4.2.1 python environment to the python I installed seperately. Now I can install packages with pip ...
Read more >
Spyder update || Anaconda navigator - Mac OS Big Sur 2021
This video will help you get your Spyder updated on anaconda navigator on Mac OS 11 Big Sur :Type the following on terminal:conda...
Read more >
Frequently Asked Questions — Spyder 5 documentation
From the command line: Type spyder in your terminal (or Anaconda prompt on Windows). · From Anaconda Navigator: Scroll to Spyder under Home,...
Read more >
spyder-ide/public - Gitter
After the update to Spyder 4.2.0 THe outline pane stopped working. ... when I use spyder of anaconda in my macbook pro(big sur...
Read more >
Open a Mac app from an unidentified developer - Apple Support
However, the app has not been reviewed, and macOS can't check whether the app has been modified or broken since it was released....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found