Comments (10)
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.
from spyder.
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.
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.
~$ 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.
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.
Same issue exists on Linux (Manjaro) as well.
from spyder.
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.
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.
Closing to get started with the release.
from spyder.
Related Issues (20)
- 导入csv数据成功,但在变量浏览器打不开 HOT 1
- Unable to open pandas variable HOT 1
- after start no window HOT 6
- n次简单随机游走模拟路线
- Attribute Qt::AA_UseSoftwareOpenGL must be set before QCoreApplication is created. HOT 1
- Launched spyder from miniconda using a batch file HOT 1
- macOS installer notarization error
- How to access environment variables in standalone Spyder? HOT 1
- Remove variables HOT 5
- MaheshOrchu.... HOT 1
- Cannot get spyder to work in new environment HOT 2
- Redoing (Ctrl + Shift + Z) doesnt work on new pc
- Do not translate "commit" in Spyder IDE HOT 1
- Non-recognized command message when running code that gives a traceback with a custom interpreter set on Windows (IPython Console) HOT 4
- Try to pip factor_analyzer HOT 2
- Kernel keeps dying HOT 11
- An error ocurred while starting the kernel HOT 2
- no attribute 'iteritems' in the DataFrame object HOT 1
- install app problem HOT 1
- Improvement Suggestion On The Data Frame Scroll Bar + Bug
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spyder.