Skip to content
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

Spyder_kernels 2.4.0 mod installation in python 3.11 on M1 Macbook Air #20191

Closed
2 of 3 tasks
iayoung85 opened this issue Dec 13, 2022 · 21 comments
Closed
2 of 3 tasks

Spyder_kernels 2.4.0 mod installation in python 3.11 on M1 Macbook Air #20191

iayoung85 opened this issue Dec 13, 2022 · 21 comments

Comments

@iayoung85
Copy link

iayoung85 commented Dec 13, 2022

Issue Report Checklist

  • Searched the issues page for similar reports
  • Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
  • [ x] Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
  • [ ???] Could not reproduce inside jupyter qtconsole (if console-related)
  • Tried basic troubleshooting (if a bug/error)
    • [ x] Restarted Spyder
    • [ ???] Reset preferences with spyder --reset
    • [ ?? do i NEED anaconda??] Reinstalled the latest version of Anaconda
    • [ ???] Tried the other applicable steps from the Troubleshooting Guide
  • [ x] Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description

sorry i'm kind of a noob here.. I usually use a PC but my laptop is a macbook.. so it makes life a little bit more difficult obviously trying to learn in both platforms..
i am trying to run an M1 macbook air and i'm trying to get spyder running with python3.11.
I don't have anaconda.. I actually had it and i've gone ahead and done my best to try to uninstall it.. though i really don't know if i did a good job uninstalling it.. Do i really need anaconda?

What steps reproduce the problem?

  1. install spyder most recent version
  2. install python 3.11
  3. enter command in terminal: pip3.11 install spyder_kernels
  4. open spyder.. change python interpreter in preferences to /usr/local/bin/python3.11

What is the expected output? What do you see instead?

I expect to see the python 3.11 interpreter kernel start running
instead i see:
An error occurred while starting the kernel

Paste Traceback/Error Below (if applicable)

