-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
PermissionError
when starting IPython console kernels on macOS and Linux
#21892
Comments
Hey @paosferrazza, thanks for reporting. Please open a terminal, run there this command
and report back the result. That will let us know what's happening in your case. |
~$ ls -la /home/ermes/anaconda3/lib/python3.11/site-packages/spyder/plugins/ipythonconsole/scripts/conda-activate.sh |
Same issue here on macOS, spyder is looking for
|
Same issue exists on Linux (Manjaro) as well. |
Similar error starting kernal
The error is: Traceback (most recent call last): Under "/home/jim/anaconda3/envs" I have two DSX directories. One created 12/30/2022 for which I have no permission to access the lib directory. and one created 3/13/2024 where I do have access to conda-activate.sh |
As an addendum to the last post: Reverting to spyder 5.5.1, the kernel does now start. While only one DSX environment is listed by "conda env list" the two folders still exist in "/home/jim/anaconda3/envs" |
Hi there, checking seems like the
Not totally sure why the script is not preserving the executable bit on, maybe an error happened while I was building the wheel that I didn't noticed? 🤔 |
Daniel,
Thanks for the help. You were correct about the dash in the error message was replaced.
I followed your instructions and changed the permissions on conda-activate.sh and everything seems to work.
…________________________________
From: Daniel Althviz Moré ***@***.***>
Sent: Friday, March 15, 2024 4:42 PM
To: spyder-ide/spyder ***@***.***>
Cc: JC-NH ***@***.***>; Comment ***@***.***>
Subject: Re: [spyder-ide/spyder] Kernel doesn't start - permission denied (Issue #21892)
Hi there, checking seems like the conda-activate.sh script is installed without executable permissions :/ Also, as mentioned at #21892 (comment)<#21892 (comment)> another thing that is missleading is that in the console error message the dash character is replaced, that causes an error when trying to check the related path in a terminal (with a message that the file/path doesn't exists). As a workaround seems like manually locating and adding executable permission to the conda-activate.sh works so something like:
cd <your env path up to site-packages>/site-packages/spyder/plugins/ipythonconsole/scripts
chmod +x conda-activate.sh
Not totally sure why the script is not preserving the executable bit on, maybe an error happened while I was building the wheel that I didn't noticed? 🤔
—
Reply to this email directly, view it on GitHub<#21892 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A5AXSLNPLPA4TL6ZLFNNOQLYYNMKDAVCNFSM6AAAAABEV34ZH6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBQGQYTGNJQGU>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Hey everyone, as @dalthviz mentioned, this is caused by We'll fix that by releasing 5.5.3 as soon as possible with that small change. In the meantime, you can follow @dalthviz's instructions to work around it. |
Closing to get started with the release. |
PermissionError
when starting the kernel on macOS and Linux
PermissionError
when starting the kernel on macOS and LinuxPermissionError
when starting IPython console kernels on macOS and Linux
Description
What steps will reproduce the problem?
The error is:
Traceback (most recent call last):
File "/home/ermes/anaconda3/lib/python3.11/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 "/home/ermes/anaconda3/lib/python3.11/site‑packages/jupyter_core/utils/init.py", line 173, in wrapped
return loop.run_until_complete(inner)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ermes/anaconda3/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/home/ermes/anaconda3/lib/python3.11/site‑packages/jupyter_client/manager.py", line 96, in wrapper
raise e
File "/home/ermes/anaconda3/lib/python3.11/site‑packages/jupyter_client/manager.py", line 87, in wrapper
out = await method(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ermes/anaconda3/lib/python3.11/site‑packages/jupyter_client/manager.py", line 439, in _async_start_kernel
await self._async_launch_kernel(kernel_cmd, **kw)
File "/home/ermes/anaconda3/lib/python3.11/site‑packages/jupyter_client/manager.py", line 354, in _async_launch_kernel
connection_info = await self.provisioner.launch_kernel(kernel_cmd, **kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ermes/anaconda3/lib/python3.11/site‑packages/jupyter_client/provisioning/local_provisioner.py", line 210, in launch_kernel
self.process = launch_kernel(cmd, **scrubbed_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ermes/anaconda3/lib/python3.11/site‑packages/jupyter_client/launcher.py", line 170, in launch_kernel
raise ex
File "/home/ermes/anaconda3/lib/python3.11/site‑packages/jupyter_client/launcher.py", line 155, in launch_kernel
proc = Popen(cmd, **kwargs) # noqa
^^^^^^^^^^^^^^^^^^^^
File "/home/ermes/anaconda3/lib/python3.11/subprocess.py", line 1026, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/home/ermes/anaconda3/lib/python3.11/subprocess.py", line 1950, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: '/home/ermes/anaconda3/lib/python3.11/site‑packages/spyder/plugins/ipythonconsole/scripts/conda‑activate.sh'
Traceback
Versions
Dependencies
The text was updated successfully, but these errors were encountered: