spyder-ide / spyder

Official repository for Spyder - The Scientific Python Development Environment
https://www.spyder-ide.org
MIT License
8.27k stars 1.61k forks source link

Spyder not working in new environment #12754

Closed JoanAgusti closed 4 years ago

JoanAgusti commented 4 years ago

Description

What steps will reproduce the problem?

I just created a new environment using Anaconda Navigator with python 3.5. Then, I installed Spyder though the Navigator. Nothing else.

Traceback

  File "C:\Users\Joan\Anaconda2\envs\QuTip\lib\site-packages\spyder\plugins\__init__.py", line 514, in <lambda>
    toggled=lambda checked: self.toggle_view(checked),
  File "C:\Users\Joan\Anaconda2\envs\QuTip\lib\site-packages\spyder\plugins\ipythonconsole.py", line 766, in toggle_view
    self.create_new_client(give_focus=False)
  File "C:\Users\Joan\Anaconda2\envs\QuTip\lib\site-packages\spyder\plugins\ipythonconsole.py", line 1096, in create_new_client
    self.connect_client_to_kernel(client, is_cython=is_cython)
  File "C:\Users\Joan\Anaconda2\envs\QuTip\lib\site-packages\spyder\plugins\ipythonconsole.py", line 1124, in connect_client_to_kernel
    is_cython=is_cython)
  File "C:\Users\Joan\Anaconda2\envs\QuTip\lib\site-packages\spyder\plugins\ipythonconsole.py", line 1542, in create_kernel_manager_and_kernel_client
    kernel_manager.start_kernel(stderr=stderr)
  File "C:\Users\Joan\Anaconda2\envs\QuTip\lib\site-packages\jupyter_client\manager.py", line 240, in start_kernel
    self.write_connection_file()
  File "C:\Users\Joan\Anaconda2\envs\QuTip\lib\site-packages\jupyter_client\connect.py", line 547, in write_connection_file
    kernel_name=self.kernel_name
  File "C:\Users\Joan\Anaconda2\envs\QuTip\lib\site-packages\jupyter_client\connect.py", line 212, in write_connection_file
    with secure_write(fname) as f:
  File "C:\Users\Joan\Anaconda2\envs\QuTip\lib\contextlib.py", line 59, in __enter__
    return next(self.gen)
  File "C:\Users\Joan\Anaconda2\envs\QuTip\lib\site-packages\jupyter_client\connect.py", line 102, in secure_write
    with os.fdopen(os.open(fname, open_flag, 0o600), mode) as f:
PermissionError: [Errno 13] Permission denied: 'C:\\Users\\Joan\\AppData\\Roaming\\jupyter\\runtime\\kernel-f958bfda53e2.json'
failed to send bug report on github. response={'code': 401, 'json': {'message': 'Bad credentials', 'documentation_url': 'https://developer.github.com/v3'}}

Versions

Dependencies

pyflakes >=0.6.0  :  2.2.0 (OK)
pycodestyle >=2.3 :  2.4.0 (OK)
pygments >=2.0    :  2.6.1 (OK)
sphinx >=0.6.6    :  3.0.3 (OK)
rope >=0.9.4      :  0.17.0 (OK)
jedi >=0.9.0      :  0.12.1 (OK)
nbconvert >=4.0   :  5.5.0 (OK)
pandas >=0.13.1   :  None (NOK)
numpy >=1.7       :  None (NOK)
sympy >=0.7.3     :  None (NOK)
cython >=0.21     :  None (NOK)
qtconsole >=4.2.0 :  4.7.4 (OK)
IPython >=4.0     :  6.5.0 (OK)
matplotlib >=2.0.0:  None (NOK)
pylint >=0.25     :  1.9.2 (OK)
spyder-bot commented 4 years ago

To fix this, please open the Anaconda Prompt and run there the following commands:

conda update anaconda
conda install jupyter_client=5.3.4