Open fangohr opened 2 months ago
Hi @fangohr thank you for the feedback! I haven't used pixi myselft but checking around the pythonapp
vs python.app
difference you spotted, maybe this behavior is related with https://github.com/ContinuumIO/anaconda-issues/issues/12188 ? Seems like then a fix over python.app
needs to be done somehow? 🤔
Hi @dalthviz, thank you for picking this up. Yes, I think you are right that this is a python.app problem.
However, I installed from conda-forge (not anaconda default).
I have a new data point: installing spyder with miniforge results in a working installation. Here are the key steps to reproduce:
# install miniforge from https://github.com/conda-forge/miniforge?tab=readme-ov-file#download
conda create --name spydertestenv python=3.12 spyder
conda activate spydertestenv
spyder
This works.
Is there perhaps a difference in the installed packages?
This setup has installed (just listing spyder and python.app, output from conda list
:
python.app 3 py312h80987f9_1
spyder 5.5.1 py312hca03da5_3
spyder-kernels 2.5.0 py312hca03da5_0
whereas the install with pixi has installed (output from pixi list
:
python.app 1.4 py312h7fd2b6f_3 18.2 KiB conda python.app-1.4-py312h7fd2b6f_3.conda
spyder 5.5.5 py312h81bd7bf_0 11.1 MiB conda spyder-5.5.5-py312h81bd7bf_0.conda
spyder-kernels 2.5.2 unix_pyh707e725_0 79.2 KiB conda spyder-kernels-2.5.2-unix_pyh707e725_0.conda
Ticking of simple things first, I have forced pixi to use spyder/5.5.1, and that does not change the behaviour.
The difference in the python app version seems remarkable though: 1.4
in pixi and 3
in the miniforge based installation.
Trying to force version 3 of python.app
with pixi, results in this error:
MBAM2 pixi-env2 % pixi add python=3.12 python.app=3 spyder
x failed to solve the conda requirements of 'default' 'osx-arm64'
`-> Cannot solve the request because of: No candidates were found for python.app 3.*.
Perhaps other Python versions make it possible?
MBAM2 pixi-env2 % pixi add python python.app=3 spyder
x failed to solve the conda requirements of 'default' 'osx-arm64'
`-> Cannot solve the request because of: No candidates were found for python.app 3.*.
No.
Hm this is really weird because conda-forge
only has 1.4 as far as I can see:
I double checked and the 3
version of python.app
is only available from the Anaconda defaults channel. That makes an installation with conda-forge only impossible, if it is the real underlying problem.
Thank you @fangohr for the extra info! As @wolfv says then I would say this is an issue with the python.app
package available from conda-forge (by the way thank you @wolfv for giving this a check!).
I think there is not much we can do from the Spyder side, sorry :/
Issue Report Checklist
conda update spyder
(orpip
, if not using Anaconda)jupyter qtconsole
(if console-related)spyder --reset
Problem Description
When installing Spyder with
pixi
on MacOS, I run into this error:What steps reproduce the problem?
What is the expected output? What do you see instead?
I expect spyder to start.
Possible cause of the problem / hack to fix
So in summary, editing the
pythonw
file to point to.../pythonapp/...
instead of.../python.app/...
fixes the issue.I don't know if the problem is with pixi or the conda-forge package or something else.
I could not reproduce this on Linux (in a container): the pixi install of spyder worked fine there.
Versions
Spyder version: 5.5.5
Python version: 3.12.5 (I have tried Python 3.10 as well - same error.)
Qt version: Not sure what is needed here:
PyQt version: 5.15.9
Operating System name/version: MacOS Sonoma 14.6.1
Dependencies