-
-
Notifications
You must be signed in to change notification settings - Fork 389
appnope segfaults on Apple Silicon #561
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
Conversation
Can confirm, this change fixes Jupyter for me on an ARM Macbook Air! |
Note that this solution is just a band-aid on a much deeper wound, see #562 . Something is not working with ctypes calls on Apple Silicon that is touched by appnope. |
As far as I can tell, it's just appnope itself that's broken, nothing deeper. Has to do with whatever the implicit argtypes is for ctypes. Also objc_getClass returning None because Foundation wasn't loaded. Fix here: |
I don't think this change is necessary anymore because as noted in the issue @geohot linked, the issue has been resolved in appnope. I updated appnope today, reverted this MR in my copy of iPython, and I was able to run Jupyterlab natively. |
Yes, should be good with appnope 0.1.1, which will already be installed. Closing PR. |
@geohot this update isn't working for me anymore, tried it many times after creating new envs. Here is the sample output of installed packages and GPU installation:
|
@mtoseef99 That appears to be a bug in tensorflow or somewhere else, it has no relation to ipython or appnope. |
@erykoff I tried different solutions, installing, re-installing miniforge and TensorFlow but nothing worked for me except changing the optimizer to Someone just talked about this on stack exchange today: But using |
I haven't root caused why, but this PR disables it for arm64 chip. Otherwise on M1 the kernels segfault on startup.