Discussion:
Problem with conda
(too old to reply)
Stephen P. Molnar
2024-07-13 19:40:01 UTC
Permalink
I am running Bookworm with the bash shell and use  a conda environment
for some of my Molecular Modeling software. For some reason I can no
longer activate my conda apps.

I downloaded a new copy of Miniconda3-latest-Linux-x89_64.sh. The
sha256sum agreed

I deleted the Miniconda3 and .conda directories and installed the new
download  in /home/comp/Miniconda3 without any warnings or errors and
accepted automatically initializing of the bash shell.

.Bashrc was amended with:

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/comp/Miniconda3/bin/conda' 'shell.bash' 'hook'
2> /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
else
    if [ -f "/home/comp/Miniconda3/etc/profile.d/conda.sh" ]; then
        . "/home/comp/Miniconda3/etc/profile.d/conda.sh"
    else
        export PATH="/home/comp/Miniconda3/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda initialize <<<

The 'conda list' command did return a list (see attached)

However when I opened a new terminal it still had  the
'***@Abanormal:~$ ' prompt and an attempted to activate an app:

***@Abanormal:~$ conda activate

I got:

CondaError: Run 'conda init' before 'conda activate'

conda init bash and conda activate in a new terminal seemed to enter a loop.

I am really lost at this point. I've installed Miniconda a number of
times without any problems.

I would be appreciate of some pointers towards solving this problem.

Thanks in advance
--
Stephen P. Molnar, Ph.D.
https://insilicochemistry.net
(614)312-7528 (c)
Skype: smolnar1
Stephen P. Molnar
2024-07-14 11:20:01 UTC
Permalink
On Sat, 13 Jul 2024 15:31:59 -0400
Hello Stephen,
Post by Stephen P. Molnar
I downloaded a new copy of Miniconda3-latest-Linux-x89_64.s
You say nothing about where you got this from but, assuming it's
https://docs.anaconda.com/miniconda/
your problem may well be that what you downloaded requires Python3.12.4
but Bookworm only has Python3.11.2
Thank you for you response.

I just installed Miniconda3-py310_24.5.0.0-linuus-x86_63.sh and got the
same result.
--
Stephen P. Molnar, Ph.D.
https://insilicochemistry.net
(614)312-7528 (c)
Skype: smolnar1
Stephen P. Molnar
2024-07-14 13:00:01 UTC
Permalink
Post by Stephen P. Molnar
On Sat, 13 Jul 2024 15:31:59 -0400
Hello Stephen,
Post by Stephen P. Molnar
I downloaded a new copy of Miniconda3-latest-Linux-x89_64.s
You say nothing about where you got this from but, assuming it's
https://docs.anaconda.com/miniconda/
your problem may well be that what you downloaded requires Python3.12.4
but Bookworm only has Python3.11.2
Thank you for you response.
I just installed Miniconda3-py310_24.5.0.0-linuus-x86_63.sh and got
the same result.
Well, I solved the problem (sort of). I installed
Anaconda3-2023.07-2-Linux-x86_64.sh. This allows the installation of new
python apps. I can also run some of the apps that I installed before
Miniconda3 stopped working.

I would still to be able to use Miniconda3.
--
Stephen P. Molnar, Ph.D.
https://insilicochemistry.net
(614)312-7528 (c)
Skype: smolnar1
Stephen P. Molnar
2024-07-15 18:00:01 UTC
Permalink
Post by Stephen P. Molnar
Post by Stephen P. Molnar
On Sat, 13 Jul 2024 15:31:59 -0400
Hello Stephen,
Post by Stephen P. Molnar
I downloaded a new copy of Miniconda3-latest-Linux-x89_64.s
You say nothing about where you got this from but, assuming it's
https://docs.anaconda.com/miniconda/
your problem may well be that what you downloaded requires Python3.12.4
but Bookworm only has Python3.11.2
Thank you for you response.
I just installed Miniconda3-py310_24.5.0.0-linuus-x86_63.sh and got
the same result.
Well, I solved the problem (sort of). I installed
Anaconda3-2023.07-2-Linux-x86_64.sh. This allows the installation of
new python apps. I can also run some of the apps that I installed
before Miniconda3 stopped working.
I would still to be able to use Miniconda3.
Now I am really confused!

Earlier today I discovered that, if as soon as I opened a terminal. i
entered bash the terminal changed from '***@AbNormal:-$- bash' to
'(base)� ***@AbNormal:-$- ' and the color of the prompt changed from
black to green.

Conda commands work and all of my applications in the conda environment
work as they should.
--
Stephen P. Molnar, Ph.D.
https://insilicochemistry.net
(614)312-7528 (c)
Skype: smolnar1
Loading...