An error ocurred while starting the kernel
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/spyder_kernels/console/__main__.py", line 24, in
start.main()
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/spyder_kernels/console/start.py", line 303, in main
from ipykernel.kernelapp import IPKernelApp
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/kernelapp.py", line 51, in
from .ipkernel import IPythonKernel
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/ipkernel.py", line 19, in
from .comm.comm import BaseComm
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/comm/__init__.py", line 3, in
from .comm import Comm
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/comm/comm.py", line 14, in
from ipykernel.kernelbase import Kernel
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/kernelbase.py", line 35, in
import psutil
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/__init__.py", line 123, in
from . import _psosx as _psplatform
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psosx.py", line 13, in
from . import _psposix
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psposix.py", line 28, in
from . import _psutil_osx
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so, 0x0002): tried: '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so' (mach‑o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so' (no such file), '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so' (mach‑o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/spyder_kernels/console/__main__.py", line 24, in
start.main()
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/spyder_kernels/console/start.py", line 303, in main
from ipykernel.kernelapp import IPKernelApp
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/kernelapp.py", line 51, in
from .ipkernel import IPythonKernel
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/ipkernel.py", line 19, in
from .comm.comm import BaseComm
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/comm/__init__.py", line 3, in
from .comm import Comm
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/comm/comm.py", line 14, in
from ipykernel.kernelbase import Kernel
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/kernelbase.py", line 35, in
import psutil
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/__init__.py", line 123, in
from . import _psosx as _psplatform
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psosx.py", line 13, in
from . import _psposix
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psposix.py", line 28, in
from . import _psutil_osx
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so, 0x0002): tried: '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so' (mach‑o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so' (no such file), '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so' (mach‑o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/spyder_kernels/console/__main__.py", line 24, in
start.main()
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/spyder_kernels/console/start.py", line 303, in main
from ipykernel.kernelapp import IPKernelApp
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/kernelapp.py", line 51, in
from .ipkernel import IPythonKernel
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/ipkernel.py", line 19, in
from .comm.comm import BaseComm
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/comm/__init__.py", line 3, in
from .comm import Comm
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/comm/comm.py", line 14, in
from ipykernel.kernelbase import Kernel
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/kernelbase.py", line 35, in
import psutil
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/__init__.py", line 123, in
from . import _psosx as _psplatform
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psosx.py", line 13, in
from . import _psposix
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psposix.py", line 28, in
from . import _psutil_osx
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so, 0x0002): tried: '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so' (mach‑o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so' (no such file), '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so' (mach‑o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/spyder_kernels/console/__main__.py", line 24, in
start.main()
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/spyder_kernels/console/start.py", line 303, in main
from ipykernel.kernelapp import IPKernelApp
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/kernelapp.py", line 51, in
from .ipkernel import IPythonKernel
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/ipkernel.py", line 19, in
from .comm.comm import BaseComm
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/comm/__init__.py", line 3, in
from .comm import Comm
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/comm/comm.py", line 14, in
from ipykernel.kernelbase import Kernel
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/kernelbase.py", line 35, in
import psutil
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/__init__.py", line 123, in
from . import _psosx as _psplatform
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psosx.py", line 13, in
from . import _psposix
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psposix.py", line 28, in
from . import _psutil_osx
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so, 0x0002): tried: '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so' (mach‑o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so' (no such file), '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so' (mach‑o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/spyder_kernels/console/__main__.py", line 24, in
start.main()
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/spyder_kernels/console/start.py", line 303, in main
from ipykernel.kernelapp import IPKernelApp
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/kernelapp.py", line 51, in
from .ipkernel import IPythonKernel
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/ipkernel.py", line 19, in
from .comm.comm import BaseComm
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/comm/__init__.py", line 3, in
from .comm import Comm
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/comm/comm.py", line 14, in
from ipykernel.kernelbase import Kernel
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/kernelbase.py", line 35, in
import psutil
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/__init__.py", line 123, in
from . import _psosx as _psplatform
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psosx.py", line 13, in
from . import _psposix
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psposix.py", line 28, in
from . import _psutil_osx
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so, 0x0002): tried: '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so' (mach‑o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so' (no such file), '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so' (mach‑o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/spyder_kernels/console/__main__.py", line 24, in
start.main()
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/spyder_kernels/console/start.py", line 303, in main
from ipykernel.kernelapp import IPKernelApp
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/kernelapp.py", line 51, in
from .ipkernel import IPythonKernel
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/ipkernel.py", line 19, in
from .comm.comm import BaseComm
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/comm/__init__.py", line 3, in
from .comm import Comm
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/comm/comm.py", line 14, in
from ipykernel.kernelbase import Kernel
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/kernelbase.py", line 35, in
import psutil
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/__init__.py", line 123, in
from . import _psosx as _psplatform
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psosx.py", line 13, in
from . import _psposix
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psposix.py", line 28, in
from . import _psutil_osx
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so, 0x0002): tried: '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so' (mach‑o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so' (no such file), '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so' (mach‑o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/spyder_kernels/console/__main__.py", line 24, in
start.main()
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/spyder_kernels/console/start.py", line 303, in main
from ipykernel.kernelapp import IPKernelApp
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/kernelapp.py", line 51, in
from .ipkernel import IPythonKernel
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/ipkernel.py", line 19, in
from .comm.comm import BaseComm
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/comm/__init__.py", line 3, in
from .comm import Comm
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/comm/comm.py", line 14, in
from ipykernel.kernelbase import Kernel
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/kernelbase.py", line 35, in
import psutil
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/__init__.py", line 123, in
from . import _psosx as _psplatform
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psosx.py", line 13, in
from . import _psposix
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psposix.py", line 28, in
from . import _psutil_osx
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so, 0x0002): tried: '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so' (mach‑o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so' (no such file), '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so' (mach‑o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/spyder_kernels/console/__main__.py", line 24, in
start.main()
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/spyder_kernels/console/start.py", line 303, in main
from ipykernel.kernelapp import IPKernelApp
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/kernelapp.py", line 51, in
from .ipkernel import IPythonKernel
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/ipkernel.py", line 19, in
from .comm.comm import BaseComm
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/comm/__init__.py", line 3, in
from .comm import Comm
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/comm/comm.py", line 14, in
from ipykernel.kernelbase import Kernel
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/kernelbase.py", line 35, in
import psutil
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/__init__.py", line 123, in
from . import _psosx as _psplatform
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psosx.py", line 13, in
from . import _psposix
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psposix.py", line 28, in
from . import _psutil_osx
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so, 0x0002): tried: '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so' (mach‑o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so' (no such file), '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so' (mach‑o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/spyder_kernels/console/__main__.py", line 24, in
start.main()
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/spyder_kernels/console/start.py", line 303, in main
from ipykernel.kernelapp import IPKernelApp
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/kernelapp.py", line 51, in
from .ipkernel import IPythonKernel
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/ipkernel.py", line 19, in
from .comm.comm import BaseComm
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/comm/__init__.py", line 3, in
from .comm import Comm
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/comm/comm.py", line 14, in
from ipykernel.kernelbase import Kernel
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/kernelbase.py", line 35, in
import psutil
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/__init__.py", line 123, in
from . import _psosx as _psplatform
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psosx.py", line 13, in
from . import _psposix
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psposix.py", line 28, in
from . import _psutil_osx
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so, 0x0002): tried: '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so' (mach‑o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so' (no such file), '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so' (mach‑o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/spyder_kernels/console/__main__.py", line 24, in
start.main()
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/spyder_kernels/console/start.py", line 303, in main
from ipykernel.kernelapp import IPKernelApp
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/kernelapp.py", line 51, in
from .ipkernel import IPythonKernel
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/ipkernel.py", line 19, in
from .comm.comm import BaseComm
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/comm/__init__.py", line 3, in
from .comm import Comm
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/comm/comm.py", line 14, in
from ipykernel.kernelbase import Kernel
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/kernelbase.py", line 35, in
import psutil
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/__init__.py", line 123, in
from . import _psosx as _psplatform
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psosx.py", line 13, in
from . import _psposix
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psposix.py", line 28, in
from . import _psutil_osx
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so, 0x0002): tried: '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so' (mach‑o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so' (no such file), '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so' (mach‑o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/spyder_kernels/console/__main__.py", line 24, in
start.main()
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/spyder_kernels/console/start.py", line 303, in main
from ipykernel.kernelapp import IPKernelApp
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/kernelapp.py", line 51, in
from .ipkernel import IPythonKernel
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/ipkernel.py", line 19, in
from .comm.comm import BaseComm
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/comm/__init__.py", line 3, in
from .comm import Comm
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/comm/comm.py", line 14, in
from ipykernel.kernelbase import Kernel
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/kernelbase.py", line 35, in
import psutil
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/__init__.py", line 123, in
from . import _psosx as _psplatform
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psosx.py", line 13, in
from . import _psposix
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psposix.py", line 28, in
from . import _psutil_osx
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so, 0x0002): tried: '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so' (mach‑o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so' (no such file), '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so' (mach‑o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/spyder_kernels/console/__main__.py", line 24, in
start.main()
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/spyder_kernels/console/start.py", line 303, in main
from ipykernel.kernelapp import IPKernelApp
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/kernelapp.py", line 51, in
from .ipkernel import IPythonKernel
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/ipkernel.py", line 19, in
from .comm.comm import BaseComm
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/comm/__init__.py", line 3, in
from .comm import Comm
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/comm/comm.py", line 14, in
from ipykernel.kernelbase import Kernel
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/ipykernel/kernelbase.py", line 35, in
import psutil
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/__init__.py", line 123, in
from . import _psosx as _psplatform
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psosx.py", line 13, in
from . import _psposix
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psposix.py", line 28, in
from . import _psutil_osx
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so, 0x0002): tried: '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so' (mach‑o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so' (no such file), '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so' (mach‑o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))

Versions

  • Spyder version: 5.4.0

  • Python version: 3.11.0

  • Qt version: ??? idk what this is

  • PyQt version: ??? idk what this is

  • Operating System name/version:13.0.1 (22A400)

Dependencies

# Mandatory:
atomicwrites >=1.2.0                 :  1.4.1 (OK)
chardet >=2.0.0                      :  5.0.0 (OK)
cloudpickle >=0.5.0                  :  2.2.0 (OK)
cookiecutter >=1.6.0                 :  2.1.1 (OK)
diff_match_patch >=20181111          :  20200713 (OK)
intervaltree >=3.0.2                 :  3.1.0 (OK)
IPython >=7.31.1;<8.0.0              :  7.34.0 (OK)
jedi >=0.17.2;<0.19.0                :  0.18.1 (OK)
jellyfish >=0.7                      :  0.9.0 (OK)
jsonschema >=3.2.0                   :  4.17.0 (OK)
keyring >=17.0.0                     :  23.9.3 (OK)
nbconvert >=4.0                      :  7.2.3 (OK)
numpydoc >=0.6.0                     :  1.5.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.3 (OK)
pygments >=2.0                       :  2.13.0 (OK)
pylint >=2.5.0;<3.0                  :  2.15.5 (OK)
pylint_venv >=2.1.1                  :  None (OK)
pyls_spyder >=0.4.0                  :  0.4.0 (OK)
pylsp >=1.6.0;<1.7.0                 :  1.6.0 (OK)
pylsp_black >=1.2.0                  :  1.2.1 (OK)
qdarkstyle >=3.0.2;<3.1.0            :  3.0.3 (OK)
qstylizer >=0.2.2                    :  0.2.2 (OK)
qtawesome >=1.2.1                    :  1.2.1 (OK)
qtconsole >=5.4.0;<5.5.0             :  5.4.0 (OK)
qtpy >=2.1.0                         :  2.2.1 (OK)
rtree >=0.9.7                        :  1.0.1 (OK)
setuptools >=49.6.0                  :  65.5.1 (OK)
sphinx >=0.6.6                       :  5.1.1 (OK)
spyder_kernels >=2.4.0;<2.5.0        :  2.4.0 (OK)
textdistance >=4.2.0                 :  4.5.0 (OK)
three_merge >=0.1.1                  :  0.1.1 (OK)
watchdog >=0.10.3                    :  2.1.9 (OK)
zmq >=22.1.0                         :  24.0.1 (OK)

# Optional:
cython >=0.21                        :  0.29.32 (OK)
matplotlib >=3.0.0                   :  3.6.2 (OK)
numpy >=1.7                          :  1.22.4 (OK)
pandas >=1.1.1                       :  1.5.1 (OK)
scipy >=0.17.0                       :  1.9.3 (OK)
sympy >=0.7.3                        :  1.11.1 (OK)

# Spyder plugins:
spyder_terminal.terminalplugin 1.2.2 :  1.2.2 (OK)
@ccordoba12
Copy link
Member

Hey @iayoung85, thanks for reporting. You said:

I don't have anaconda.. I actually had it and i've gone ahead and done my best to try to uninstall it.. though i really don't know if i did a good job uninstalling it.. Do i really need anaconda?

So, how did you install Spyder?

An error occurred while starting the kernel

This part of the error

ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so, 0x0002): tried: '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so' (mach‑o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so' (no such file), '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/psutil/_psutil_osx.abi3.so' (mach‑o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))

seem to point out to a problem with the Python version you installed. So, I think you have a Python 3.11 for Intel Macs, which is giving an error for one of the packages required by Spyder-kernels.

My suggestion is that you remove your current Python 3.11 and reinstall the version that runs natively on the M1 chip.

@iayoung85
Copy link
Author

iayoung85 commented Dec 15, 2022 via email

@ccordoba12
Copy link
Member

Sure, I guess it doesn't have a problem to run thanks to Rosetta2. But it seems to be confusing one of the libraries required by Spyder-kernels.

So, as said, please uninstall it and install a version which works natively for the M1 chip, i.e. an ARM64 Mac Python version.

@iayoung85
Copy link
Author

ccordoba12,
Thanks for your suggestion to find one which works natively with the M1 chip.
I'm visiting the python.org website right now and i can't seem to figure out where to download such a version that works natively on the M1 chip I.E. and ARM64 Mac Python version.
I agree this could be the issue however i just can't seem to find that download..
Warm Regards,
Isaac

@ccordoba12
Copy link
Member

ccordoba12 commented Dec 16, 2022

I'm visiting the python.org website right now and i can't seem to figure out where to download such a version that works natively on the M1 chip I.E. and ARM64 Mac Python version.

You're right. They don't release a specific version for M1 chips. So, my suggestion is for you to

  1. Remove your Python 3.11 installation.

  2. Download Miniconda, specifically the pkg installer for M1 chips.

  3. Open a terminal and run the following commands there

     conda create -n py311-env -c conda-forge python=3.11 spyder-kernels
     conda activate py311-env
     conda install -c conda-forge matplotlib pandas <add here any other package you need for your work>
    
  4. Connect your current Spyder version with that environment as you did with your previous Python installation.

I know you don't want to use Anaconda/Miniconda, but I think this is the simplest way to move forward. If you want to keep trying with your current Python installation, it's up to you because I have no idea how to solve that problem.

@ccordoba12
Copy link
Member

Closing due to lack of response.

@issimo007
Copy link

issimo007 commented Feb 9, 2023

I am having the same issues with my new MacBookPro2023 (M2 Max chip) and using the Python Universal Installer (ARM) so something weird is going on with Spyder that is not working:

ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site‑packages/psutil/_psutil_osx.abi3.so, 0x0002): tried: '/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site‑packages/psutil/_psutil_osx.abi3.so' (mach‑o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site‑packages/psutil/_psutil_osx.abi3.so' (no such file), '/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site‑packages/psutil/_psutil_osx.abi3.so' (mach‑o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))

@ccordoba12
Copy link
Member

ccordoba12 commented Feb 10, 2023

@issimo007, it seems you are new to Python or Scientific Python. I say it because installing Spyder to the your system Python (i.e. the Python that comes pre-installed with Mac) is a really bad idea since you can quite easily break your system. If that's the case, please save yourself a lot of trouble by simply downloading our Mac application from here and use that instead.

In case you observe strange problems with your computer (probably due to you messing with your system Python), I'd also recommend to reinstall your Mac version.

@issimo007
Copy link

issimo007 commented Feb 10, 2023

Carlos not new at all to Python. The install is from Spyder directly and as I have pointed out there is an issue with the ARM64 architecture. It's ok if you say you don't know the answer to this problem but it is a problem so be aware.

To be specific, the Python version that comes pre-installed with Spyder works but using v10 or v11 causes the issue only on the ARM64 Mac. On my intel Mac I have no issues at all.

@iayoung85
Copy link
Author

i did end up giving up on conda or miniconda or spyder due to this kind of errors.. I have moved to VScode and, while it's more complicated, It's well worth the trouble to learn it.. Though I am open to hearing what others think of VScode when compared to Spyder here!

@issimo007
Copy link

Spyder is great and I usually use PIP (I profoundly dislike the Conda business model) for all my packages and have had no issues until this new chip with Apple. The vanilla install with Spyder works out of the box but if I want to use Python v11 then the Spyder-kernels fail completely and the error seems to be related to psutil and the ARM64 architecture. I read on other forums this is an issue. Hopefully they can sort it out.

@issimo007
Copy link

Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/spyder_kernels/console/main.py", line 24, in
start.main()
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/spyder_kernels/console/start.py", line 303, in main
from ipykernel.kernelapp import IPKernelApp
File "/Users/USERNAME/Library/Python/3.11/lib/python/site‑packages/ipykernel/kernelapp.py", line 52, in
from .ipkernel import IPythonKernel
File "/Users/USERNAME/Library/Python/3.11/lib/python/site‑packages/ipykernel/ipkernel.py", line 20, in
from .comm.comm import BaseComm
File "/Users/USERNAME/Library/Python/3.11/lib/python/site‑packages/ipykernel/comm/init.py", line 3, in
from .comm import Comm
File "/Users/USERNAME/Library/Python/3.11/lib/python/site‑packages/ipykernel/comm/comm.py", line 14, in
from ipykernel.kernelbase import Kernel
File "/Users/USERNAME/Library/Python/3.11/lib/python/site‑packages/ipykernel/kernelbase.py", line 35, in
import psutil
File "/Users/USERNAME/Library/Python/3.11/lib/python/site‑packages/psutil/init.py", line 123, in
from . import _psosx as _psplatform
File "/Users/USERNAME/Library/Python/3.11/lib/python/site‑packages/psutil/_psosx.py", line 13, in
from . import _psposix
File "/Users/USERNAME/Library/Python/3.11/lib/python/site‑packages/psutil/_psposix.py", line 28, in
from . import _psutil_osx
ImportError: dlopen(/Users/USERNAME/Library/Python/3.11/lib/python/site‑packages/psutil/_psutil_osx.abi3.so, 0x0002): tried: '/Users/USERNAME/Library/Python/3.11/lib/python/site‑packages/psutil/_psutil_osx.abi3.so' (mach‑o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/USERNAME/Library/Python/3.11/lib/python/site‑packages/psutil/_psutil_osx.abi3.so' (no such file), '/Users/USERNAME/Library/Python/3.11/lib/python/site‑packages/psutil/_psutil_osx.abi3.so' (mach‑o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/spyder_kernels/console/main.py", line 24, in
start.main()
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site‑packages/spyder_kernels/console/start.py", line 303, in main
from ipykernel.kernelapp import IPKernelApp
File "/Users/USERNAME/Library/Python/3.11/lib/python/site‑packages/ipykernel/kernelapp.py", line 52, in
from .ipkernel import IPythonKernel
File "/Users/USERNAME/Library/Python/3.11/lib/python/site‑packages/ipykernel/ipkernel.py", line 20, in
from .comm.comm import BaseComm
File "/Users/USERNAME/Library/Python/3.11/lib/python/site‑packages/ipykernel/comm/init.py", line 3, in
from .comm import Comm
File "/Users/USERNAME/Library/Python/3.11/lib/python/site‑packages/ipykernel/comm/comm.py", line 14, in
from ipykernel.kernelbase import Kernel
File "/Users/USERNAME/Library/Python/3.11/lib/python/site‑packages/ipykernel/kernelbase.py", line 35, in
import psutil
File "/Users/USERNAME/Library/Python/3.11/lib/python/site‑packages/psutil/init.py", line 123, in
from . import _psosx as _psplatform
File "/Users/USERNAME/Library/Python/3.11/lib/python/site‑packages/psutil/_psosx.py", line 13, in
from . import _psposix
File "/Users/USERNAME/Library/Python/3.11/lib/python/site‑packages/psutil/_psposix.py", line 28, in
from . import _psutil_osx
ImportError: dlopen(/Users/USERNAME/Library/Python/3.11/lib/python/site‑packages/psutil/_psutil_osx.abi3.so, 0x0002): tried: '/Users/USERNAME/Library/Python/3.11/lib/python/site‑packages/psutil/_psutil_osx.abi3.so' (mach‑o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/USERNAME/Library/Python/3.11/lib/python/site‑packages/psutil/_psutil_osx.abi3.so' (no such file), '/Users/USERNAME/Library/Python/3.11/lib/python/site‑packages/psutil/_psutil_osx.abi3.so' (mach‑o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))

@issimo007
Copy link

Above is the error I get when using 3.11 instead of the built in

@iayoung85
Copy link
Author

iayoung85 commented Feb 10, 2023

Above is the error I get when using 3.11 instead of the built in

yes this is exactly the problem i feel i was facing.. I don't blame anyone.. I'm so amazed that Python developers keep working so hard to bring out new versions and it's very understandable that it can take months for these new versions to be fully ironed out. I should just never use the latest version.. stay with 3.10 until 3.12 comes out then try 3.11 maybe? haha i just get obsessed with trying to keep everything up to date.

@ccordoba12
Copy link
Member

ccordoba12 commented Feb 10, 2023

Carlos not new at all to Python.

Ok, sorry for the wrong assumption. Perhaps installing from Python.org follows the same layout as the system Python one. And installing to system Python is a very rookie mistake, as you probably know.

i did end up giving up on conda or miniconda or spyder due to this kind of errors..

That's why we created self-contained and error free apps for Windows and Mac years ago. If you want to keep fighting with Conda or Pip, up to you. We can't prevent that but try to discourage it because you can easily enter in dll or dependency hell.

Though I am open to hearing what others think of VScode when compared to Spyder here!

See issue #17155.

The vanilla install with Spyder works out of the box but if I want to use Python v11 then the Spyder-kernels fail completely and the error seems to be related to psutil and the ARM64 architecture. I read on other forums this is an issue. Hopefully they can sort it out.

Ok, I see what you're trying to do now and for that my advice of using our Mac app wouldn't help either. It seems that psutil wheel is incorrectly declaring itself as universal2 when in fact it's not. So, you should open an issue on its repo instead.

Above is the error I get when using 3.11 instead of the built in

It's the same error as before, so nothing we can do about it.

yes this is exactly the problem i feel i was facing.. I don't blame anyone.. I'm so amazed that Python developers keep working so hard to bring out new versions and it's very understandable that it can take months for these new versions to be fully ironed out.

I think you'll find the same error even if you're using VSCode because it also requires to install IPykernel in Python envs in order to connect to them.

@issimo007
Copy link

ok this is weird but it seems to work performing the following (found it on the psutil open issues: giampaolo/psutil#2098):

  1. uninstall psutil - pip uninstall psutil
  2. reinstall psutil with this deprecated command (see warning below): pip install --no-binary :all: psutil

DEPRECATION: --no-binary currently disables reading from the cache of locally built wheels. In the future --no-binary will not influence the wheel cache. pip 23.1 will enforce this behaviour change. A possible replacement is to use the --no-cache-dir option. You can use the flag --use-feature=no-binary-enable-wheel-cache to test the upcoming behaviour. Discussion can be found at pypa/pip#11453

  1. Spyder works like a charm with the interpreter located as wanted
    /Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11

I tried reinstalling psutil many times without using the "--no binary" command and it didn't work. Not sure why that works but it seems to do the trick.

@issimo007
Copy link

@ccordoba12 my quick trick didn't really work. For now I am using Spyder as is but unable to use an ARM based interpreter outside of Spyder's built in. I suspect the kernels are not working properly but I could be wrong.

@ccordoba12
Copy link
Member

They are working just fine if you use Conda-forge packages, which support the new arm64 Mac architecture.

@issimo007
Copy link

Any progress on getting ARM based chip compatibilities fixed?

@ccordoba12
Copy link
Member

There isn't and I'm sorry to say it but there's not going to be because that's something we can fix. If you don't want to use Conda and Conda-forge packages, there's no way to use Spyder natively on M1/M2 Macs, sorry.

@issimo007
Copy link

Hello folks I forgot to update this forum but it seems the simplest solution is to install packages as follows, including the Spyder kernels and everything works as long rosetta is installed (softwareupdate --install-rosetta):

pip install --no-binary :all: pandas

or any other package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants