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 5.5.1 #22426

Closed
9 of 10 tasks
Divya31-tech opened this issue Sep 4, 2024 · 2 comments
Closed
9 of 10 tasks

Spyder 5.5.1 #22426

Divya31-tech opened this issue Sep 4, 2024 · 2 comments

Comments

@Divya31-tech
Copy link

Divya31-tech commented Sep 4, 2024

Issue Report Checklist

  • Searched the issues page for similar reports
  • Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
  • 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)
    • Restarted Spyder
    • Reset preferences with spyder --reset
    • Reinstalled the latest version of Anaconda
    • Tried the other applicable steps from the Troubleshooting Guide
  • Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description

I am having the following error on Spyder 5.5.1. I reinstalled Anaconda and am still having the same issue. Would anyone be able to help?

What steps reproduce the problem?

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

Paste Traceback/Error Below (if applicable)

The error is:

Traceback (most recent call last):
File "C:\Users\cont9209\AppData\Local\anaconda3\Lib\site‑packages\spyder\plugins\ipythonconsole\widgets\main_widget.py", line 2142, in create_kernel_manager_and_kernel_client
kernel_manager.start_kernel(stderr=stderr_handle,
File "C:\Users\cont9209\AppData\Local\anaconda3\Lib\site‑packages\jupyter_core\utils_init_.py", line 165, in wrapped
return loop.run_until_complete(inner)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\cont9209\AppData\Local\anaconda3\Lib\asyncio\base_events.py", line 687, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "C:\Users\cont9209\AppData\Local\anaconda3\Lib\site‑packages\jupyter_client\manager.py", line 96, in wrapper
raise e
File "C:\Users\cont9209\AppData\Local\anaconda3\Lib\site‑packages\jupyter_client\manager.py", line 87, in wrapper
out = await method(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\cont9209\AppData\Local\anaconda3\Lib\site‑packages\jupyter_client\manager.py", line 435, in _async_start_kernel
kernel_cmd, kw = await self._async_pre_start_kernel(**kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\cont9209\AppData\Local\anaconda3\Lib\site‑packages\jupyter_client\manager.py", line 400, in _async_pre_start_kernel
kw = await self.provisioner.pre_launch(**kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\cont9209\AppData\Local\anaconda3\Lib\site‑packages\jupyter_client\provisioning\local_provisioner.py", line 193, in pre_launch
km.write_connection_file(jupyter_session=jupyter_session)
File "C:\Users\cont9209\AppData\Local\anaconda3\Lib\site‑packages\jupyter_client\connect.py", line 500, in write_connection_file
self.connection_file, cfg = write_connection_file(
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\cont9209\AppData\Local\anaconda3\Lib\site‑packages\jupyter_client\connect.py", line 156, in write_connection_file
with secure_write(fname) as f:
File "C:\Users\cont9209\AppData\Local\anaconda3\Lib\contextlib.py", line 137, in enter
return next(self.gen)
^^^^^^^^^^^^^^
File "C:\Users\cont9209\AppData\Local\anaconda3\Lib\site‑packages\jupyter_core\paths.py", line 990, in secure_write
fd = os.open(fname, open_flag, 0o0600)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: 'C:\Users\cont9209\AppData\Roaming\jupyter\runtime\kernel𔂳e18b0b36252.json'

Versions

  • Spyder version: 5.5.1
  • Python version: 3.12
  • Qt version: NA
  • PyQt version: NA
  • Operating System name/version: Windows

Dependencies

PASTE DEPENDENCIES HERE
@ccordoba12
Copy link
Member

Hey @Divya31-tech, thanks for report. This problem is generated because your user doesn't have permissions to write in this directory:

C:\Users\cont9209\AppData\Roaming\jupyter

Please go to that directory with the Windows explorer and make sure that you can create files inside it. For that you can follow the instructions found in this page:

https://answers.microsoft.com/en-us/windows/forum/all/how-do-i-change-folder-and-file-permissions/465f2b42-63dd-4486-8dd1-c870290efeed

Let us know if it works for you!

@ccordoba12
Copy link
Member

Closing due to lack of response.

@ccordoba12 ccordoba12 closed this as not planned Won't fix, can't repro, duplicate, stale Sep 22, 2024
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

2 participants