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
Cannot launch Spyder after updating to macOS 11 Big Sur, please help. #14222
Comments
Same here. On all three of my Macs the same thing happened. After upgrading to Big Sur Spyder starts but the IDE never shows up. When I click on the Spyder icon in the dock it does not switch to Python in the title bar as before but stays in the terminal. I reinstalled my virtual environment, 3.9 then back to 3.8 it is the same. Any idea? |
I'm also experiencing this issue when attempting to launch Spyder using Anaconda Navigator. After upgrading to Big Sur, the Spyder icon will appear in the Dock, but never load. When attempting to load Spyder from the Terminal, it appears to never make it past line 3 of: /Users/adam/opt/anaconda3/envs/icebergdrift/bin/pythonw
Additionally, Keen to learn what the cause and/or solution is! |
Hi Adam,
I am not using anaconda, so it is a more general issue. I just launch Spyder from the command line and the same thing happen. I hope it gets fixed soon because I use Spyder every day.
George
… On Nov 13, 2020, at 16:45, Adam ***@***.***> wrote:
I'm also experiencing this issue when attempting to launch Spyder using Anaconda Navigator. After upgrading to Big Sur, the Spyder icon will appear in the Dock, but never load.
When attempting to load Spyder from the Terminal, it appears to never make it past line 3 of: /Users/adam/opt/anaconda3/envs/icebergdrift/bin/pythonw
#!/bin/bash
export PYTHONEXECUTABLE=/Users/adam/opt/anaconda3/envs/icebergdrift/bin/python
/Users/adam/opt/anaconda3/envs/icebergdrift/python.app/Contents/MacOS/python "$@"
Additionally, spyder --debug-info verbose --debug-output file does not produce any debugging information to the Terminal.
Keen to learn what the cause and/or solution is!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#14222 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AQBKEOZAHHWM5X5WFLRKGHDSPXAIHANCNFSM4TVBWMKQ>.
|
The same issue happened to me after updating to Big Sur. I don't know why, but I somehow resolved this issue by following the method as indicated in the following issue: More specifically, I tried the following steps:
Although I am able to launch and use Spyder now, there are some latency issues, as reported in the following issue: |
I tried everything you said, still no luck. |
@bendermh, thanks for digging deeper into this! Could the others download our macOS appilcation and see if it works for you? According to what @bendermh posted above, it should. |
Hi @ccordoba12, I attempted to install Spyder using the macOS .dmg file you provided but the program doesn't load. The icon appears in the Dock, but stops responding. Would having Anaconda installed cause a conflict with running Spyder on its own? Cheers, |
@ccordoba12 It's the same for me. The |
Same problem here |
same here |
I'll try to update to Big Sur this evening. In the meantime, could someone that feels confortable doing that try cloning the repo (see instructions at https://github.com/spyder-ide/spyder/blob/master/CONTRIBUTING.md#setting-up-a-development-environment), and run spyder with |
Pyzo users on Big Sur are experiencing the same issue. @ccordoba12 I also ran a new CI build this morning using Python 3.9 and the latest PyInstaller, but this seems not to fix it, which seems similar to the experience with Spyder, I think. Let's keep each-other informed :) |
@impact27 I tried the method you suggested on the branch 4.x, and the latency issue was not resolved. Also, I got the following output in the terminal:
|
@wenlzhang thanks! That means that Spyder did launch? There might be two different problems:
|
@impact27 I should have been more clear in the description... Spyder launches successfully but it has a very slow response. |
@wenlzhang, please run the following commands to see see if that helps:
If that still shows slowness, please run
|
Hey @almarklein! Sure, we should keep in touch. I think the problem is because Anaconda ships with a very old Qt version. Things should be fixed with Qt 5.12 (our current pip requirement) or 5.15 (hopefully). |
@ccordoba12 Neither of the two methods worked. Spyder would not launch this time, and I had to Force Quit Spyder from the Dock. With the first method, i.e. the following steps:
I got the following output in the terminal:
With the second method, i.e. by using the following commands:
I got the following output in the terminal:
|
Ok, thanks for trying. Could you post a screenshot of what you're seeing? |
@ccordoba12 Besides the terminal output described above, nothing else is special to me. The Spyder icon pops up in the Dock as follows, but Spyder does not launch. When I right click the Spyder icon in the Dock, it says that Application Not Responding. Also, |
I updated and can't reproduce with : |
Great news @impact27! Two additional questions for you:
|
The Mac app fails to start. I am not even sure it actually loads spyder code before blocking, so this could be PY2APP related. I will investigate further later.
```
0 libobjc.A.dylib 0x00007fff201d65dd class_copyProtocolList + 46
1 com.apple.CoreFoundation 0x00007fff204204e0 __methodDescriptionForSelector + 74
2 com.apple.CoreFoundation 0x00007fff2043a5f4 -[NSObject(NSObject) methodSignatureForSelector:] + 30
3 libqcocoa.dylib 0x0000000124ef7b79 0x124ee3000 + 84857
4 libqcocoa.dylib 0x0000000124ef774d 0x124ee3000 + 83789
5 QtGui 0x000000011ae59f27 QBackingStore::flush(QRegion const&, QWindow*, QPoint const&) + 1207
6 QtWidgets 0x000000011a7107ee 0x11a6f8000 + 100334
7 QtWidgets 0x000000011a714aa2 0x11a6f8000 + 117410
8 QtWidgets 0x000000011a7655c4 0x11a6f8000 + 447940
9 QtWidgets 0x000000011a762944 0x11a6f8000 + 436548
10 QtWidgets 0x000000011a70867d QApplicationPrivate::notify_helper(QObject*, QEvent*) + 269
11 QtWidgets 0x000000011a709a82 QApplication::notify(QObject*, QEvent*) + 594
12 QtWidgets.so 0x000000011a3933ca sipQApplication::notify(QObject*, QEvent*) + 234
13 QtCore 0x0000000119e49324 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 212
14 QtGui 0x000000011acd1115 QGuiApplicationPrivate::processExposeEvent(QWindowSystemInterfacePrivate::ExposeEvent*) + 309
15 QtGui 0x000000011acaf0e3 bool QWindowSystemInterfacePrivate::handleWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) + 115
16 QtGui 0x000000011acb60c2 void QWindowSystemInterface::handleExposeEvent(QWindow*, QRegion const&) + 178
```
|
Just tried downloading the dmg and get the same issue as @wenlzhang. Spyder icon pops up and down on dock then gets marked as opened but no window ever appears and I have to Force Quite Spyder because it's not responding. I also have Spyder installed via conda and that still opens up fine on Big Sur :). Even with multiple environments and changing python interpreters. But when opening the conda version I am getting the very high latency on keystrokes as mentioned in #14218. |
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
Info.plist is cached, so it might not work directly. If that doesn't work, the solution is to kill and rebuild the cache:
```
LSEnvironment
QT_MAC_WANTS_LAYER
1
CFBundleDevelopmentRegion
English
CFBundleDisplayName
Spyder
CFBundleDocumentTypes
CFBundleTypeExtensions
py
pyw
ipy
pyx
pxd
pxi
c
h
cc
cpp
cxx
h
hh
hpp
hxx
cl
f
for
f77
f90
f95
f2k
f03
f08
pro
m
jl
yaml
yml
patch
diff
rej
bat
cmd
txt
txt
rst
po
pot
nsi
nsh
scss
css
htm
html
xml
js
json
ipynb
enaml
properties
session
ini
inf
reg
cfg
desktop
md
CFBundleTypeName
Text File
CFBundleTypeRole
Editor
CFBundleExecutable
Spyder
CFBundleIconFile
spyder.icns
CFBundleIdentifier
org.spyder-ide
CFBundleInfoDictionaryVersion
6.0
CFBundleName
Spyder
CFBundlePackageType
APPL
CFBundleShortVersionString
4.2.0
CFBundleSignature
????
CFBundleVersion
0.0.0
LSHasLocalizedDisplayName
NSAppleScriptEnabled
NSHumanReadableCopyright
Copyright not specified
NSMainNibFile
MainMenu
NSPrincipalClass
NSApplication
PyMainFileNames
__boot__
PyOptions
alias
argv_emulation
emulate_shell_environment
no_chdir
prefer_ppc
site_packages
use_faulthandler
use_pythonpath
verbose
PyResourcePackages
PyRuntimeLocations
@executable_path/../Frameworks/Python.framework/Versions/3.8/Python
PythonInfoDict
PythonExecutable
/usr/local/opt/python@3.8/bin/python3.8
PythonLongVersion
3.8.6 (default, Oct 8 2020, 14:06:32)
[Clang 12.0.0 (clang-1200.0.32.2)]
PythonShortVersion
3.8
py2app
alias
template
app
version
0.22
```
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
You probably didn't run it in the correct environment. You can just uninstall everything and try again. Let me update the instructions:
Run:
|
It helped - thank you! |
Thank you @impact27 ! Got the same issue. It worked fine for me. |
Thank you @impact27 ! When I first "upgraded" to Big Sur, Spyder 4.1.5 was running from Anaconda, but today it was not. I tried the direct install (Mac OS) but it was not working. I run just the lines:
On my existing environment and it worked (launches 4.2.0), although the pip install means that Anaconda Navigator is not recognizing Spyder 4.2.0 and the app doesn't work. Any long term solution? Thanks Marcos |
We can probably add QT_MAC_WANTS_LAYER=1 to spyder so you wouldn’t need to set it. To make conda work instead of pip however we probably need to wait for conda to update the Qt version they distribute. The app can be updated however |
I've made a new build for Pyzo that does |
@km5ar The following two methods given above worked for me: Method 1:
Method 2:
|
Hi all, I am experiencing this issue with spyder, but I also seem to be getting the exact same symptoms when I try to launch anaconda navigator (icon appears in dock but will not open). It seems like big sur has potentially caused a wider anaconda issue? |
I can use Navigator and JupyterLab, but not Spyder and Notebook. |
thank you so much, this works for me!!!!! |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Sorry guys but I'm going to lock this issue because it's starting to accumulate incorrect answers (some of which are very bad advice). Bottom line is this:
Thanks for understanding. |
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.
I am not using Anaconda, I installed Spyder using pip.
How can I fix this? Thanks.
The text was updated successfully, but these errors were encountered: