GithubHelp home page GithubHelp logo

Comments (10)

dalthviz avatar dalthviz commented on June 2, 2024 1

Hi there, checking seems like the conda-activate.sh script is installed without executable permissions :/ Also, as mentioned at #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? 🤔

from spyder.

JC-NH avatar JC-NH commented on June 2, 2024 1

from spyder.

ccordoba12 avatar ccordoba12 commented on June 2, 2024 1

Hey everyone, as @dalthviz mentioned, this is caused by conda-activate.sh not having the executable bit on Mac and Linux.

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.

from spyder.

ccordoba12 avatar ccordoba12 commented on June 2, 2024

Hey @paosferrazza, thanks for reporting. Please open a terminal, run there this command

ls -la /home/ermes/anaconda3/lib/python3.11/site‑packages/spyder/plugins/ipythonconsole/scripts/conda‑activate.sh

and report back the result. That will let us know what's happening in your case.

from spyder.

paosferrazza avatar paosferrazza commented on June 2, 2024

~$ ls -la /home/ermes/anaconda3/lib/python3.11/site-packages/spyder/plugins/ipythonconsole/scripts/conda-activate.sh
-rw-rw-r-- 2 ermes ermes 518 mar 13 22:15 /home/ermes/anaconda3/lib/python3.11/site-packages/spyder/plugins/ipythonconsole/scripts/conda-activate.sh

from spyder.

remisalmon avatar remisalmon commented on June 2, 2024

Same issue here on macOS, spyder is looking for conda‑activate.sh in site‑packages but the file is conda-activate.sh in site-packages, the dash symbol is a different...

PermissionError: [Errno 13] Permission denied: '<$pathto>/lib/python3.11/site‑packages/spyder/plugins/ipythonconsole/scripts/conda‑activate.sh'
> ls -la <$pathto>/lib/python3.11/site‑packages/spyder/plugins/ipythonconsole/scripts/conda‑activate.sh
ls: cannot access '<$pathto>/lib/python3.11/site‑packages/spyder/plugins/ipythonconsole/scripts/conda‑activate.sh': No such file or directory
> ls -la $pathto/lib/python3.11/site-packages/spyder/
plugins/ipythonconsole/scripts/conda-activate.sh
-rw-r--r-- 3 remisalmon staff 518 Mar 13 15:24 <$pathto>/lib/python3.11/site-packages/spyder/plugins/ipythonconsole/scripts/conda-activate.sh

from spyder.

waeiski avatar waeiski commented on June 2, 2024

Same issue exists on Linux (Manjaro) as well.

from spyder.

JC-NH avatar JC-NH commented on June 2, 2024

Similar error starting kernal

  • Spyder version: 5.5.2 (conda)
  • Python version: 3.12.2 64-bit
  • Qt version: 5.15.2
  • PyQt5 version: 5.15.10
  • Operating System: Linux-5.15.146.1-microsoft-standard-WSL2-x86_64-with-glibc2.35

The error is:

Traceback (most recent call last):
File "/home/jim/anaconda3/envs/DSX/lib/python3.12/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/jim/anaconda3/envs/DSX/lib/python3.12/site‑packages/jupyter_core/utils/init.py", line 165, in wrapped
return loop.run_until_complete(inner)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jim/anaconda3/envs/DSX/lib/python3.12/asyncio/base_events.py", line 685, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/home/jim/anaconda3/envs/DSX/lib/python3.12/site‑packages/jupyter_client/manager.py", line 96, in wrapper
raise e
File "/home/jim/anaconda3/envs/DSX/lib/python3.12/site‑packages/jupyter_client/manager.py", line 87, in wrapper
out = await method(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jim/anaconda3/envs/DSX/lib/python3.12/site‑packages/jupyter_client/manager.py", line 439, in _async_start_kernel
await self._async_launch_kernel(kernel_cmd, **kw)
File "/home/jim/anaconda3/envs/DSX/lib/python3.12/site‑packages/jupyter_client/manager.py", line 354, in _async_launch_kernel
connection_info = await self.provisioner.launch_kernel(kernel_cmd, **kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jim/anaconda3/envs/DSX/lib/python3.12/site‑packages/jupyter_client/provisioning/local_provisioner.py", line 210, in launch_kernel
self.process = launch_kernel(cmd, **scrubbed_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jim/anaconda3/envs/DSX/lib/python3.12/site‑packages/jupyter_client/launcher.py", line 170, in launch_kernel
raise ex
File "/home/jim/anaconda3/envs/DSX/lib/python3.12/site‑packages/jupyter_client/launcher.py", line 155, in launch_kernel
proc = Popen(cmd, **kwargs) # noqa
^^^^^^^^^^^^^^^^^^^^
File "/home/jim/anaconda3/envs/DSX/lib/python3.12/subprocess.py", line 1026, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/home/jim/anaconda3/envs/DSX/lib/python3.12/subprocess.py", line 1953, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: '/home/jim/anaconda3/envs/DSX/lib/python3.12/site‑packages/spyder/plugins/ipythonconsole/scripts/conda‑activate.sh'

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

from spyder.

JC-NH avatar JC-NH commented on June 2, 2024

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"

from spyder.

ccordoba12 avatar ccordoba12 commented on June 2, 2024

Closing to get started with the release.

from spyder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.