Open bherwig-ies opened 2 years ago
I'm facing a related issue on Arch Linux.
Version: Anaconda Navigator 2.4.0
Steps to Reproduce
From Environments menu, I select an environment and after I press on the green "play" button -> "Open terminal", a xterm terminal appears with this error:
xterm: Can't execvp bash --init-file <(echo ". activate /opt/anaconda;"): No such file or directory
But if I run manually the command above in the command-line, it works.
Exploring the source code, I found this file lib/python3.10/site-packages/anaconda_navigator/utils/launch.py
out at 654 line and I've isolated this code:
import os
import subprocess
activate = '/opt/anaconda'
term_command = ''
cmd = [
'xterm',
'-e',
f'bash --init-file <(echo ". activate {activate};")',
f'; {term_command}',
]
cwd = os.path.expanduser('~')
subprocess.Popen(cmd, cwd=cwd)
to easily reproduce the error.
Bonus issue:
I'm using Arch Linux with KDE Plasma and xterm
is not installed by default. Also Konsole (the default Plasma terminal manager) is not compliant with anaconda-navigator.
At the beginning, pressing on the green "play" button -> "Open terminal" nothing happened.
I had to dive into the code to understand what it was missing.
An error popup would be very helpful to report that "xterm is missing".
I have a similar situation. It can't be executed by "play -> open terminal" but manually key in. The version of Anaconda Navigator, which I downloaded from official website, is 2.4.0 ,ARM64. The OS is Ubuntu MATE 22.04
Still the same issue with Navigator 2.5.1 on current openSUSE Tumbleweed. And while you're at it, consider using xdg-terminal
which is locally configurable instead of plain xterm
.
Actual Behavior
I created a new env in anaconda-navigator. When I switch to it, the green play-button appears.
However, I cannot activate or do anything else with it. The drop-down-menu behind the button does show
Open Terminal
andOpen with Python
. Both other entries are just grey (for the base-env, I CAN use everything as it should be).When I select
Open Terminal
,xterm
is run. When I uninstall xterm, nothing happens.However, when
xterm
opens, I see an error message:xterm: Can't execvp bash --init-file <(echo ". activate /home/ies/anaconda3/envs/t2;"): No such file or directory
I simply cannot activate the env, and I cannot use anything in there.
When I do activation (
source activate /path/to/env/created/in/navigator
) etc. via command-line, everything works as expected, in zsh as well as in bash (I ranconda init
for both shells).But no success for the navigator so far.
I can, however, use the base-env as it is expected. Only a new env is problematic.
Expected Behavior
Ability to use venvs in anaconda-navigator.
Steps to Reproduce
Cf. above.
Anaconda or Miniconda version:
The one I just downloaded as of 05/09/2022.
anaconda -V
gives:anaconda Command line client (version 1.9.0)
Operating System:
Debian 11/Bullseye/Stable
conda info
conda list --show-channel-urls
Thank you for working on this,