spyder: Activation of kernel env fails when using anaconda shortcut (FileNotFound error kernel start 4.1.0)

Problem Description

Spyder4.1.0 IPython kernel startup error Close spyder and restart, the problem persists.

What steps reproduce the problem?

After upgrading spyder4.0.1 to 4.1.0, IPython kernel startup error occurs when starting spyder. The following command is used to upgrade in a virtual environment: conda install spyder=4.1.0

启动 IPython 内核时发生错误(An error occurred while starting the IPython kernel)
错误:(Error)
Traceback (most recent call last):
File "C:\Users\Admin\Anaconda3\envs\python37\lib\site‑packages\spyder\plugins\ipythonconsole\plugin.py", line 1209, in create_kernel_manager_and_kernel_client
kernel_manager.start_kernel(stderr=stderr_handle, **kwargs)
File "C:\Users\Admin\Anaconda3\envs\python37\lib\site‑packages\jupyter_client\manager.py", line 259, in start_kernel
**kw)
File "C:\Users\Admin\Anaconda3\envs\python37\lib\site‑packages\jupyter_client\manager.py", line 204, in _launch_kernel
return launch_kernel(kernel_cmd, **kw)
File "C:\Users\Admin\Anaconda3\envs\python37\lib\site‑packages\jupyter_client\launcher.py", line 138, in launch_kernel
proc = Popen(cmd, **kwargs)
File "C:\Users\Admin\Anaconda3\envs\python37\lib\subprocess.py", line 800, in __init__
restore_signals, start_new_session)
File "C:\Users\Admin\Anaconda3\envs\python37\lib\subprocess.py", line 1207, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] 系统找不到指定的文件(The system can not find the file specified)。

Versions

  • Spyder version: 4.1.0
  • Python version: Python3.7.5
  • Qt version: 5.9.6
  • PyQt version: 5.9.2
  • Operating System name/version: win10

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 31 (9 by maintainers)

Most upvoted comments

Testing with the desktop shortcut I can reproduce this! Thank you all for the feedback! for now please launch Spyder from the Anaconda prompt/Anaconda Navigator

yes, via desktop shortcut sypder 4.1 still doesn’t work (works from prompt and anaconda)

Testing with the desktop shortcut I can reproduce this! Thank you all for the feedback! for now please launch Spyder from the Anaconda prompt/Anaconda Navigator

Working perfect here through Anaconda Prompt

@dalthviz Sorry, I do not have a D drive. Only a C Drive

My list of packages running the first command is this one:

## Package Plan ##

environment location: C:\Users\SMORENO\AppData\Local\Continuum\miniconda3\envs\python37_new

added / updated specs: - python=3.7 - spyder=4.1.0

The following NEW packages will be INSTALLED:

