Open smaffei opened 4 years ago
Does switching to a python package from defaults
fix this issue?
I am sorry, I don't understant what it is that you are suggesting. Are you suggesting to switch to the base environment? If that is what you mean, by switching to the base environment, I seem to be able to start spyder. I also have a python 2 environment from which I can start spyder
I noticed that the python package in the dedalus
environment is coming from the conda-forge channel. It is possible that this is causing an issue. Installing a version from defaults
may resolve this. This can be done using conda install -c default -n dedalus python
.
Actual Behavior
I created a new environment (called it 'dedalus' as the use of that model was the purpose of the environment, but I don't think it's important) with conda, with python 3.7.6 in it (among other things). Everything else in the environment seem to be working fine. I would like to use spyder to code, so I open Anaconda-Navigator and try to launch spyder (version 4.0.1, already tried to update it). Instead of launching, an "Application Launch error" window opens with the following Traceback:
Traceback (most recent call last): File "/opt/anaconda3/envs/dedalus/bin/spyder", line 11, in sys.exit(main()) File "/opt/anaconda3/envs/dedalus/lib/python3.7/site-packages/spyder/app/start.py", line 201, in main from spyder.app import mainwindow File "/opt/anaconda3/envs/dedalus/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 167, in from spyder.utils.environ import WinUserEnvDialog File "/opt/anaconda3/envs/dedalus/lib/python3.7/site-packages/spyder/utils/environ.py", line 19, in from spyder.plugins.variableexplorer.widgets.collectionseditor import ( File "/opt/anaconda3/envs/dedalus/lib/python3.7/site-packages/spyder/plugins/variableexplorer/widgets/collectionseditor.py", line 57, in from spyder.plugins.variableexplorer.widgets.collectionsdelegate import ( File "/opt/anaconda3/envs/dedalus/lib/python3.7/site-packages/spyder/plugins/variableexplorer/widgets/collectionsdelegate.py", line 31, in from spyder.plugins.variableexplorer.widgets.objectexplorer.attribute_model \ File "/opt/anaconda3/envs/dedalus/lib/python3.7/site-packages/spyder/plugins/variableexplorer/widgets/objectexplorer/init.py", line 19, in from .attribute_model import DEFAULT_ATTR_COLS, DEFAULT_ATTR_DETAILS File "/opt/anaconda3/envs/dedalus/lib/python3.7/site-packages/spyder/plugins/variableexplorer/widgets/objectexplorer/attribute_model.py", line 29, in import numpy as np File "/opt/anaconda3/envs/dedalus/lib/python3.7/site-packages/numpy/init.py", line 142, in from . import core File "/opt/anaconda3/envs/dedalus/lib/python3.7/site-packages/numpy/core/init.py", line 107, in from . import _internal File "/opt/anaconda3/envs/dedalus/lib/python3.7/site-packages/numpy/core/_internal.py", line 20, in IS_PYPY = platform.python_implementation() == 'PyPy' File "/opt/anaconda3/envs/dedalus/lib/python3.7/platform.py", line 1264, in python_implementation return _sys_version()[0] File "/opt/anaconda3/envs/dedalus/lib/python3.7/platform.py", line 1225, in _sys_version repr(sys_version)) ValueError: failed to parse CPython sys.version: '3.7.6 (default, Jan 8 2020, 13:42:34) \n[Clang 4.0.1 (tags/RELEASE_401/final)]'
Expected Behavior
I would expect spyder to launch and work. It does on the base environment (with Python 3.7.4 and spyder 3.3.6) or on a python 2 environment (python 2.7.17 and spyder 4.0.1).
Steps to Reproduce
Alternatively
open the terminal
activate the dedalus conda environment
launch spyder via
observe the spyder icon jumping in the doc and receive the error message (either in Anaconda-Navigator or in the terminal)
Anaconda or Miniconda version:
Anaconda Navigator 1.9.12
Operating System:
conda info
conda list --show-channel-urls