Description
What steps will reproduce the problem?
- Change Python Interpretor to System’s Python path
- Install spyder-kernal
Traceback
Traceback (most recent call last):
File "/Applications/Spyder.app/Contents/Resources/lib/python3.9/jupyter_client/manager.py", line 91, in wrapper
self._ready.set_result(None)
asyncio.exceptions.InvalidStateError: invalid state
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "qtconsole/manager.pyc", line 27, in poll
File "/Applications/Spyder.app/Contents/Resources/lib/python3.9/jupyter_client/restarter.py", line 143, in poll
self.kernel_manager.restart_kernel(now=True, newports=newports)
File "jupyter_core/utils/__init__.pyc", line 173, in wrapped
File "asyncio/base_events.pyc", line 647, in run_until_complete
File "/Applications/Spyder.app/Contents/Resources/lib/python3.9/jupyter_client/manager.py", line 596, in _async_restart_kernel
await self._async_start_kernel(**self._launch_args)
File "/Applications/Spyder.app/Contents/Resources/lib/python3.9/jupyter_client/manager.py", line 94, in wrapper
self._ready.set_exception(e)
asyncio.exceptions.InvalidStateError: invalid state
Versions
- Spyder version: 5.5.0 b4c4e1a16 (standalone)
- Python version: 3.9.14 64-bit
- Qt version: 5.15.11
- PyQt5 version: 5.15.10
- Operating System: macOS-14.1.1-x86_64-i386-64bit
Dependencies
# Mandatory:
atomicwrites >=1.2.0 : 1.4.1 (OK)
chardet >=2.0.0 : 5.2.0 (OK)
cloudpickle >=0.5.0 : 3.0.0 (OK)
cookiecutter >=1.6.0 : 2.5.0 (OK)
diff_match_patch >=20181111 : 20230430 (OK)
intervaltree >=3.0.2 : 3.1.0 (OK)
IPython >=8.13.0,<9.0.0,!=8.17.1 : 8.17.2 (OK)
jedi >=0.17.2,<0.20.0 : 0.19.1 (OK)
jellyfish >=0.7 : 1.0.3 (OK)
jsonschema >=3.2.0 : 4.20.0 (OK)
keyring >=17.0.0 : 24.3.0 (OK)
nbconvert >=4.0 : 7.11.0 (OK)
numpydoc >=0.6.0 : 1.6.0 (OK)
parso >=0.7.0,<0.9.0 : 0.8.3 (OK)
pexpect >=4.4.0 : 4.8.0 (OK)
pickleshare >=0.4 : 0.7.5 (OK)
psutil >=5.3 : 5.9.6 (OK)
pygments >=2.0 : 2.17.1 (OK)
pylint >=2.5.0,<3.1 : 3.0.2 (OK)
pylint_venv >=3.0.2 : None (OK)
pyls_spyder >=0.4.0 : 0.4.0 (OK)
pylsp >=1.9.0,<1.10.0 : 1.9.0 (OK)
pylsp_black >=1.2.0,<3.0.0 : 1.3.0 (OK)
qdarkstyle >=3.2.0,<3.3.0 : 3.2.1 (OK)
qstylizer >=0.2.2 : 0.2.2 (OK)
qtawesome >=1.2.1 : 1.2.3 (OK)
qtconsole >=5.5.0,<5.6.0 : 5.5.1 (OK)
qtpy >=2.1.0 : 2.4.1 (OK)
rtree >=0.9.7 : 1.1.0 (OK)
setuptools >=49.6.0 : 69.0.2 (OK)
sphinx >=0.6.6 : 5.1.1 (OK)
spyder_kernels >=2.5.0,<2.6.0 : 2.5.0 (OK)
textdistance >=4.2.0 : 4.6.0 (OK)
three_merge >=0.1.1 : 0.1.1 (OK)
watchdog >=0.10.3 : 3.0.0 (OK)
zmq >=22.1.0 : 25.1.1 (OK)
# Optional:
cython >=0.21 : 3.0.5 (OK)
matplotlib >=3.0.0 : 3.8.2 (OK)
numpy >=1.7 : 1.26.2 (OK)
pandas >=1.1.1 : 2.1.3 (OK)
scipy >=0.17.0 : 1.11.4 (OK)
sympy >=0.7.3 : 1.12 (OK)
Ryan: I realized that I never confirmed the solution on this issue. The download works great! I appreciate the support from you and Carlos, and I still kind of marvel at how things progressed from workaround to solution to enhanced product. You don’t see that every day. Regards, Tom Barson
On Sun, Jan 21, 2024 at 5:22 PM Ryan Clary @.***> wrote:
– Tom Barson East Lansing, MI
@tomb1949, I’ve uploaded an arm64 build of Spyder 5.5.0 to our release page. This is a full standalone version, but built locally on my M1 iMac, using a universal/arm64 Python environment only. You may want to give that a try; this should not require any of the workarounds that I posted earlier. https://github.com/spyder-ide/spyder/releases/download/v5.5.0/Spyder-arm64.dmg
It is possible to detect whether the environment Python executable is x86_64, arm64, or Universal. It is possible to detect whether Spyder is running under Rosetta since
platform.versionwill containARM64(the true architecture), whileplatform.platformwill indicatex86_64.I’ll reinvestigate building the standalone installer on arm64. As I recall, there was an issue because PyQt5 was not available in arm64. If I can build a native arm64 standalone, I think other issues may be resolved as well (#20201, #20629).
We can discuss possible strategies for moving forward at our next developer meeting.
I would note that from the above traceback, all we know is that
psutilis the first problematic binary encountered. It is possible that other packages will also have arm64 only architecture installed.Ryan: Thank you - this is above and beyond. I will attempt your suggestions tomorrow am when I have a full day to try them and deal with the consequences. Appreciate your help very much. Some other tools (VS Code, Jupyter) are doing fine with my setup, but I miss Spyder. Your suggestions will be useful even if (or especially if) I revert to Anaconda. TB
On Fri, Jan 5, 2024 at 2:41 PM Ryan Clary @.***> wrote:
– Tom Barson East Lansing, MI