alabaster conda-forge/noarch::alabaster-0.7.12-py_0 argh conda-forge/win-64::argh-0.26.2-py37_1001 astroid conda-forge/win-64::astroid-2.3.3-py37_1 atomicwrites conda-forge/noarch::atomicwrites-1.3.0-py_0 attrs conda-forge/noarch::attrs-19.3.0-py_0 autopep8 conda-forge/noarch::autopep8-1.5-py_0 babel conda-forge/noarch::babel-2.8.0-py_0 backcall conda-forge/noarch::backcall-0.1.0-py_0 bcrypt conda-forge/win-64::bcrypt-3.1.7-py37hfa6e2cd_0 bleach conda-forge/noarch::bleach-3.1.3-pyh8c360ce_0 ca-certificates conda-forge/win-64::ca-certificates-2019.11.28-hecc5488_0 certifi conda-forge/win-64::certifi-2019.11.28-py37hc8dfbb8_1 cffi conda-forge/win-64::cffi-1.14.0-py37ha419a9e_0 chardet conda-forge/win-64::chardet-3.0.4-py37hc8dfbb8_1006 cloudpickle conda-forge/noarch::cloudpickle-1.3.0-py_0 colorama conda-forge/noarch::colorama-0.4.3-py_0 cryptography conda-forge/win-64::cryptography-2.8-py37hb32ad35_1 decorator conda-forge/noarch::decorator-4.4.2-py_0 defusedxml conda-forge/noarch::defusedxml-0.6.0-py_0 diff-match-patch conda-forge/noarch::diff-match-patch-20181111-py_0 docutils conda-forge/win-64::docutils-0.16-py37hc8dfbb8_1 entrypoints conda-forge/win-64::entrypoints-0.3-py37hc8dfbb8_1001 flake8 conda-forge/win-64::flake8-3.7.9-py37hc8dfbb8_1 future conda-forge/win-64::future-0.18.2-py37hc8dfbb8_1 icu conda-forge/win-64::icu-64.2-he025d50_1 idna conda-forge/noarch::idna-2.9-py_1 imagesize conda-forge/noarch::imagesize-1.2.0-py_0 importlib-metadata conda-forge/win-64::importlib-metadata-1.5.0-py37_0 importlib_metadata conda-forge/noarch::importlib_metadata-1.5.0-1 intervaltree conda-forge/noarch::intervaltree-3.0.2-py_0 ipykernel conda-forge/win-64::ipykernel-5.1.4-py37h5ca1d4c_0 ipython conda-forge/win-64::ipython-7.13.0-py37h5ca1d4c_0 ipython_genutils conda-forge/noarch::ipython_genutils-0.2.0-py_1 isort conda-forge/win-64::isort-4.3.21-py37hc8dfbb8_1 jedi conda-forge/win-64::jedi-0.14.1-py37_0 jinja2 conda-forge/noarch::jinja2-2.11.1-py_0 jpeg conda-forge/win-64::jpeg-9c-hfa6e2cd_1001 jsonschema conda-forge/win-64::jsonschema-3.2.0-py37hc8dfbb8_1 jupyter_client conda-forge/noarch::jupyter_client-6.0.0-py_0 jupyter_core conda-forge/win-64::jupyter_core-4.6.3-py37hc8dfbb8_1 keyring conda-forge/win-64::keyring-21.1.1-py37_0 lazy-object-proxy conda-forge/win-64::lazy-object-proxy-1.4.3-py37hfa6e2cd_1 libclang conda-forge/win-64::libclang-9.0.1-default_hf44288c_0 libpng conda-forge/win-64::libpng-1.6.37-h7602738_0 libsodium conda-forge/win-64::libsodium-1.0.17-h2fa13f4_0 libspatialindex conda-forge/win-64::libspatialindex-1.9.3-he025d50_3 markupsafe conda-forge/win-64::markupsafe-1.1.1-py37h8055547_1 mccabe conda-forge/noarch::mccabe-0.6.1-py_1 mistune conda-forge/win-64::mistune-0.8.4-py37hfa6e2cd_1000 nbconvert conda-forge/win-64::nbconvert-5.6.1-py37_0 nbformat conda-forge/noarch::nbformat-5.0.4-py_0 numpydoc conda-forge/noarch::numpydoc-0.9.2-py_0 openssl conda-forge/win-64::openssl-1.1.1d-hfa6e2cd_0 packaging conda-forge/noarch::packaging-20.1-py_0 pandoc conda-forge/win-64::pandoc-2.9.2-0 pandocfilters conda-forge/noarch::pandocfilters-1.4.2-py_1 paramiko conda-forge/win-64::paramiko-2.7.1-py37_0 parso pkgs/main/noarch::parso-0.5.2-py_0 pathtools conda-forge/noarch::pathtools-0.1.2-py_1 pexpect conda-forge/win-64::pexpect-4.8.0-py37hc8dfbb8_1 pickleshare conda-forge/win-64::pickleshare-0.7.5-py37hc8dfbb8_1001 pip conda-forge/noarch::pip-20.0.2-py_2 pluggy conda-forge/noarch::pluggy-0.12.0-py_0 prompt-toolkit conda-forge/noarch::prompt-toolkit-3.0.4-py_0 prompt_toolkit conda-forge/noarch::prompt_toolkit-3.0.4-0 psutil conda-forge/win-64::psutil-5.7.0-py37h8055547_1 pycodestyle conda-forge/noarch::pycodestyle-2.5.0-py_0 pycparser conda-forge/noarch::pycparser-2.20-py_0 pydocstyle conda-forge/noarch::pydocstyle-5.0.2-py_0 pyflakes conda-forge/noarch::pyflakes-2.1.1-py_0 pygments conda-forge/noarch::pygments-2.6.1-py_0 pylint conda-forge/win-64::pylint-2.4.4-py37_0 pynacl conda-forge/win-64::pynacl-1.3.0-py37h2fa13f4_1001 pyopenssl conda-forge/noarch::pyopenssl-19.1.0-py_1 pyparsing conda-forge/noarch::pyparsing-2.4.6-py_0 pyqt conda-forge/win-64::pyqt-5.12.3-py37h6538335_1 pyrsistent conda-forge/win-64::pyrsistent-0.15.7-py37h8055547_1 pysocks conda-forge/win-64::pysocks-1.7.1-py37hc8dfbb8_1 python conda-forge/win-64::python-3.7.6-h5b45d93_4_cpython python-dateutil conda-forge/noarch::python-dateutil-2.8.1-py_0 python-jsonrpc-se~ conda-forge/noarch::python-jsonrpc-server-0.3.4-py_0 python-language-s~ conda-forge/win-64::python-language-server-0.31.8-py37hc8dfbb8_0 python_abi conda-forge/win-64::python_abi-3.7-1_cp37m pytz conda-forge/noarch::pytz-2019.3-py_0 pywin32 conda-forge/win-64::pywin32-227-py37hfa6e2cd_0 pywin32-ctypes conda-forge/win-64::pywin32-ctypes-0.2.0-py37hc8dfbb8_1001 pyyaml conda-forge/win-64::pyyaml-5.3-py37h8055547_1 pyzmq conda-forge/win-64::pyzmq-19.0.0-py37h8c16cda_1 qdarkstyle conda-forge/noarch::qdarkstyle-2.8-py_0 qt conda-forge/win-64::qt-5.12.5-h7ef1ec2_0 qtawesome conda-forge/noarch::qtawesome-0.7.0-py_0 qtconsole conda-forge/noarch::qtconsole-4.7.1-py_0 qtpy conda-forge/noarch::qtpy-1.9.0-py_0 requests conda-forge/noarch::requests-2.23.0-pyh8c360ce_2 rope conda-forge/noarch::rope-0.16.0-py_0 rtree conda-forge/win-64::rtree-0.9.4-py37h804a536_1 setuptools conda-forge/win-64::setuptools-46.0.0-py37hc8dfbb8_2 six conda-forge/noarch::six-1.14.0-py_1 snowballstemmer conda-forge/noarch::snowballstemmer-2.0.0-py_0 sortedcontainers conda-forge/noarch::sortedcontainers-2.1.0-py_0 sphinx conda-forge/noarch::sphinx-2.4.4-py_0 sphinxcontrib-app~ conda-forge/noarch::sphinxcontrib-applehelp-1.0.2-py_0 sphinxcontrib-dev~ conda-forge/noarch::sphinxcontrib-devhelp-1.0.2-py_0 sphinxcontrib-htm~ conda-forge/noarch::sphinxcontrib-htmlhelp-1.0.3-py_0 sphinxcontrib-jsm~ conda-forge/noarch::sphinxcontrib-jsmath-1.0.1-py_0 sphinxcontrib-qth~ conda-forge/noarch::sphinxcontrib-qthelp-1.0.3-py_0 sphinxcontrib-ser~ conda-forge/noarch::sphinxcontrib-serializinghtml-1.1.4-py_0 spyder conda-forge/win-64::spyder-4.1.0-py37hc8dfbb8_0 spyder-kernels conda-forge/win-64::spyder-kernels-1.9.0-py37hc8dfbb8_0 sqlite conda-forge/win-64::sqlite-3.30.1-hfa6e2cd_0 testpath conda-forge/noarch::testpath-0.4.4-py_0 tornado conda-forge/win-64::tornado-6.0.4-py37hfa6e2cd_0 traitlets conda-forge/win-64::traitlets-4.3.3-py37hc8dfbb8_1 typed-ast conda-forge/win-64::typed-ast-1.4.1-py37hfa6e2cd_0 ujson conda-forge/win-64::ujson-1.35-py37h63f7a3c_1002 urllib3 conda-forge/win-64::urllib3-1.25.7-py37hc8dfbb8_1 vc pkgs/main/win-64::vc-14.1-h0510ff6_4 vs2015_runtime pkgs/main/win-64::vs2015_runtime-14.16.27012-hf0eaf9b_1 watchdog conda-forge/win-64::watchdog-0.10.2-py37_0 wcwidth conda-forge/noarch::wcwidth-0.1.8-py_0 webencodings conda-forge/noarch::webencodings-0.5.1-py_1 wheel conda-forge/noarch::wheel-0.34.2-py_1 win_inet_pton conda-forge/win-64::win_inet_pton-1.1.0-py37_0 wincertstore conda-forge/win-64::wincertstore-0.2-py37_1003 wrapt conda-forge/win-64::wrapt-1.12.1-py37h8055547_1 yaml conda-forge/win-64::yaml-0.2.2-hfa6e2cd_1 yapf conda-forge/noarch::yapf-0.29.0-py_0 zeromq conda-forge/win-64::zeromq-4.3.2-h6538335_2 zipp conda-forge/noarch::zipp-3.1.0-py_0 zlib conda-forge/win-64::zlib-1.2.11-h2fa13f4_1006

I tried comparing them with text compare but it says “Sorry, but finding all the differences for these two texts takes too long”, I noticed asn1crypto does not show for me though